我在按钮中的文本的大小有问题。我有我使用weightSum的布局,我的按钮宽度是匹配的父项,高度是30%。一切工作正常,但是当我在模拟器上更改屏幕大小时,我的文本仍然很小。我怎样才能改变大小的文字取决于屏幕的大小? 这是XML:按钮和文本的大小
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="100" >
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button"
android:layout_weight="30" />
</LinearLayout>
有什么办法可以全自动做到这一点?