<?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:background=”#ffffff”
android:orientation=”vertical” >
<EditText
android:id=”@+id/editText1”
android:layout_width=”match_parent”
android:layout_height=”wrap_content”
android:hint=”我是测试hint”
android:textColor=”#f00”
android:textSize=”25sp”
android:ems=”10” >
<requestFocus />
</EditText>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:background=”#ffffff”
android:orientation=”vertical” >
<EditText
android:id=”@+id/editText1”
android:layout_width=”match_parent”
android:layout_height=”wrap_content”
android:hint=”我是测试hint”
android:textColor=”#f00”
android:textSize=”25sp”
android:ems=”10” >
<requestFocus />
</EditText>
</LinearLayout>
这是一个普通的线性布局里面套了个Edittext 如下 :设置了文字大小为25sp 但是他的hint值也是25sp 如果我们想改变hi