Android 水平和垂直滚动条
我有水平滚动视图,里面有宽列表视图或滚动视图。我总是看到水平滚动条,但垂直滚动条位于屏幕外可滚动区域的右侧。如何使垂直滚动条始终可见 比如说Android 水平和垂直滚动条,android,xml,android-layout,Android,Xml,Android Layout,我有水平滚动视图,里面有宽列表视图或滚动视图。我总是看到水平滚动条,但垂直滚动条位于屏幕外可滚动区域的右侧。如何使垂直滚动条始终可见 比如说 <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="exampleexampleexample\nexampleexampleexample\nexampleexampleexample\nexampleexampleexample\n"
android:textSize="300sp" />
</ScrollView>
</HorizontalScrollView>
不要将listview放在scrollview@tyczj我添加了一些示例代码。我没有将ListView垂直放置在ScrollView中,我知道在这种情况下会发生什么:它可能是由属性定义的。@corsair992不幸的是,此属性只是使滚动条始终可见,但我仍然必须滚动到ListView的右边缘才能看到滚动条,但我希望滚动条始终处于任何位置