📜  android studio 获取按钮文本的尺寸 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:24.876000             🧑  作者: Mango

代码示例1
text size should be mentioned in sp, not in dp try like this

 android:textSize="30sp"
Size of the text. Recommended dimension type for text is "sp" for scaled-pixels.