<ScrollView
android:id="@+id/layout_guide_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="55dp"
>
<Button
android:id="@+id/btn_guideTab_backButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/backicon_round"/>
<TextView
android:id="@+id/text_guideTab_detail_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textColor="@color/color_green"
android:text="Error"
android:textSize="19dp" />
</RelativeLayout>
<ListView
android:id="@+id/list_guideTab_detail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"></ListView>
</LinearLayout>
</ScrollView>
滚动视图有标题按钮和文本,其余是一个ListView滚动视图是不可滚动
我想要做的是滚动整个屏幕(包括但是问题是,当我尝试滚动屏幕时,我只能滚动列表视图...
看看这个简单的图书馆https://android-arsenal.com/details/1/1919 –
使用'RecyclerView'和'wrap_content' –