|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 |
| - xmlns:app="http://schemas.android.com/apk/res-auto" |
| 2 | +<LinearLayout |
4 | 3 | android:gravity="center_vertical"
|
5 | 4 | android:id="@+id/item_bg"
|
6 | 5 | android:layout_width="match_parent"
|
7 | 6 | android:layout_height="wrap_content"
|
8 | 7 | android:layout_marginLeft="16.0dip"
|
9 |
| - android:layout_marginTop="4.0dip" |
| 8 | + android:layout_marginTop="8.0dip" |
10 | 9 | android:layout_marginRight="16.0dip"
|
11 |
| - android:layout_marginBottom="4.0dip"> |
| 10 | + android:layout_marginBottom="8.0dip" |
| 11 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 12 | + xmlns:app="http://schemas.android.com/apk/res-auto"> |
12 | 13 | <androidx.cardview.widget.CardView
|
13 |
| - android:orientation="horizontal" |
14 | 14 | android:id="@+id/item_cardview"
|
15 | 15 | android:layout_width="match_parent"
|
16 | 16 | android:layout_height="wrap_content"
|
17 |
| - android:layout_margin="@dimen/cardview_margin" |
18 | 17 | app:cardBackgroundColor="@color/uwu_bg_card"
|
19 | 18 | app:cardCornerRadius="24.0dip"
|
20 | 19 | app:cardElevation="0.0dip">
|
21 | 20 | <LinearLayout
|
22 |
| - android:gravity="center" |
23 |
| - android:layout_gravity="center" |
24 | 21 | android:orientation="horizontal"
|
25 | 22 | android:id="@+id/info_container"
|
26 |
| - android:background="?attr/selectableItemBackground" |
27 | 23 | android:focusable="true"
|
28 |
| - android:nextFocusRight="@+id/layout_edit" |
29 | 24 | android:clickable="true"
|
30 | 25 | android:layout_width="match_parent"
|
31 |
| - android:layout_height="wrap_content"> |
| 26 | + android:layout_height="wrap_content" |
| 27 | + android:foreground="?android:selectableItemBackground"> |
32 | 28 | <LinearLayout
|
33 |
| - android:orientation="vertical" |
34 |
| - android:layout_width="0.0dip" |
35 |
| - android:layout_height="wrap_content" |
36 |
| - android:layout_weight="1.0" |
37 |
| - android:paddingStart="@dimen/padding_start"> |
| 29 | + android:orientation="horizontal" |
| 30 | + android:id="@+id/layout_indicator" |
| 31 | + android:background="@color/uwu_transparent" |
| 32 | + android:layout_width="match_parent" |
| 33 | + android:layout_height="match_parent"> |
38 | 34 | <LinearLayout
|
39 |
| - android:layout_width="wrap_content" |
40 |
| - android:layout_height="wrap_content" |
41 |
| - android:layout_marginTop="10.0dip" |
42 |
| - android:orientation="horizontal"> |
43 |
| - <TextView |
44 |
| - android:id="@+id/remarks" |
45 |
| - android:layout_width="wrap_content" |
46 |
| - android:layout_height="wrap_content" |
47 |
| - android:textAppearance="@style/TextAppearance.AppCompat.Subhead" /> |
48 |
| - <ImageView |
49 |
| - android:id="@+id/img_locked" |
50 |
| - android:layout_gravity="center" |
51 |
| - android:layout_marginStart="@dimen/padding_start" |
52 |
| - android:layout_width="16dp" |
53 |
| - android:layout_height="16dp" |
54 |
| - app:srcCompat="@drawable/ic_lock_24dp" /> |
55 |
| - </LinearLayout> |
56 |
| - <TextView |
57 |
| - android:textAppearance="@style/TextAppearance.AppCompat.Small" |
58 |
| - android:id="@+id/domainIp" |
59 |
| - android:layout_width="wrap_content" |
60 |
| - android:layout_height="wrap_content" |
61 |
| - android:layout_marginTop="10.0dip" |
62 |
| - android:lines="1" /> |
63 |
| - <TextView |
64 |
| - android:textAppearance="@style/TextAppearance.AppCompat.Small" |
65 |
| - android:id="@+id/outboundTag" |
66 |
| - android:layout_width="wrap_content" |
67 |
| - android:layout_height="wrap_content" |
68 |
| - android:layout_marginTop="10.0dip" |
69 |
| - android:layout_marginBottom="10.0dip" |
70 |
| - android:lines="1" /> |
71 |
| - </LinearLayout> |
72 |
| - <LinearLayout |
73 |
| - android:gravity="center" |
74 |
| - android:orientation="vertical" |
75 |
| - android:layout_width="wrap_content" |
76 |
| - android:layout_height="@dimen/sub_height" |
77 |
| - android:paddingStart="@dimen/padding_start" |
78 |
| - android:paddingEnd="@dimen/padding_end"> |
79 |
| - <LinearLayout |
80 |
| - android:gravity="center" |
81 | 35 | android:orientation="vertical"
|
82 |
| - android:id="@+id/layout_edit" |
83 |
| - android:background="?attr/selectableItemBackgroundBorderless" |
84 |
| - android:padding="@dimen/layout_margin_spacing" |
85 |
| - android:focusable="true" |
86 |
| - android:nextFocusLeft="@+id/info_container" |
87 |
| - android:clickable="true" |
88 |
| - android:layout_width="wrap_content" |
89 |
| - android:layout_height="wrap_content"> |
90 |
| - <ImageView |
91 |
| - android:layout_width="@dimen/png_height" |
92 |
| - android:layout_height="@dimen/png_height" |
93 |
| - app:srcCompat="@drawable/ic_edit_24dp" |
94 |
| - app:tint="?android:textColorPrimary" /> |
95 |
| - </LinearLayout> |
96 |
| - <LinearLayout |
97 |
| - android:orientation="horizontal" |
98 |
| - android:layout_width="wrap_content" |
99 |
| - android:layout_height="wrap_content" |
100 |
| - android:layout_marginTop="@dimen/padding_start"> |
101 |
| - <com.neko.switchbutton.SwitchButton |
102 |
| - android:gravity="center" |
103 |
| - android:layout_gravity="center" |
104 |
| - android:id="@+id/chk_enable" |
105 |
| - android:layout_width="wrap_content" |
106 |
| - android:layout_height="wrap_content" |
107 |
| - app:kswAnimationDuration="300" |
108 |
| - app:kswBackDrawable="@drawable/uwu_switch_track" |
109 |
| - app:kswThumbDrawable="@drawable/uwu_switch_thumb" /> |
| 36 | + android:nextFocusRight="@+id/layout_edit" |
| 37 | + android:layout_width="match_parent" |
| 38 | + android:layout_height="match_parent"> |
| 39 | + <LinearLayout |
| 40 | + android:orientation="horizontal" |
| 41 | + android:id="@+id/container" |
| 42 | + android:layout_width="match_parent" |
| 43 | + android:layout_height="wrap_content"> |
| 44 | + <LinearLayout |
| 45 | + android:gravity="center_vertical" |
| 46 | + android:layout_gravity="center_vertical" |
| 47 | + android:paddingLeft="12.0dip" |
| 48 | + android:paddingTop="8.0dip" |
| 49 | + android:paddingRight="0.0dip" |
| 50 | + android:paddingBottom="4.0dip" |
| 51 | + android:layout_width="0.0dip" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:layout_weight="1.0"> |
| 54 | + <TextView |
| 55 | + android:textAppearance="@style/TextAppearance.AppCompat.Subhead" |
| 56 | + android:textSize="17.0sp" |
| 57 | + android:textColor="?android:textColorPrimary" |
| 58 | + android:id="@+id/remarks" |
| 59 | + android:layout_width="wrap_content" |
| 60 | + android:layout_height="wrap_content" |
| 61 | + android:maxLines="2" |
| 62 | + android:minLines="1" /> |
| 63 | + <ImageView |
| 64 | + android:id="@+id/img_locked" |
| 65 | + android:paddingLeft="12.0dip" |
| 66 | + android:layout_width="28.0dip" |
| 67 | + android:layout_height="28.0dip" |
| 68 | + android:src="@drawable/ic_lock_24dp" |
| 69 | + app:tint="?android:textColorSecondary" /> |
| 70 | + </LinearLayout> |
| 71 | + <LinearLayout |
| 72 | + android:gravity="center" |
| 73 | + android:orientation="vertical" |
| 74 | + android:id="@+id/layout_edit" |
| 75 | + android:background="?attr/selectableItemBackgroundBorderless" |
| 76 | + android:paddingLeft="0.0dip" |
| 77 | + android:paddingTop="8.0dip" |
| 78 | + android:paddingRight="12.0dip" |
| 79 | + android:paddingBottom="4.0dip" |
| 80 | + android:focusable="true" |
| 81 | + android:clickable="true" |
| 82 | + android:layout_width="wrap_content" |
| 83 | + android:layout_height="wrap_content"> |
| 84 | + <ImageView |
| 85 | + android:layout_width="@dimen/png_height" |
| 86 | + android:layout_height="@dimen/png_height" |
| 87 | + android:src="@drawable/ic_edit_24dp" |
| 88 | + app:tint="?android:textColorPrimary" /> |
| 89 | + </LinearLayout> |
| 90 | + </LinearLayout> |
| 91 | + <LinearLayout |
| 92 | + android:orientation="horizontal" |
| 93 | + android:id="@+id/contener" |
| 94 | + android:layout_width="match_parent" |
| 95 | + android:layout_height="wrap_content"> |
| 96 | + <LinearLayout |
| 97 | + android:gravity="center_vertical" |
| 98 | + android:layout_gravity="center_vertical" |
| 99 | + android:paddingLeft="12.0dip" |
| 100 | + android:paddingTop="4.0dip" |
| 101 | + android:paddingRight="0.0dip" |
| 102 | + android:paddingBottom="4.0dip" |
| 103 | + android:layout_width="0.0dip" |
| 104 | + android:layout_height="wrap_content" |
| 105 | + android:layout_weight="1.0"> |
| 106 | + <TextView |
| 107 | + android:textAppearance="@style/TextAppearance.AppCompat.Small" |
| 108 | + android:textSize="14.0sp" |
| 109 | + android:textColor="?android:textColorSecondary" |
| 110 | + android:id="@+id/domainIp" |
| 111 | + android:layout_width="wrap_content" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:maxLines="1" |
| 114 | + android:minLines="1" /> |
| 115 | + </LinearLayout> |
| 116 | + </LinearLayout> |
| 117 | + <LinearLayout |
| 118 | + android:orientation="horizontal" |
| 119 | + android:id="@+id/contleler" |
| 120 | + android:layout_width="match_parent" |
| 121 | + android:layout_height="wrap_content"> |
| 122 | + <LinearLayout |
| 123 | + android:gravity="center_vertical" |
| 124 | + android:layout_gravity="center_vertical" |
| 125 | + android:paddingLeft="12.0dip" |
| 126 | + android:paddingTop="4.0dip" |
| 127 | + android:paddingRight="0.0dip" |
| 128 | + android:paddingBottom="8.0dip" |
| 129 | + android:layout_width="0.0dip" |
| 130 | + android:layout_height="wrap_content" |
| 131 | + android:layout_weight="1.0"> |
| 132 | + <TextView |
| 133 | + android:textAppearance="@style/TextAppearance.AppCompat.Small" |
| 134 | + android:textSize="14.0sp" |
| 135 | + android:textColor="?attr/colorThemeUwu" |
| 136 | + android:id="@+id/outboundTag" |
| 137 | + android:layout_width="wrap_content" |
| 138 | + android:layout_height="wrap_content" |
| 139 | + android:maxLines="1" |
| 140 | + android:minLines="1" /> |
| 141 | + </LinearLayout> |
| 142 | + <LinearLayout |
| 143 | + android:gravity="center" |
| 144 | + android:orientation="vertical" |
| 145 | + android:paddingLeft="0.0dip" |
| 146 | + android:paddingTop="4.0dip" |
| 147 | + android:paddingRight="12.0dip" |
| 148 | + android:paddingBottom="8.0dip" |
| 149 | + android:layout_width="wrap_content" |
| 150 | + android:layout_height="wrap_content"> |
| 151 | + <com.neko.switchbutton.SwitchButton |
| 152 | + android:gravity="center" |
| 153 | + android:layout_gravity="center" |
| 154 | + android:id="@+id/chk_enable" |
| 155 | + android:layout_width="wrap_content" |
| 156 | + android:layout_height="wrap_content" |
| 157 | + app:kswAnimationDuration="300" |
| 158 | + app:kswBackDrawable="@drawable/uwu_switch_track" |
| 159 | + app:kswThumbDrawable="@drawable/uwu_switch_thumb" /> |
| 160 | + </LinearLayout> |
| 161 | + </LinearLayout> |
110 | 162 | </LinearLayout>
|
111 | 163 | </LinearLayout>
|
112 | 164 | </LinearLayout>
|
|
0 commit comments