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

android, button, height, java

Solution

yes there is a minHeight xml attribute.

android:minHeight="50dp"

Problem

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

Original source