Skip to content

Commit

Permalink
Add: icon's legend to Help
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Sep 29, 2020
1 parent 12d4e3c commit abc2870
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 5 deletions.
146 changes: 141 additions & 5 deletions app/src/main/res/layout/fragment_help.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ OAndBackupX: open-source apps backup and restore app.
~ Copyright (C) 2020 Antonios Hazim
~
Expand Down Expand Up @@ -170,10 +169,147 @@
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/cards_spacing">

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/helpHtml"
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/large_spacing" />
android:orientation="vertical"
android:paddingBottom="@dimen/large_spacing">

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/helpHtml"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/cards_spacing"
android:text="@string/help_legend"
android:textSize="16sp"
android:textStyle="bold" />

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/cards_spacing"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/cards_spacing">

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
android:tint="@color/ic_system"
app:srcCompat="@drawable/ic_outline_system_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/cards_spacing"
android:layout_weight="4"
android:text="@string/apptype_system"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
android:tint="@color/ic_user"
app:srcCompat="@drawable/ic_outline_user_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"
android:text="@string/apptype_user"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />
</androidx.appcompat.widget.LinearLayoutCompat>

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/cards_spacing"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/cards_spacing">

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
android:tint="@color/ic_special"
app:srcCompat="@drawable/ic_round_special_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/cards_spacing"
android:layout_weight="4"
android:text="@string/apptype_special"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
app:srcCompat="@drawable/ic_outline_apk_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"
android:text="@string/radioApk"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />
</androidx.appcompat.widget.LinearLayoutCompat>

<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/cards_spacing"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/cards_spacing">

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
app:srcCompat="@drawable/ic_outline_data_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/cards_spacing"
android:layout_weight="4"
android:text="@string/radioData"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />

<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/cards_spacing"
app:srcCompat="@drawable/ic_outline_update_24" />

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"
android:text="@string/radioUpdated"
android:textAppearance="@style/TextAppearance.Lines"
android:textStyle="bold" />
</androidx.appcompat.widget.LinearLayoutCompat>

<androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/large_spacing"
android:text="@string/help_appTypeHint" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
</androidx.appcompat.widget.LinearLayoutCompat>
3 changes: 3 additions & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,7 @@
<string name="intro_permission_storage">Die Anwendung verwendet die Lese-/Schreibberechtigung des Speichers, um auf den externen Speicher zugreifen zu können, einen benutzerdefinierten Backup-Ordner einzurichten und die Möglichkeit für die Sicherung externer Daten/OBB anderer Anwendungen zu bieten.</string>
<string name="intro_permission_usageaccess">Die Anwendung benötigt diese Berechtigung, um die Statistiken und Größen der Daten und des Caches Ihrer Anwendungen lesen zu können.</string>
<string name="intro_permission_batteryoptimization">Die App kann bei geplanten Backups auf einigen ROMs, die aggressive Batterieoptimierungen haben, wie z.B. MIUI, auf Probleme stoßen, aber selbst auch auf Vanilla-AOSP kann ein solches Problem auftreten.</string>
<string name="help_legend">Die Legende:</string>
<string name="radioUpdated">Aktualisiert</string>
<string name="help_appTypeHint">* Das Symbol des Anwendungstyps wäre grau, wenn die Anwendung deinstalliert ist, und dunkelgrau, wenn die Anwendung deaktiviert ist.</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
<color name="ic_exodus">#AB47BC</color>
<color name="ic_apk">#45f490</color>
<color name="ic_data">#f44590</color>
<color name="ic_system">#4590FE</color>
<color name="ic_user">#FE9045</color>
<color name="ic_special">#9045FE</color>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<string name="radioApk">APK</string>
<string name="radioData">Data</string>
<string name="radioSpecial">Special backups</string>
<string name="radioUpdated">Updated</string>
<string name="de_selectAll">De/select all</string>
<string name="onlyApkBackedUp">Only APK</string>
<string name="onlyDataBackedUp">Only data</string>
Expand Down Expand Up @@ -186,6 +187,8 @@
<string name="logfileSavedAt" translatable="false">Logfile saved at %s</string>
<string name="help_license">License</string>
<string name="help_group">Our Group</string>
<string name="help_legend">Legend:</string>
<string name="help_appTypeHint">* App type\'s icon would be gray if the app is uninstalled and dark gray if the app is disabled.</string>
<string name="enable_encryption_title">Data Encryption</string>
<string name="enable_encryption_message">It\'s not safe to keep your data on your device not encrypted. For the safety of your data enable encryption and set a password.</string>
<string name="sort_and_filter"><![CDATA[Sort & Filter]]></string>
Expand Down

0 comments on commit abc2870

Please sign in to comment.