Skip to content

Commit 6ff3a73

Browse files
committed
Adjust UI for subscription
1 parent 2a43b52 commit 6ff3a73

File tree

1 file changed

+48
-42
lines changed

1 file changed

+48
-42
lines changed

V2rayNG/app/src/main/res/layout/item_recycler_sub_setting.xml

+48-42
Original file line numberDiff line numberDiff line change
@@ -44,70 +44,76 @@
4444
android:layout_width="wrap_content"
4545
android:layout_height="wrap_content"
4646
android:layout_marginTop="@dimen/layout_margin_spacing"
47-
android:lines="1"
47+
android:lines="2"
4848
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
4949

50-
<LinearLayout
51-
android:layout_width="wrap_content"
52-
android:layout_height="wrap_content"
53-
android:layout_marginTop="@dimen/layout_margin_spacing"
54-
android:orientation="horizontal">
55-
56-
<androidx.appcompat.widget.SwitchCompat
57-
android:id="@+id/chk_enable"
58-
android:layout_width="wrap_content"
59-
android:layout_height="wrap_content"
60-
android:text="@string/sub_setting_enable"
61-
app:theme="@style/BrandedSwitch" />
62-
</LinearLayout>
63-
6450
</LinearLayout>
6551

66-
6752
<LinearLayout
6853
android:layout_width="wrap_content"
6954
android:layout_height="@dimen/sub_height"
7055
android:gravity="center"
71-
android:orientation="horizontal">
56+
android:orientation="vertical"
57+
android:paddingStart="@dimen/padding_start"
58+
android:paddingEnd="@dimen/padding_end">
7259

7360
<LinearLayout
74-
android:id="@+id/layout_share"
7561
android:layout_width="wrap_content"
7662
android:layout_height="wrap_content"
77-
android:background="?attr/selectableItemBackgroundBorderless"
78-
android:clickable="true"
79-
android:focusable="true"
8063
android:gravity="center"
81-
android:orientation="vertical"
82-
android:padding="@dimen/layout_margin_spacing">
83-
84-
<ImageView
85-
android:layout_width="@dimen/png_height"
86-
android:layout_height="@dimen/png_height"
87-
app:srcCompat="@drawable/ic_share_24dp" />
64+
android:orientation="horizontal">
8865

66+
<LinearLayout
67+
android:id="@+id/layout_share"
68+
android:layout_width="wrap_content"
69+
android:layout_height="wrap_content"
70+
android:background="?attr/selectableItemBackgroundBorderless"
71+
android:clickable="true"
72+
android:focusable="true"
73+
android:gravity="center"
74+
android:orientation="vertical"
75+
android:padding="@dimen/layout_margin_spacing">
76+
77+
<ImageView
78+
android:layout_width="@dimen/png_height"
79+
android:layout_height="@dimen/png_height"
80+
app:srcCompat="@drawable/ic_share_24dp" />
81+
82+
</LinearLayout>
83+
84+
<LinearLayout
85+
android:id="@+id/layout_edit"
86+
android:layout_width="wrap_content"
87+
android:layout_height="wrap_content"
88+
android:background="?attr/selectableItemBackgroundBorderless"
89+
android:clickable="true"
90+
android:focusable="true"
91+
android:gravity="center"
92+
android:nextFocusLeft="@+id/info_container"
93+
android:orientation="vertical"
94+
android:padding="@dimen/layout_margin_spacing">
95+
96+
<ImageView
97+
android:layout_width="@dimen/png_height"
98+
android:layout_height="@dimen/png_height"
99+
app:srcCompat="@drawable/ic_edit_24dp" />
100+
101+
</LinearLayout>
89102
</LinearLayout>
90103

91104
<LinearLayout
92-
android:id="@+id/layout_edit"
93105
android:layout_width="wrap_content"
94106
android:layout_height="wrap_content"
95-
android:background="?attr/selectableItemBackgroundBorderless"
96-
android:clickable="true"
97-
android:focusable="true"
98-
android:gravity="center"
99-
android:nextFocusLeft="@+id/info_container"
100-
android:orientation="vertical"
101-
android:padding="@dimen/layout_margin_spacing">
102-
103-
<ImageView
104-
android:layout_width="@dimen/png_height"
105-
android:layout_height="@dimen/png_height"
106-
app:srcCompat="@drawable/ic_edit_24dp" />
107+
android:layout_marginTop="@dimen/layout_margin_top_height"
108+
android:orientation="horizontal">
107109

110+
<androidx.appcompat.widget.SwitchCompat
111+
android:id="@+id/chk_enable"
112+
android:layout_width="wrap_content"
113+
android:layout_height="wrap_content"
114+
app:theme="@style/BrandedSwitch" />
108115
</LinearLayout>
109116
</LinearLayout>
110-
111117
</LinearLayout>
112118

113119
</androidx.cardview.widget.CardView>

0 commit comments

Comments
 (0)