【发布时间】:2025-11-22 18:25:01
【问题描述】:
我想做类似的东西
在 Eclipse 中的 UI 工具看起来一切正常,但是当我在模拟器或设备上测试应用程序时 底部按钮出现在字段顶部。 我想: 按钮 - 在底部; 第一个和第二个字段; 第三个字段必须占用 1 到 2 个字段和按钮之间的所有可用空间。 如果我只使用 RelativeLayout -> 所有 UI 都可以(但软键盘有问题) 但是当我在 ScrollView 中使用 RelativeLayout 时,就会出现上述问题。
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroller"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<RelativeLayout
android:padding="5dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
......
也许有人遇到了一些问题。 提前致谢。
【问题讨论】:
标签: android