|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:tools="http://schemas.android.com/tools" |
4 | | - android:id="@+id/activity_main" |
5 | | - android:layout_width="match_parent" |
6 | | - android:layout_height="match_parent" |
7 | | - android:orientation="vertical" |
8 | | - android:paddingBottom="@dimen/activity_vertical_margin" |
9 | | - android:paddingLeft="@dimen/activity_horizontal_margin" |
10 | | - android:paddingRight="@dimen/activity_horizontal_margin" |
11 | | - android:paddingTop="@dimen/activity_vertical_margin" |
12 | | - tools:context="com.guiying.main.MainActivity"> |
| 3 | + xmlns:tools="http://schemas.android.com/tools" |
| 4 | + android:id="@+id/activity_main" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + android:orientation="vertical" |
| 8 | + android:paddingBottom="@dimen/activity_vertical_margin" |
| 9 | + android:paddingLeft="@dimen/activity_horizontal_margin" |
| 10 | + android:paddingRight="@dimen/activity_horizontal_margin" |
| 11 | + android:paddingTop="@dimen/activity_vertical_margin" |
| 12 | + tools:context="com.guiying.main.MainActivity"> |
13 | 13 |
|
14 | 14 | <Button |
15 | 15 | android:id="@+id/news_button" |
16 | 16 | android:layout_width="match_parent" |
17 | 17 | android:layout_height="wrap_content" |
18 | | - android:text="News" /> |
| 18 | + android:text="News"/> |
19 | 19 |
|
20 | 20 | <Button |
21 | 21 | android:id="@+id/girls_button" |
22 | 22 | android:layout_width="match_parent" |
23 | 23 | android:layout_height="wrap_content" |
24 | | - android:text="Girls" /> |
| 24 | + android:text="Girls"/> |
| 25 | + |
| 26 | + <Button |
| 27 | + android:id="@+id/crash_button" |
| 28 | + android:layout_width="match_parent" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:text="Crash"/> |
| 31 | + |
| 32 | + <TextView |
| 33 | + android:id="@+id/tv_crash" |
| 34 | + android:layout_width="wrap_content" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:layout_gravity="center" |
| 37 | + android:layout_margin="@dimen/size_20dp" |
| 38 | + android:text="text" |
| 39 | + android:textColor="@android:color/holo_red_light"/> |
| 40 | + |
25 | 41 | </LinearLayout> |
0 commit comments