wrap_content is not working in button height android
android
Solution
`Button` is a `View` and the `android:minHeight` attribute is set `48dip` default. You can set `minHeight` lower than your actual text 'aaaaa' such as 1dp. Then `wrap_content` will work. But I don't think this is recommended.
Problem
"wrap_content" is not working in my button, it currently looks like this: ``` now want ____________ | | _____________ | aaaaaa | => | aaaaaaaaaaa | |____________| ------------- ``` and the xml for my buttons : ``` <Button android:layout_gravity="center" android:id="@+id/input_expend" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12sp" android:text="aaaaaaa" android:background="@drawable/btn_01"/> <Button android:layout_gravity="center" android:id="@+id/input_expend" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12sp" android:text="aaaaaaa" android:background="@drawable/btn_02"/> ``` How can I solve this problem? Thanks!