昂贵,
在键盘上使用UP和DOWN时,我无法对焦。 (我在NestedScrollView中有RecyclerView。但是,当我使用UP和DOWN键时,焦点无法正常工作,我将发送电影以尝试更好地进行解释。)
下降效果很好,但是当我尝试上升时,它返回到结尾。它有非常奇怪的行为
视频链接:http://212.47.242.81:3131/movie.mp4
我有以下NestedScrollView:
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nestedScrollViewFilmes"
android:layout_height="match_parent"
android:background="@color/background_color"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:id="@+id/nestedScrollViewFilmesteste"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/TextViewFilmesDestaque"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingTop="10dp"
android:layout_marginBottom="5dp"
android:text="@string/FilmesDestaque"
android:textColor="@color/white_greyish"
android:textSize="19sp"
android:textStyle="bold"
android:paddingStart="10dp"
tools:ignore="RtlSymmetry" />
<android.support.v7.widget.RecyclerView
android:id="@+id/IDNovidadeFilmes"
android:shadowColor="@color/colorPrimary"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
android:paddingLeft="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:scrollbars="none"
android:paddingStart="5dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/TextViewCategoriasFilmes"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="10dp"
android:paddingTop="10dp"
android:text="@string/Categorias"
android:textColor="@color/white_greyish"
android:textSize="19sp"
android:textStyle="bold"
android:paddingStart="10dp"
tools:ignore="RtlSymmetry" />
<android.support.v7.widget.RecyclerView
android:id="@+id/IDTodasasCategorias"
android:shadowColor="@color/colorPrimary"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
android:paddingLeft="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:scrollbars="none"
android:paddingStart="5dp"
tools:ignore="RtlSymmetry" />
<android.support.v7.widget.RecyclerView
android:id="@+id/IDFilmesPesquisa"
android:shadowColor="@color/colorPrimary"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
android:paddingLeft="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
android:paddingStart="0dp"
android:visibility="gone"
tools:ignore="RtlSymmetry" />
</LinearLayout>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
如果有人可以帮助我,我将不胜感激! 谢谢