如何解决如何使用maxWidth和minWidth或maxHeight和minHeight?
在自动完成中显示minWidth和maxWidth令人困惑,但对我而言,大多数情况下,其中仅显示一个。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="400dp"
android:orientation="horizontal">
<!--- Other views -->
</LinearLayout>
即使我尝试通过键入来输入属性,也无法正常工作。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minWidth="400dp"
android:minWidth="450dp"
android:orientation="horizontal">
<!--- Other views -->
</LinearLayout>
有人说width
属性是最小和最大值的较短方式。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:width="400dp"
android:minWidth="450dp"
android:orientation="horizontal">
<!--- Other views -->
</LinearLayout>
为什么它们有时出现而有时却不出现?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。