Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 166 additions & 76 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,112 +1,202 @@
<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_grey">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:orientation="vertical"
android:padding="16dp">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/description"
android:textSize="20sp" />

<TextView
android:id="@+id/textView2"
<!-- Header Section -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/Warning"
android:textSize="20sp" />
android:orientation="vertical"
android:background="@color/white"
android:padding="16dp"
android:layout_marginBottom="16dp"
android:elevation="2dp">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/description"
android:textSize="16sp"
android:lineSpacing="4dp"
android:textColor="@color/text_primary" />

<Button
android:id="@+id/button"
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:background="@color/divider_color" />

<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/Warning"
android:textSize="14sp"
android:lineSpacing="4dp"
Comment thread
Cross2pro marked this conversation as resolved.
android:textColor="@color/warning_red"
android:textStyle="bold" />
</LinearLayout>

<!-- Repository Links Section -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/click_to_go_to_repo" />

<Button
android:id="@+id/button2"
android:orientation="vertical"
android:background="@color/white"
android:padding="16dp"
android:layout_marginBottom="16dp"
android:elevation="2dp">

<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/click_to_go_to_repo"
android:textSize="16sp"
android:padding="12dp"
android:layout_marginBottom="8dp" />

<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gitee"
android:textSize="16sp"
android:padding="12dp" />
</LinearLayout>

<!-- Settings Section -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="10dp"
android:text="@string/gitee" />
android:orientation="vertical"
android:background="@color/white"
android:elevation="2dp">

<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_title"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="@color/text_primary"
android:padding="16dp"
android:paddingBottom="8dp" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider_color" />

<TableRow
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="48dp">
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="8dp"
android:paddingBottom="8dp">

<Switch
android:id="@+id/switch1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/switch1" />
</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="48dp">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch1"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:minHeight="56dp"
android:textSize="15sp"
android:textColor="@color/text_primary" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:background="@color/divider_color" />

<Switch
android:id="@+id/switch2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:minHeight="48dp"
android:text="@string/switch2" />

</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="48dp">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch2"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:minHeight="56dp"
android:textSize="15sp"
android:textColor="@color/text_primary" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:background="@color/divider_color" />

<Switch
android:id="@+id/switch3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:minHeight="48dp"
android:text="@string/switch3" />
</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="48dp">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch3"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:minHeight="56dp"
android:textSize="15sp"
android:textColor="@color/text_primary" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:background="@color/divider_color" />

<Switch
android:id="@+id/switch4"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:minHeight="48dp"
android:text="@string/switch4" />
</TableRow>

<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="48dp">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch4"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:minHeight="56dp"
android:textSize="15sp"
android:textColor="@color/text_primary" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="16dp"
android:background="@color/divider_color" />

<Switch
android:id="@+id/switch5"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:minHeight="48dp"
android:text="@string/switch5" />
</TableRow>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/switch5"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:minHeight="56dp"
android:textSize="15sp"
android:textColor="@color/text_primary" />

</LinearLayout>
</LinearLayout>

</TableLayout>
</LinearLayout>
</ScrollView>
1 change: 1 addition & 0 deletions app/src/main/res/values-en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
<string name="permission_description">The permission to access local storage is used to set up configuration files. If refused you need to set up file manually.</string>
<string name="positive">Sure</string>
<string name="negative">Refuse</string>
<string name="settings_title">Settings</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">访问本地目录的权限用于设定配置文件,如果拒绝,您需要手动设定配置文件。</string>
<string name="positive">确定</string>
<string name="negative">拒绝</string>
<string name="settings_title">设置</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rHK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">訪問本地目錄的許可權用於設定設定檔,如果拒絕,您需要手動設定設定檔。</string>
<string name="positive">確定</string>
<string name="negative">拒絕</string>
<string name="settings_title">設定</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rMO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">訪問本地目錄的許可權用於設定設定檔,如果拒絕,您需要手動設定設定檔。</string>
<string name="positive">確定</string>
<string name="negative">拒絕</string>
<string name="settings_title">設定</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rSG/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">訪問本地目錄的許可權用於設定設定檔,如果拒絕,您需要手動設定設定檔。</string>
<string name="positive">確定</string>
<string name="negative">拒絕</string>
<string name="settings_title">設定</string>
</resources>
3 changes: 2 additions & 1 deletion app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">存取本機目錄的許可權用於設定配置檔案,如果拒絕,您需要手動設定配置檔案。</string>
<string name="positive">確定</string>
<string name="negative">拒絕</string>
</resources>
<string name="settings_title">設定</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
<string name="permission_description">访问本地目录的权限用于设定配置文件,如果拒绝,您需要手动设定配置文件。</string>
<string name="positive">确定</string>
<string name="negative">拒绝</string>
<string name="settings_title">设置</string>
</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="background_grey">#FFF5F5F5</color>
<color name="text_primary">#FF212121</color>
<color name="text_secondary">#FF757575</color>
<color name="warning_red">#FFD32F2F</color>
<color name="divider_color">#FFE0E0E0</color>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<string name="permission_description">The permission to access local storage is used to set up configuration files. If refused you need to set up file manually.</string>
<string name="positive">Sure</string>
<string name="negative">Refuse</string>
<string name="settings_title">Settings</string>
</resources>
Loading