|
24 | 24 | android:visibility="gone" |
25 | 25 | app:tint="@color/kr_shortcut_color" /> |
26 | 26 |
|
27 | | - <LinearLayout |
| 27 | + <RelativeLayout |
28 | 28 | android:id="@+id/kr_layout_ac" |
29 | | - android:layout_marginStart="10dp" |
30 | | - android:layout_marginTop="10dp" |
31 | | - android:layout_marginBottom="10dp" |
32 | | - android:layout_alignParentStart="true" |
33 | | - android:layout_centerVertical="true" |
34 | | - android:gravity="center_vertical" |
35 | | - android:layout_toStartOf="@id/kr_switch" |
36 | | - android:layout_width="wrap_content" |
| 29 | + android:layout_width="match_parent" |
37 | 30 | android:layout_height="wrap_content"> |
38 | | - <ImageView |
39 | | - android:padding="0dp" |
40 | | - android:id="@id/kr_icon" |
41 | | - android:layout_marginStart="5dp" |
42 | | - android:layout_gravity="center_vertical" |
43 | | - android:layout_width="35dp" |
44 | | - android:layout_height="35dp" /> |
45 | 31 |
|
46 | | - <LinearLayout |
47 | | - android:layout_width="match_parent" |
| 32 | + <Switch |
| 33 | + android:id="@id/kr_switch" |
| 34 | + android:layout_width="wrap_content" |
48 | 35 | android:layout_height="wrap_content" |
| 36 | + android:layout_alignParentEnd="true" |
| 37 | + android:layout_centerVertical="true" |
| 38 | + android:layout_marginTop="18dp" |
| 39 | + android:layout_marginEnd="8dp" |
| 40 | + android:layout_marginBottom="10dp" |
| 41 | + android:textOff="" |
| 42 | + android:textOn="" |
| 43 | + android:switchTextAppearance="@null" |
| 44 | + android:track="@drawable/kr_switch_track" |
| 45 | + android:thumb="@drawable/kr_switch_thumb" |
| 46 | + android:padding="5dp" |
| 47 | + android:layout_gravity="center_vertical" |
| 48 | + android:clickable="false" |
| 49 | + android:elevation="5dp" |
| 50 | + android:enabled="false" |
| 51 | + android:focusable="false" /> |
| 52 | + |
| 53 | + <LinearLayout |
| 54 | + android:orientation="horizontal" |
49 | 55 | android:layout_marginStart="10dp" |
50 | | - android:orientation="vertical"> |
51 | | - |
52 | | - <TextView |
53 | | - android:id="@id/kr_title" |
| 56 | + android:layout_marginTop="10dp" |
| 57 | + android:layout_marginBottom="10dp" |
| 58 | + android:layout_alignParentStart="true" |
| 59 | + android:layout_centerVertical="true" |
| 60 | + android:gravity="center_vertical" |
| 61 | + android:layout_toStartOf="@id/kr_switch" |
| 62 | + android:layout_width="match_parent" |
| 63 | + android:layout_height="wrap_content"> |
| 64 | + <ImageView |
| 65 | + android:padding="0dp" |
| 66 | + android:id="@id/kr_icon" |
| 67 | + android:layout_marginStart="5dp" |
| 68 | + android:layout_gravity="center_vertical" |
| 69 | + android:layout_width="35dp" |
| 70 | + android:layout_height="35dp" /> |
| 71 | + |
| 72 | + <LinearLayout |
54 | 73 | android:layout_width="match_parent" |
55 | 74 | android:layout_height="wrap_content" |
56 | | - style="@style/textTitle" /> |
57 | | - |
58 | | - <TextView |
59 | | - android:id="@id/kr_desc" |
60 | | - android:layout_width="wrap_content" |
61 | | - android:layout_height="wrap_content" |
62 | | - android:layout_marginTop="4dp" |
63 | | - style="@style/textSmall" |
64 | | - android:visibility="gone" /> |
65 | | - |
66 | | - <TextView |
67 | | - android:id="@id/kr_summary" |
68 | | - android:layout_width="wrap_content" |
69 | | - android:layout_height="wrap_content" |
70 | | - android:layout_marginTop="4dp" |
71 | | - android:textColor="?android:colorAccent" |
72 | | - style="@style/textSmall" |
73 | | - android:visibility="gone" /> |
| 75 | + android:layout_marginStart="10dp" |
| 76 | + android:orientation="vertical"> |
| 77 | + |
| 78 | + <TextView |
| 79 | + android:id="@id/kr_title" |
| 80 | + android:ellipsize="end" |
| 81 | + android:layout_width="match_parent" |
| 82 | + android:layout_height="wrap_content" |
| 83 | + style="@style/textTitle" /> |
| 84 | + |
| 85 | + <TextView |
| 86 | + android:id="@id/kr_desc" |
| 87 | + android:layout_width="wrap_content" |
| 88 | + android:layout_height="wrap_content" |
| 89 | + android:layout_marginTop="4dp" |
| 90 | + style="@style/textSmall" |
| 91 | + android:visibility="gone" /> |
| 92 | + |
| 93 | + <TextView |
| 94 | + android:id="@id/kr_summary" |
| 95 | + android:layout_width="wrap_content" |
| 96 | + android:layout_height="wrap_content" |
| 97 | + android:layout_marginTop="4dp" |
| 98 | + android:textColor="?android:colorAccent" |
| 99 | + style="@style/textSmall" |
| 100 | + android:visibility="gone" /> |
| 101 | + </LinearLayout> |
74 | 102 | </LinearLayout> |
75 | | - </LinearLayout> |
76 | | - |
77 | | - <Switch |
78 | | - android:id="@id/kr_switch" |
79 | | - android:layout_width="wrap_content" |
80 | | - android:layout_height="wrap_content" |
81 | | - android:layout_alignParentEnd="true" |
82 | | - android:layout_centerVertical="true" |
83 | | - android:layout_marginTop="18dp" |
84 | | - android:layout_marginEnd="8dp" |
85 | | - android:layout_marginBottom="10dp" |
86 | | - android:textOff="" |
87 | | - android:textOn="" |
88 | | - android:switchTextAppearance="@null" |
89 | | - android:track="@drawable/kr_switch_track" |
90 | | - android:thumb="@drawable/kr_switch_thumb" |
91 | | - android:padding="5dp" |
92 | | - android:layout_gravity="center_vertical" |
93 | | - android:clickable="false" |
94 | | - android:elevation="5dp" |
95 | | - android:enabled="false" |
96 | | - android:focusable="false" /> |
97 | | - |
| 103 | + </RelativeLayout> |
98 | 104 | <ImageView |
99 | 105 | android:id="@+id/kr_extra_icon" |
100 | 106 | android:layout_below="@id/kr_layout_ac" |
|
0 commit comments