したがって、垂直なScrollViewの中に水平なRecyclerViewがあります。私のレイアウトの中のすべてがうまく表示され、それはすべて私が望む方向にスクロールし、スムーズにそれを行います。垂直方向の水平RecyclerView ScrollView
唯一の問題は、RecyclerViewがScrollViewの他のコンテンツの下にあり、RecyclerViewが部分的に表示されているときに、起動時に画面の下部にRecyclerViewの下部が表示されることです。これは、RecyclerViewの上のコンテンツが画面からプッシュされることを意味します。
なぜこのようなことが起こるのか、誰にどのように修正できるのか、誰にも分かりますか?
ここで説明したような単純なレイアウトがあります。 RecyclerViewを作成する必要はありませんが、それでもやります。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="500dp"
android:background="#fff"/>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="200dp"
android:background="#000"/>
</LinearLayout>
</ScrollView>
チェックこのhttps://github.com/lucasr/twoway-view/:
以下は、私は元の質問に提供されたコードのサンプルの修正です。 – Raghunandan
私はTwoWayViewについて知っているから、それは本当に私の質問には関係ありませんが、とにかく感謝します。 –