CollapsingToolbarLayout + NestedScrollView с помощью D-Pad
У меня есть CollapsingToolbarLayout
с NestedScrollView
который содержит TextView с большим количеством контента. На сенсорных устройствах все работает нормально, но я не могу прокрутить вид с помощью контроллера D-Pad. На самом деле, я могу прокрутить макет вверх и вниз примерно на дюйм, но не больше, даже если есть намного больше контента для отображения. Вот мой макет. TextView
with id=description содержит содержимое, которое необходимо прокрутить.
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
android:fitsSystemWindows="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorBackgroundLight">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="@dimen/appBarHeight"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="false">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginStart="32dp"
app:expandedTitleMarginEnd="64dp"
app:expandedTitleTextAppearance="@android:style/TextAppearance.DeviceDefault.Large">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_collapseMode="parallax"
android:fitsSystemWindows="true">
<RelativeLayout
android:id="@+id/title_layout"
android:fitsSystemWindows="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="@dimen/appBarHeight"
android:scaleType="centerCrop"
android:fitsSystemWindows="true"
app:layout_collapseMode="parallax" />
</RelativeLayout>
</FrameLayout>
<android.support.v7.widget.Toolbar
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:fitsSystemWindows="true"
app:layout_collapseMode="pin" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:focusable="true">
<TextView
android:id="@+id/description"
android:layout_margin="5dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="0dp"
android:layout_marginTop="5dp"/>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
Благодарю.