[英]Display all the data/views in an Single activity in android emulator
我在一个活动中有edittext,checkbox,radiobutton,spinner等,由于其底部的Spinner和单选按钮隐藏在模拟器屏幕中。
最好的解决方案是什么? 我应该使用滚动视图吗?
提前致谢...
只需将顶层布局设为ScrollView:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<!-- everything you already have -->
</ScrollView>
您可以使用ScrollView,以便没有空间进入的View ...
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
//Your view here..like spinner ,button etc
</TableLayout>
</ScrollView>
希望这样
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.