Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GUI 要素の幅を として定義することはできますandroid:layout_width="wrap_content"が、どういうわけか最小幅を定義することはできますXdpか?
android:layout_width="wrap_content"
Xdp
お探しの属性は だと思いますandroid:minWidth。例えば、
android:minWidth
android:minWidth="10dp"
あなたが使用することができます:
android:minHeight="20dp" android:minWidth="20dp"
あなたのxmlレイアウトで
20dpはサンプル値です
20dp