public class NestedScrollableHost
Layout to wrap a scrollable component. The scrollable element needs to be the immediate and only child of this host layout.
This solution has limitations when using multiple levels of nested scrollable elements (e.g. a horizontal RecyclerView in a vertical RecyclerView in a horizontal ViewPager2).
| 限定符和类型 | 类和说明 |
|---|---|
static class |
NestedScrollableHost.Companion |
| 限定符和类型 | 字段和说明 |
|---|---|
static NestedScrollableHost.Companion |
Companion |
static int |
HORIZONTAL |
static int |
VERTICAL |
| 构造器和说明 |
|---|
NestedScrollableHost(android.content.Context context) |
NestedScrollableHost(android.content.Context context,
android.util.AttributeSet attrs) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
onInterceptTouchEvent(android.view.MotionEvent e) |
void |
setNestedOrientation(int orientation)
set nested orientation
|
void |
setTargetChild(android.view.View target)
set target child
|
public static int HORIZONTAL
public static int VERTICAL
public static NestedScrollableHost.Companion Companion