add help activity

This commit is contained in:
woheller69 2023-04-08 17:46:35 +02:00
parent 4a81cd5c1f
commit 36a3e02c52
11 changed files with 211 additions and 2 deletions

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:fillColor="#FF000000"
android:pathData="M478,720q21,0 35.5,-14.5T528,670q0,-21 -14.5,-35.5T478,620q-21,0 -35.5,14.5T428,670q0,21 14.5,35.5T478,720ZM480,880q-83,0 -156,-31.5T197,763q-54,-54 -85.5,-127T80,480q0,-83 31.5,-156T197,197q54,-54 127,-85.5T480,80q83,0 156,31.5T763,197q54,54 85.5,127T880,480q0,83 -31.5,156T763,763q-54,54 -127,85.5T480,880ZM484,308q25,0 43.5,16t18.5,40q0,22 -13.5,39T502,435q-23,20 -40.5,44T444,533q0,14 10.5,23.5T479,566q15,0 25.5,-10t13.5,-25q4,-21 18,-37.5t30,-31.5q23,-22 39.5,-48t16.5,-58q0,-51 -41.5,-83.5T484,240q-38,0 -72.5,16T359,305q-7,12 -4.5,25.5T368,351q14,8 29,5t25,-17q11,-15 27.5,-23t34.5,-8Z"/>
</vector>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".activities.HelpActivity">
<include layout="@layout/toolbar" />
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/help"
android:layout_marginTop="53dp"
android:layout_width="match_parent"
android:layout_height="fill_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</androidx.drawerlayout.widget.DrawerLayout>

View file

@ -21,6 +21,10 @@
android:id="@+id/nav_settings"
android:icon="@drawable/ic_settings_24px"
android:title="@string/activity_settings" />
<item
android:id="@+id/nav_help"
android:icon="@drawable/ic_help_24px"
android:title="@string/activity_help" />
<item
android:id="@+id/nav_about"
android:icon="@drawable/ic_info_24px"

View file

@ -130,5 +130,6 @@
<string name="edit_location_shading_solar_elevation_heading">Min. Elevation der Sonne [°]</string>
<string name="edit_location_shading_opacity_heading">Abschattung unterhalb dieser Elevation [%]</string>
<string name="edit_location_shading_heading">Abschattung</string>
<string name="activity_help">Anleitung</string>
</resources>

View file

@ -132,4 +132,5 @@
<string name="edit_location_shading_solar_elevation_heading">Min. solar elevation [°]</string>
<string name="edit_location_shading_opacity_heading">Shading below this elevation [%]</string>
<string name="edit_location_shading_heading">Shading</string>
<string name="activity_help">Instructions</string>
</resources>