Skip to content

Commit c43b1e3

Browse files
UI: Change action buttons grid from 5 columns to 3 columns to prevent text wrapping issues
1 parent 585e0a4 commit c43b1e3

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@
189189
android:layout_height="wrap_content"
190190
android:layout_marginBottom="24dp"
191191
android:alignmentMode="alignMargins"
192-
android:columnCount="5"
193-
android:rowCount="1">
192+
android:columnCount="3">
194193

195194
<com.google.android.material.button.MaterialButton
196195
android:id="@+id/btn_settings_quick"
@@ -199,6 +198,8 @@
199198
android:layout_height="wrap_content"
200199
android:layout_columnWeight="1"
201200
android:layout_margin="2dp"
201+
android:maxLines="1"
202+
android:ellipsize="end"
202203
android:text="@string/btn_label_settings"
203204
android:textSize="11sp"
204205
app:icon="@drawable/ic_settings_24dp" />
@@ -210,6 +211,8 @@
210211
android:layout_height="wrap_content"
211212
android:layout_columnWeight="1"
212213
android:layout_margin="2dp"
214+
android:maxLines="1"
215+
android:ellipsize="end"
213216
android:text="@string/btn_label_logs"
214217
android:textSize="11sp"
215218
app:icon="@drawable/ic_logcat_24dp" />
@@ -221,6 +224,8 @@
221224
android:layout_height="wrap_content"
222225
android:layout_columnWeight="1"
223226
android:layout_margin="2dp"
227+
android:maxLines="1"
228+
android:ellipsize="end"
224229
android:text="@string/btn_label_update"
225230
android:textSize="11sp"
226231
app:icon="@drawable/ic_subscriptions_24dp" />
@@ -232,6 +237,8 @@
232237
android:layout_height="wrap_content"
233238
android:layout_columnWeight="1"
234239
android:layout_margin="2dp"
240+
android:maxLines="1"
241+
android:ellipsize="end"
235242
android:text="@string/btn_label_about"
236243
android:textSize="11sp"
237244
app:icon="@drawable/ic_about_24dp" />
@@ -243,6 +250,8 @@
243250
android:layout_height="wrap_content"
244251
android:layout_columnWeight="1"
245252
android:layout_margin="2dp"
253+
android:maxLines="1"
254+
android:ellipsize="end"
246255
android:text="@string/btn_label_filter"
247256
android:textSize="11sp"
248257
app:icon="@drawable/ic_filter_24dp" />

0 commit comments

Comments
 (0)