Is it possible to define GUI element width as android:layout_width="wrap_content"
but somehow define minimal width of Xdp
?
Asked
Active
Viewed 3,352 times
4

tomash
- 12,742
- 15
- 64
- 81
2 Answers
11
I believe the attribute you are looking for is android:minWidth
. For example,
android:minWidth="10dp"

glorifiedHacker
- 6,410
- 2
- 22
- 26
3
you can use:
android:minHeight="20dp"
android:minWidth="20dp"
in your xml layout
20dp
is a sample value

Mohammad Ersan
- 12,304
- 8
- 54
- 77