From 00768b985bb3988522e2dd8a65449deb6adf0896 Mon Sep 17 00:00:00 2001 From: AnGgIt86 Date: Sat, 28 Sep 2024 18:16:19 +0700 Subject: [PATCH] Optimize Config Layout --- .../layout/activity_server_shadowsocks.xml | 130 +----------------- .../main/res/layout/activity_server_socks.xml | 49 +------ .../res/layout/activity_server_trojan.xml | 130 +----------------- .../main/res/layout/activity_server_vless.xml | 130 +----------------- .../main/res/layout/activity_server_vmess.xml | 130 +----------------- .../res/layout/activity_server_wireguard.xml | 49 +------ .../main/res/layout/layout_address_port.xml | 54 ++++++++ .../layout/{tls_layout.xml => layout_tls.xml} | 0 app/src/main/res/layout/layout_transport.xml | 84 +++++++++++ 9 files changed, 152 insertions(+), 604 deletions(-) create mode 100644 app/src/main/res/layout/layout_address_port.xml rename app/src/main/res/layout/{tls_layout.xml => layout_tls.xml} (100%) create mode 100644 app/src/main/res/layout/layout_transport.xml diff --git a/app/src/main/res/layout/activity_server_shadowsocks.xml b/app/src/main/res/layout/activity_server_shadowsocks.xml index 285d034f..6ab44773 100644 --- a/app/src/main/res/layout/activity_server_shadowsocks.xml +++ b/app/src/main/res/layout/activity_server_shadowsocks.xml @@ -275,54 +275,7 @@ android:paddingEnd="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip"> - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/layout/activity_server_socks.xml b/app/src/main/res/layout/activity_server_socks.xml index 91da2086..c604038b 100644 --- a/app/src/main/res/layout/activity_server_socks.xml +++ b/app/src/main/res/layout/activity_server_socks.xml @@ -275,54 +275,7 @@ android:paddingEnd="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip"> - - - - - - - - - - - - - + - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/layout/activity_server_vless.xml b/app/src/main/res/layout/activity_server_vless.xml index 75e83845..22fed0ea 100644 --- a/app/src/main/res/layout/activity_server_vless.xml +++ b/app/src/main/res/layout/activity_server_vless.xml @@ -275,54 +275,7 @@ android:paddingEnd="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip"> - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/layout/activity_server_vmess.xml b/app/src/main/res/layout/activity_server_vmess.xml index 46425639..39ea668d 100644 --- a/app/src/main/res/layout/activity_server_vmess.xml +++ b/app/src/main/res/layout/activity_server_vmess.xml @@ -275,54 +275,7 @@ android:paddingEnd="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip"> - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/layout/activity_server_wireguard.xml b/app/src/main/res/layout/activity_server_wireguard.xml index 9f2a58d6..71575cce 100644 --- a/app/src/main/res/layout/activity_server_wireguard.xml +++ b/app/src/main/res/layout/activity_server_wireguard.xml @@ -275,54 +275,7 @@ android:paddingEnd="16.0dip" android:layout_marginStart="16.0dip" android:layout_marginEnd="16.0dip"> - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/tls_layout.xml b/app/src/main/res/layout/layout_tls.xml similarity index 100% rename from app/src/main/res/layout/tls_layout.xml rename to app/src/main/res/layout/layout_tls.xml diff --git a/app/src/main/res/layout/layout_transport.xml b/app/src/main/res/layout/layout_transport.xml new file mode 100644 index 00000000..a058a461 --- /dev/null +++ b/app/src/main/res/layout/layout_transport.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file