我有这样的代码:使得TEXTSIZE适应的EditText
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:hint="@string/tip_value" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:hint="@string/tip_value" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:hint="@string/tip_value" />
</LinearLayout>
我怎样才能让TEXTSIZE调整到EditText上的高度?
我的意思是大写字母跨越编辑文本(这可能是因为LinearLayout中的不同大小)
提前感谢的整体高度。
但我想让他们 “权重”。跨越整个空间..在你的例子中,我确实需要设置textSize,它不会调整到屏幕上。 – 2013-05-14 18:57:16