OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <LinearLayout | 2 <LinearLayout |
3 xmlns:android="http://schemas.android.com/apk/res/android" | 3 xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 android:layout_margin="16dp" |
| 6 android:layout_width="match_parent" |
| 7 android:layout_height="match_parent" |
| 8 android:orientation="vertical" |
| 9 android:weightSum="1" |
| 10 android:layout_centerHorizontal="true"> |
| 11 |
| 12 <TextView |
| 13 android:id="@+id/room_edittext_description" |
4 android:layout_width="match_parent" | 14 android:layout_width="match_parent" |
5 android:layout_height="match_parent" | 15 android:layout_height="wrap_content" |
6 android:orientation="vertical" | 16 android:text="@string/room_description"/> |
7 android:weightSum="1" | |
8 android:layout_margin="8dp" | |
9 android:layout_centerHorizontal="true"> | |
10 | 17 |
11 <LinearLayout | 18 <LinearLayout |
| 19 android:orientation="horizontal" |
12 android:layout_width="match_parent" | 20 android:layout_width="match_parent" |
13 android:layout_height="wrap_content" | 21 android:layout_height="wrap_content" |
14 android:orientation="horizontal" > | 22 android:gravity="center" |
15 <ImageButton | 23 android:layout_marginBottom="8dp"> |
16 android:id="@+id/add_room_button" | 24 |
17 android:background="@android:drawable/ic_menu_add" | 25 <EditText |
18 android:contentDescription="@string/add_room_description" | 26 android:id="@+id/room_edittext" |
19 android:layout_marginEnd="20dp" | 27 android:layout_width="0dp" |
20 android:layout_width="48dp" | 28 android:layout_height="wrap_content" |
21 android:layout_height="48dp"/> | 29 android:layout_weight="1" |
22 <ImageButton | 30 android:singleLine="true" |
23 android:id="@+id/remove_room_button" | 31 android:imeOptions="actionDone" |
24 android:background="@android:drawable/ic_delete" | 32 android:inputType="text"/> |
25 android:contentDescription="@string/remove_room_description" | 33 |
26 android:layout_marginEnd="20dp" | 34 <ImageButton |
27 android:layout_width="48dp" | 35 android:id="@+id/connect_button" |
28 android:layout_height="48dp"/> | 36 android:layout_width="48dp" |
29 <ImageButton | 37 android:layout_height="48dp" |
30 android:id="@+id/connect_button" | 38 android:contentDescription="@string/connect_description" |
31 android:background="@android:drawable/sym_action_call" | 39 android:background="@android:drawable/sym_action_call" /> |
32 android:contentDescription="@string/connect_description" | |
33 android:layout_marginEnd="20dp" | |
34 android:layout_width="48dp" | |
35 android:layout_height="48dp"/> | |
36 <ImageButton | |
37 android:id="@+id/connect_loopback_button" | |
38 android:background="@drawable/ic_loopback_call" | |
39 android:contentDescription="@string/connect_loopback_description
" | |
40 android:layout_width="48dp" | |
41 android:layout_height="48dp"/> | |
42 </LinearLayout> | 40 </LinearLayout> |
| 41 |
43 <TextView | 42 <TextView |
44 android:id="@+id/room_edittext_description" | 43 android:id="@+id/room_listview_description" |
45 android:layout_width="fill_parent" | 44 android:layout_width="match_parent" |
46 android:layout_height="wrap_content" | 45 android:layout_height="48dp" |
47 android:layout_margin="5dp" | 46 android:layout_marginTop="8dp" |
48 android:text="@string/room_description"/> | 47 android:lines="1" |
49 <EditText | 48 android:maxLines="1" |
50 android:id="@+id/room_edittext" | 49 android:textAppearance="?android:attr/textAppearanceMedium" |
| 50 android:text="@string/favorites" |
| 51 android:gravity="center_vertical"/> |
| 52 |
| 53 <FrameLayout |
| 54 android:layout_width="match_parent" |
| 55 android:layout_height="0dp" |
| 56 android:layout_weight="1"> |
| 57 |
| 58 <ListView |
| 59 android:id="@+id/room_listview" |
51 android:layout_width="match_parent" | 60 android:layout_width="match_parent" |
52 android:layout_height="wrap_content" | 61 android:layout_height="match_parent" |
53 android:singleLine="true" | |
54 android:imeOptions="actionDone"/> | |
55 <TextView | |
56 android:id="@+id/room_listview_description" | |
57 android:layout_width="fill_parent" | |
58 android:layout_height="wrap_content" | |
59 android:layout_marginTop="5dp" | |
60 android:lines="1" | |
61 android:maxLines="1" | |
62 android:textAppearance="?android:attr/textAppearanceMedium" | |
63 android:text="@string/room_names"/> | |
64 <ListView | |
65 android:id="@+id/room_listview" | |
66 android:layout_width="fill_parent" | |
67 android:layout_height="wrap_content" | |
68 android:choiceMode="singleChoice" | |
69 android:listSelector="@android:color/darker_gray" | |
70 android:drawSelectorOnTop="false" /> | 62 android:drawSelectorOnTop="false" /> |
71 | 63 |
| 64 <TextView |
| 65 android:id="@android:id/empty" |
| 66 android:layout_width="match_parent" |
| 67 android:layout_height="match_parent" |
| 68 android:gravity="center" |
| 69 android:text="@string/no_favorites" /> |
| 70 |
| 71 <android.support.design.widget.FloatingActionButton |
| 72 android:id="@+id/add_favorite_button" |
| 73 android:layout_width="56dp" |
| 74 android:layout_height="56dp" |
| 75 android:layout_margin="8dp" |
| 76 android:layout_gravity="bottom|end" |
| 77 android:src="@drawable/ic_add_white_24dp" |
| 78 android:contentDescription="@string/add_favorite_description" |
| 79 app:backgroundTint="@android:color/holo_green_dark" |
| 80 app:elevation="8dp"/> |
| 81 </FrameLayout> |
72 </LinearLayout> | 82 </LinearLayout> |
OLD | NEW |