Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to set height and wrap content at the same time in android?

I have a button, and I want it to have a minimum height of 50dp's but I also want it to get bigger and wrap if the text is too long, is this possible? Thanks

like image 964
William L. Avatar asked Jul 07 '12 23:07

William L.


1 Answers

yes there is a minHeight xml attribute.

android:minHeight="50dp"
like image 101
FoamyGuy Avatar answered Nov 15 '22 11:11

FoamyGuy