Changeset View
Changeset View
Standalone View
Standalone View
res/layout/activity_device.xml
1 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <LinearLayout | ||
---|---|---|---|---|---|
2 | xmlns:android="http://schemas.android.com/apk/res/android" | ||||
2 | xmlns:tools="http://schemas.android.com/tools" | 3 | xmlns:tools="http://schemas.android.com/tools" | ||
4 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
3 | android:layout_width="match_parent" | 5 | android:layout_width="match_parent" | ||
4 | android:layout_height="match_parent" | 6 | android:layout_height="match_parent" | ||
5 | android:orientation="vertical" | 7 | android:orientation="vertical" | ||
6 | android:padding="@dimen/activity_vertical_margin" | 8 | android:padding="@dimen/activity_vertical_margin" | ||
7 | tools:context="org.kde.kdeconnect.UserInterface.DeviceFragment"> | 9 | tools:context="org.kde.kdeconnect.UserInterface.DeviceFragment"> | ||
8 | 10 | | |||
9 | <LinearLayout | 11 | <LinearLayout | ||
10 | android:id="@+id/pairing_buttons" | 12 | android:id="@+id/pairing_buttons" | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 59 | <Button | |||
62 | android:layout_weight="1" | 64 | android:layout_weight="1" | ||
63 | android:background="@drawable/button_round" | 65 | android:background="@drawable/button_round" | ||
64 | android:text="@string/pairing_reject" | 66 | android:text="@string/pairing_reject" | ||
65 | android:textColor="@android:color/white" /> | 67 | android:textColor="@android:color/white" /> | ||
66 | 68 | | |||
67 | </LinearLayout> | 69 | </LinearLayout> | ||
68 | </LinearLayout> | 70 | </LinearLayout> | ||
69 | 71 | | |||
72 | <LinearLayout | ||||
73 | android:id="@+id/error_message_container" | ||||
74 | android:layout_width="match_parent" | ||||
75 | android:layout_height="match_parent" | ||||
76 | android:orientation="horizontal" | ||||
77 | android:gravity="center" | ||||
78 | android:visibility="gone" > | ||||
79 | | ||||
80 | <android.support.v7.widget.AppCompatImageView | ||||
81 | android:id="@+id/error_message_icon" | ||||
82 | android:layout_width="wrap_content" | ||||
83 | android:layout_height="wrap_content" | ||||
84 | android:importantForAccessibility="no" | ||||
85 | android:paddingEnd="8dip" | ||||
86 | android:paddingLeft="0dip" | ||||
87 | android:paddingRight="8dip" | ||||
88 | android:paddingStart="0dip" | ||||
89 | android:src="@drawable/ic_error_outline_black_48dp" | ||||
90 | app:tint="?attr/colorHighContrast" | ||||
91 | tools:ignore="UnusedAttribute"/> | ||||
92 | | ||||
70 | <TextView | 93 | <TextView | ||
71 | android:id="@+id/not_reachable_message" | 94 | android:id="@+id/not_reachable_message" | ||
72 | android:layout_width="match_parent" | 95 | android:layout_width="match_parent" | ||
73 | android:layout_height="match_parent" | 96 | android:layout_height="wrap_content" | ||
74 | android:drawableLeft="@drawable/ic_error_outline_black_48dp" | | |||
75 | android:drawablePadding="8dip" | | |||
76 | android:drawableStart="@drawable/ic_error_outline_black_48dp" | | |||
77 | android:gravity="center_vertical" | 97 | android:gravity="center_vertical" | ||
78 | android:text="@string/unreachable_description" | 98 | android:text="@string/unreachable_description" | ||
79 | android:textAppearance="?android:attr/textAppearanceMedium" | 99 | android:textAppearance="?android:attr/textAppearanceMedium" | ||
80 | android:visibility="gone" /> | 100 | android:visibility="gone" /> | ||
81 | 101 | | |||
82 | <TextView | 102 | <TextView | ||
83 | android:id="@+id/on_data_message" | 103 | android:id="@+id/on_data_message" | ||
84 | android:layout_width="match_parent" | 104 | android:layout_width="match_parent" | ||
85 | android:layout_height="match_parent" | 105 | android:layout_height="wrap_content" | ||
86 | android:drawableLeft="@drawable/ic_error_outline_black_48dp" | | |||
87 | android:drawablePadding="8dip" | | |||
88 | android:drawableStart="@drawable/ic_error_outline_black_48dp" | | |||
89 | android:gravity="center_vertical" | 106 | android:gravity="center_vertical" | ||
90 | android:text="@string/on_data_message" | 107 | android:text="@string/on_data_message" | ||
91 | android:textAppearance="?android:attr/textAppearanceMedium" | 108 | android:textAppearance="?android:attr/textAppearanceMedium" | ||
92 | android:visibility="gone" /> | 109 | android:visibility="gone" /> | ||
110 | </LinearLayout> | ||||
111 | | ||||
93 | 112 | | |||
94 | <ListView | 113 | <ListView | ||
95 | android:id="@+id/buttons_list" | 114 | android:id="@+id/buttons_list" | ||
96 | android:layout_width="match_parent" | 115 | android:layout_width="match_parent" | ||
97 | android:layout_height="match_parent" | 116 | android:layout_height="match_parent" | ||
98 | android:fillViewport="true" | 117 | android:fillViewport="true" | ||
99 | tools:context=".DeviceActivity" /> | 118 | tools:context=".DeviceActivity" /> | ||
100 | 119 | | |||
101 | </LinearLayout> | 120 | </LinearLayout> |