|
1 | | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
2 | | - xmlns:tools="http://schemas.android.com/tools" |
3 | | - android:layout_width="match_parent" |
4 | | - android:layout_height="match_parent" |
5 | | - android:paddingLeft="@dimen/activity_horizontal_margin" |
6 | | - android:paddingRight="@dimen/activity_horizontal_margin" |
7 | | - android:paddingTop="@dimen/activity_vertical_margin" |
8 | | - android:paddingBottom="@dimen/activity_vertical_margin" |
9 | | - tools:context=".MainActivity"> |
10 | | - |
11 | | - <TextView |
12 | | - android:text="@string/hello_world" |
13 | | - android:layout_width="wrap_content" |
14 | | - android:layout_height="wrap_content"/> |
15 | | - |
16 | | -</RelativeLayout> |
| 1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:tools="http://schemas.android.com/tools" |
| 3 | + android:orientation="vertical" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:paddingLeft="@dimen/activity_horizontal_margin" |
| 7 | + android:paddingRight="@dimen/activity_horizontal_margin" |
| 8 | + android:paddingTop="@dimen/activity_vertical_margin" |
| 9 | + android:paddingBottom="@dimen/activity_vertical_margin" |
| 10 | + tools:context=".MainActivity"> |
| 11 | + |
| 12 | + <android.support.design.widget.TextInputLayout |
| 13 | + android:layout_width="fill_parent" |
| 14 | + android:layout_height="wrap_content"> |
| 15 | + |
| 16 | + <android.support.v7.widget.AppCompatEditText |
| 17 | + android:layout_width="fill_parent" |
| 18 | + android:layout_height="wrap_content" |
| 19 | + android:hint="Normal edit" |
| 20 | + /> |
| 21 | + |
| 22 | + </android.support.design.widget.TextInputLayout> |
| 23 | + |
| 24 | + <android.support.design.widget.TextInputLayout |
| 25 | + android:layout_width="fill_parent" |
| 26 | + android:layout_height="wrap_content"> |
| 27 | + |
| 28 | + <android.support.v7.widget.AppCompatEditText |
| 29 | + android:layout_width="fill_parent" |
| 30 | + android:layout_height="wrap_content" |
| 31 | + android:hint="Normal hint" |
| 32 | + android:text="This one is already filled" |
| 33 | + /> |
| 34 | + |
| 35 | + </android.support.design.widget.TextInputLayout> |
| 36 | + |
| 37 | + <android.support.design.widget.TextInputLayout |
| 38 | + android:layout_width="fill_parent" |
| 39 | + android:layout_height="wrap_content"> |
| 40 | + |
| 41 | + <android.support.v7.widget.AppCompatEditText |
| 42 | + android:layout_width="fill_parent" |
| 43 | + android:layout_height="wrap_content" |
| 44 | + android:hint="Special empty" |
| 45 | + /> |
| 46 | + |
| 47 | + </android.support.design.widget.TextInputLayout> |
| 48 | + |
| 49 | + <android.support.design.widget.TextInputLayout |
| 50 | + android:layout_width="fill_parent" |
| 51 | + android:layout_height="wrap_content"> |
| 52 | + |
| 53 | + <android.support.v7.widget.AppCompatEditText |
| 54 | + android:layout_width="fill_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:hint="Special hint" |
| 57 | + android:text="This should look different" |
| 58 | + /> |
| 59 | + |
| 60 | + </android.support.design.widget.TextInputLayout> |
| 61 | +</LinearLayout> |
0 commit comments