2
GUI要素の幅をandroid:layout_width="wrap_content"
と定義できますが、どういうわけか最小幅をXdp
と定義していますか?Android:android:layout_width = wrap_contentしかしX dpより小さくない?
GUI要素の幅をandroid:layout_width="wrap_content"
と定義できますが、どういうわけか最小幅をXdp
と定義していますか?Android:android:layout_width = wrap_contentしかしX dpより小さくない?
あなたが探している属性はandroid:minWidth
と思います。たとえば、あなたが使用することができ、
android:minWidth="10dp"
:
android:minHeight="20dp"
android:minWidth="20dp"
あなたのxmlレイアウトの
20dp
はサンプル値