【问题标题】:How to avoid overlapping widgets in Android with 'auto-resize.'如何使用“自动调整大小”避免 Android 中的小部件重叠。
【发布时间】:2019-05-27 16:33:26
【问题描述】:

在较小的屏幕上; editText 应该让 listView 垂直收缩,这样它就不会干扰内容。 否则,当项目列表很长时,listView 永远不应该超过 editText。 应避免出现您在图片中看到的内容。

如何做到这一点?

【问题讨论】:

    标签: android android-layout android-layout-weight android-layout-editor


    【解决方案1】:

    您使用约束或相对布局作为父级,并添加一个约束/规则,将列表视图置于编辑视图之上。

    【讨论】:

      猜你喜欢
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      • 2022-01-12
      • 2018-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-31
      相关资源
      最近更新 更多