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.
我有一个按钮,我希望它的最小高度为 50dp,但如果文本太长,我也希望它变大并换行,这可能吗?谢谢
是的,有一个minHeight xml 属性。
android:minHeight="50dp"