我有以下问题:
我需要 18 个 Button,TextView旁边有一个,中间有一个TextView。当然,它们不适合显示器,所以我搜索了这个问题并找到了,ListView但这对我不起作用,因为我需要 18Buttons和TextViews不同的 ID。
我希望你能帮助我。
我有以下问题:
我需要 18 个 Button,TextView旁边有一个,中间有一个TextView。当然,它们不适合显示器,所以我搜索了这个问题并找到了,ListView但这对我不起作用,因为我需要 18Buttons和TextViews不同的 ID。
我希望你能帮助我。
使用 <ScrollView> Note <ScrollView> 只有一个直接子级
所以它必须像这样使用 :
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<!-- your contents are here -->
</LinearLayout>
</ScrollView>