|
45 | 45 | android:layout_height="wrap_content" |
46 | 46 | android:inputType="text"/> |
47 | 47 |
|
48 | | - <LinearLayout |
49 | | - android:layout_width="match_parent" |
50 | | - android:layout_height="match_parent" |
51 | | - android:orientation="horizontal" |
52 | | - android:layout_marginTop="20sp" |
53 | | - android:layout_gravity="center"> |
54 | | - <TextView |
55 | | - android:id="@+id/urlLabel" |
56 | | - android:layout_width="wrap_content" |
| 48 | + <TextView |
| 49 | + android:id="@+id/urlLabel" |
| 50 | + android:layout_width="wrap_content" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:text="URL" |
| 53 | + android:textAppearance="?android:attr/textAppearanceSmall"/> |
| 54 | + |
| 55 | + <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> |
| 56 | + <EditText |
| 57 | + android:id="@+id/editUrl" |
| 58 | + android:layout_width="match_parent" |
57 | 59 | android:layout_height="wrap_content" |
58 | | - android:text="URL" |
59 | | - android:textAppearance="?android:attr/textAppearanceSmall"/> |
| 60 | + android:inputType="text"/> |
| 61 | + |
60 | 62 | <ImageButton |
61 | 63 | android:id="@+id/copyUrlButton" |
62 | 64 | android:layout_width="wrap_content" |
63 | 65 | android:layout_height="wrap_content" |
64 | 66 | android:src="@drawable/copy" |
| 67 | + android:layout_alignParentRight="true" |
| 68 | + android:layout_centerVertical="true" |
65 | 69 | android:layout_marginLeft="10sp" |
66 | 70 | android:background="@null"/> |
67 | | - </LinearLayout> |
| 71 | + </RelativeLayout> |
68 | 72 |
|
69 | | - <EditText |
70 | | - android:id="@+id/editUrl" |
71 | | - android:layout_width="match_parent" |
| 73 | + <TextView |
| 74 | + android:id="@+id/userLabel" |
| 75 | + android:layout_width="wrap_content" |
72 | 76 | android:layout_height="wrap_content" |
73 | | - android:inputType="text"/> |
| 77 | + android:layout_marginTop="10sp" |
| 78 | + android:text="Username" |
| 79 | + android:textAppearance="?android:attr/textAppearanceSmall"/> |
74 | 80 |
|
75 | | - <LinearLayout |
76 | | - android:layout_width="match_parent" |
77 | | - android:layout_height="match_parent" |
78 | | - android:orientation="horizontal" |
79 | | - android:layout_marginTop="20sp" |
80 | | - android:layout_gravity="center"> |
81 | | - <TextView |
82 | | - android:id="@+id/userLabel" |
83 | | - android:layout_width="wrap_content" |
| 81 | + <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> |
| 82 | + |
| 83 | + <EditText |
| 84 | + android:id="@+id/editUser" |
| 85 | + android:layout_width="match_parent" |
84 | 86 | android:layout_height="wrap_content" |
85 | | - android:layout_marginTop="10sp" |
86 | | - android:text="Username" |
87 | | - android:textAppearance="?android:attr/textAppearanceSmall"/> |
| 87 | + android:inputType="text"/> |
| 88 | + |
88 | 89 | <ImageButton |
89 | 90 | android:id="@+id/copyUsernameButton" |
90 | 91 | android:layout_width="wrap_content" |
91 | 92 | android:layout_height="wrap_content" |
92 | 93 | android:src="@drawable/copy" |
| 94 | + android:layout_alignParentRight="true" |
| 95 | + android:layout_centerVertical="true" |
93 | 96 | android:layout_marginLeft="10sp" |
94 | 97 | android:background="@null"/> |
95 | | - </LinearLayout> |
| 98 | + </RelativeLayout> |
96 | 99 |
|
97 | | - <EditText |
98 | | - android:id="@+id/editUser" |
99 | | - android:layout_width="match_parent" |
| 100 | + <TextView |
| 101 | + android:id="@+id/passwordLabel" |
| 102 | + android:layout_width="wrap_content" |
100 | 103 | android:layout_height="wrap_content" |
101 | | - android:inputType="text"/> |
| 104 | + android:layout_marginTop="10sp" |
| 105 | + android:text="Password" |
| 106 | + android:textAppearance="?android:attr/textAppearanceSmall"/> |
102 | 107 |
|
103 | | - <LinearLayout |
104 | | - android:layout_width="match_parent" |
105 | | - android:layout_height="match_parent" |
106 | | - android:orientation="horizontal" |
107 | | - android:layout_marginTop="20sp" |
108 | | - android:layout_gravity="center"> |
109 | | - <TextView |
110 | | - android:id="@+id/passwordLabel" |
111 | | - android:layout_width="wrap_content" |
| 108 | + <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> |
| 109 | + |
| 110 | + <EditText |
| 111 | + android:id="@+id/editPassword" |
| 112 | + android:layout_width="match_parent" |
112 | 113 | android:layout_height="wrap_content" |
113 | | - android:layout_marginTop="10sp" |
114 | | - android:text="Password" |
115 | | - android:textAppearance="?android:attr/textAppearanceSmall"/> |
| 114 | + android:inputType="text"/> |
| 115 | + |
116 | 116 | <ImageButton |
117 | 117 | android:id="@+id/copyPasswordButton" |
118 | 118 | android:layout_width="wrap_content" |
119 | 119 | android:layout_height="wrap_content" |
120 | 120 | android:src="@drawable/copy" |
| 121 | + android:layout_alignParentRight="true" |
| 122 | + android:layout_centerVertical="true" |
121 | 123 | android:layout_marginLeft="10sp" |
122 | 124 | android:background="@null"/> |
123 | | - </LinearLayout> |
124 | | - |
125 | | - <EditText |
126 | | - android:id="@+id/editPassword" |
127 | | - android:layout_width="match_parent" |
128 | | - android:layout_height="wrap_content" |
129 | | - android:inputType="text"/> |
| 125 | + </RelativeLayout> |
130 | 126 |
|
131 | 127 | <TextView |
132 | 128 | android:id="@+id/nameDescription" |
|
0 commit comments