在Android中,可以使用android:layout_width="wrap_content"定义GUI元素的宽度,但是否可以同时定义最小Xdp的宽度?
android:layout_width="wrap_content"
Xdp
我相信你要找的属性是 android:minWidth。例如:
android:minWidth
android:minWidth="10dp"
您可以使用:
android:minHeight="20dp" android:minWidth="20dp"
20dp