
上QQ阅读APP看书,第一时间看更新
How to do it...
- Open the res/layout/activity_main.xml file and replace it as follows:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <EditText android:id="@+id/editTextTo" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="To" /> <EditText android:id="@+id/editTextSubject" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Subject" /> <EditText android:id="@+id/editTextMessage" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:gravity="top" android:hint="Message" /> </LinearLayout>
- Run the code, or view the layout in the Design tab.