在第一个EditText前面添加一个LinearLayout,加入
android:focusable=“true”
android:focusableInTouchMode="true"
这样,就把EditText默认的行为截断了!
<LinearLayout
android:paddingLeft="@dimen/dimen_small"
android:paddingRight="@dimen/dimen_small"
android:focusable="true"
android:focusableInTouchMode="true">
网上很多都说要添加到LinearLayout里面,但是有人说没作用,主要是因为没人说必须要使用<requestFocus />
这句
不加这句是没用的。
<LinearLayout
android:paddingLeft="@dimen/dimen_small"
android:paddingRight="@dimen/dimen_small"
android:focusable="true"
android:focusableInTouchMode="true">
<requestFocus />
<TextView
android:layout_width="wrap_c