public class StickyNestedScrollView
extends NestedScrollView
描述:自定义NestedScrollView
作者: zhouyou| 限定符和类型 | 类和说明 |
|---|---|
static interface |
StickyNestedScrollView.OnViewStickyListener |
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
FLAG_HASTRANSPARENCY
Flag for views that have aren't fully opaque
|
static java.lang.String |
FLAG_NONCONSTANT
Flag for views that should stick and have non-constant drawing. e.g.
|
static java.lang.String |
STICKY_TAG
Tag for views that should stick and have constant drawing. e.g.
|
| 构造器和说明 |
|---|
StickyNestedScrollView(android.content.Context context) |
StickyNestedScrollView(android.content.Context context,
android.util.AttributeSet attrs) |
StickyNestedScrollView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addOnViewStickyListener(StickyNestedScrollView.OnViewStickyListener stickyListener) |
void |
addView(android.view.View child) |
void |
addView(android.view.View child,
int index) |
void |
addView(android.view.View child,
int width,
int height) |
void |
addView(android.view.View child,
int index,
android.view.ViewGroup.LayoutParams params) |
void |
addView(android.view.View child,
android.view.ViewGroup.LayoutParams params) |
void |
clearOnViewStickyListener() |
protected void |
dispatchDraw(android.graphics.Canvas canvas) |
boolean |
dispatchTouchEvent(android.view.MotionEvent ev) |
void |
notifyStickyAttributeChanged()
Notify that the sticky attribute has been added or removed from one or more views in the View hierarchy
|
protected void |
onDetachedFromWindow() |
boolean |
onInterceptTouchEvent(android.view.MotionEvent e) |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b) |
protected void |
onScrollChanged(int l,
int t,
int oldl,
int oldt) |
boolean |
onTouchEvent(android.view.MotionEvent ev) |
void |
removeOnViewStickyListener(StickyNestedScrollView.OnViewStickyListener stickyListener) |
void |
setClipToPadding(boolean clipToPadding) |
void |
setShadowDrawable(android.graphics.drawable.Drawable shadowDrawable) |
void |
setShadowHeight(int height) |
void |
setup() |
public static final java.lang.String STICKY_TAG
public static final java.lang.String FLAG_NONCONSTANT
public static final java.lang.String FLAG_HASTRANSPARENCY
public StickyNestedScrollView(android.content.Context context)
public StickyNestedScrollView(android.content.Context context,
android.util.AttributeSet attrs)
public StickyNestedScrollView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public void addOnViewStickyListener(StickyNestedScrollView.OnViewStickyListener stickyListener)
public void removeOnViewStickyListener(StickyNestedScrollView.OnViewStickyListener stickyListener)
public void clearOnViewStickyListener()
public void setShadowHeight(int height)
public void setShadowDrawable(android.graphics.drawable.Drawable shadowDrawable)
public void setup()
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
public boolean onInterceptTouchEvent(android.view.MotionEvent e)
public void setClipToPadding(boolean clipToPadding)
public void addView(android.view.View child)
public void addView(android.view.View child,
int index)
public void addView(android.view.View child,
int index,
android.view.ViewGroup.LayoutParams params)
public void addView(android.view.View child,
int width,
int height)
public void addView(android.view.View child,
android.view.ViewGroup.LayoutParams params)
protected void dispatchDraw(android.graphics.Canvas canvas)
public boolean dispatchTouchEvent(android.view.MotionEvent ev)
public boolean onTouchEvent(android.view.MotionEvent ev)
protected void onScrollChanged(int l,
int t,
int oldl,
int oldt)
protected void onDetachedFromWindow()
public void notifyStickyAttributeChanged()