Archived
FetcherActivity.kt now has a bottom app bar with useful actions and extends FragmentActivity instead of AppCompatActivity to show a tutorial bottom sheet
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
<vector android:height="24dp" android:tint="?attr/colorOnSurfaceVariant"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
<vector android:height="24dp" android:tint="?attr/colorOnSurfaceVariant"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2L11,7h2v2z"/>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
<vector android:height="24dp" android:tint="?attr/colorOnSurfaceVariant"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z"/>
|
||||
|
||||
@@ -8,19 +8,25 @@
|
||||
<WebView
|
||||
android:id="@+id/webview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<com.google.android.material.bottomappbar.BottomAppBar
|
||||
style="@style/Widget.Material3.BottomAppBar"
|
||||
android:id="@+id/bottom_app_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
app:menu="@menu/menu_fetcher_bar"/>
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginEnd="@dimen/fab_margin"
|
||||
android:layout_marginBottom="@dimen/fab_margin"
|
||||
app:srcCompat="@drawable/save"/>
|
||||
app:srcCompat="@drawable/save"
|
||||
android:contentDescription="@string/fetch_bar_save_desc"
|
||||
app:layout_anchor="@id/bottom_app_bar"/>
|
||||
<!-- android:layout_gravity="bottom|end"-->
|
||||
<!-- android:layout_marginEnd="@dimen/fab_margin"-->
|
||||
<!-- android:layout_marginBottom="@dimen/fab_margin"-->
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -165,11 +165,13 @@
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:id="@+id/button_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="end"
|
||||
android:layout_marginBottom="8dp">
|
||||
android:layout_marginBottom="8dp"
|
||||
android:animateLayoutChanges="true">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/button_delete"
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/close"
|
||||
android:icon="@drawable/cross"
|
||||
android:title="@string/fetch_bar_close_title"
|
||||
android:contentDescription="@string/fetch_bar_close_desc"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/refresh"
|
||||
android:icon="@drawable/refresh"
|
||||
android:title="@string/fetch_bar_refresh_title"
|
||||
android:contentDescription="@string/fetch_bar_refresh_desc"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/help"
|
||||
android:icon="@drawable/info"
|
||||
android:title="@string/fetch_bar_help_title"
|
||||
android:contentDescription="@string/fetch_bar_help_desc"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
@@ -23,8 +23,19 @@
|
||||
<string name="fetch_error_webpage_snack">Du musst deinen Stundenplan öffnen!</string>
|
||||
<string name="canteen_fetch_error">Mensaplan konnte nicht heruntergeladen werden!</string>
|
||||
|
||||
<string name="fetch_bar_close_title">Schließen</string>
|
||||
<string name="fetch_bar_close_desc">Schließe die Webseite, ohne etwas zu speichern</string>
|
||||
<string name="fetch_bar_refresh_title">Aktualisieren</string>
|
||||
<string name="fetch_bar_refresh_desc">Aktualisiere die Webseite</string>
|
||||
<string name="fetch_bar_help_title">Hilfe</string>
|
||||
<string name="fetch_bar_help_desc">Zeige Hilfe</string>
|
||||
<string name="fetch_bar_help_sheet_title">Wie Du Deinen Stundenplan in der App speichern kannst</string>
|
||||
<string name="fetch_bar_help_sheet_content"> • Logge dich mit deinem Stud.IP-Login ein\n • Öffne deinen Stundenplan (falls er sich nicht automatisch öffnet)\n • Klicke auf den \'Speichern\'-Knopf rechts in der unteren Ecke\n • Fertig!</string>
|
||||
<string name="fetch_bar_save_desc">Speichere den Stundenplan in der App ab</string>
|
||||
|
||||
<string name="save">Speichern</string>
|
||||
<string name="delete">Löschen</string>
|
||||
<string name="sheet_schedule_update_delete_confirm">Sicher?</string>
|
||||
<string name="cancel">Abbrechen</string>
|
||||
<string name="confirm">Bestätigen</string>
|
||||
<string name="sheet_schedule_update_header">Veranstaltung bearbeiten</string>
|
||||
@@ -164,7 +175,6 @@
|
||||
|
||||
<string name="settings_app_version">App-Version</string>
|
||||
|
||||
<string name="settings_app_version_10">oh jaa</string>
|
||||
<string name="settings_app_version_15">klick weiter</string>
|
||||
<string name="settings_app_version_121">Solltest du nicht für deine Klausuren lernen?</string>
|
||||
|
||||
|
||||
@@ -23,8 +23,19 @@
|
||||
<string name="fetch_error_webpage_snack">You must navigate to your schedule!</string>
|
||||
<string name="canteen_fetch_error">Couldn\'t retrieve the canteen plan!</string>
|
||||
|
||||
<string name="fetch_bar_close_title">Close</string>
|
||||
<string name="fetch_bar_close_desc">Close the website without saving anything</string>
|
||||
<string name="fetch_bar_refresh_title">Refresh</string>
|
||||
<string name="fetch_bar_refresh_desc">Refresh the page</string>
|
||||
<string name="fetch_bar_help_title">Help</string>
|
||||
<string name="fetch_bar_help_desc">Show help</string>
|
||||
<string name="fetch_bar_help_sheet_title">How to save your timetable in the app</string>
|
||||
<string name="fetch_bar_help_sheet_content"> • Log in with your Stud.IP login\n • Open your timetable view (in case it doesn\'t open automatically)\n • Click the \'save\' button in the bottom right corner\n • Done!</string>
|
||||
<string name="fetch_bar_save_desc">Save the timetable in the app</string>
|
||||
|
||||
<string name="save">Save</string>
|
||||
<string name="delete">Delete</string>
|
||||
<string name="sheet_schedule_update_delete_confirm">Sure?</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="confirm">Confirm</string>
|
||||
<string name="sheet_schedule_update_header">Edit Event</string>
|
||||
@@ -153,7 +164,7 @@
|
||||
<string name="settings_pref_colour_subtitle">This colours the icons similar to how they look the website</string> <!-- TODO this text sucks, DE too -->
|
||||
|
||||
<string name="settings_launch_canteen_title">Show canteen plan on app launch</string>
|
||||
<string name="settings_launch_canteen_subtitle">Otherwise your schedule will be shown at launch</string>
|
||||
<string name="settings_launch_canteen_subtitle">Otherwise your schedule will be shown at launch; CURRENTLY BROKEN</string>
|
||||
|
||||
<string name="settings_crashlytics_title">Opt-in to sharing crash data</string>
|
||||
<string name="settings_crashlytics_subtitle">Data will be anonymised</string> <!-- TODO is this true? -->
|
||||
@@ -170,7 +181,6 @@
|
||||
|
||||
<string name="settings_app_version">App Version</string>
|
||||
|
||||
<string name="settings_app_version_10">ahhh yes</string>
|
||||
<string name="settings_app_version_15">keep clicking</string>
|
||||
<string name="settings_app_version_20" translatable="false">^_^</string>
|
||||
<string name="settings_app_version_30" translatable="false">^_____^</string>
|
||||
@@ -181,5 +191,13 @@
|
||||
|
||||
<string name="with_love">with ♡️ from Bremen-Osterholz\nmade by denizk0461 \\__*</string>
|
||||
|
||||
<string name="de4thSpirit" translatable="false">In our hearts, she lives forevermore</string>
|
||||
<string-array name="cheesy" translatable="false">
|
||||
<item>in our hearts, she lives forevermore</item>
|
||||
<item>it\'s only real when it hurts</item>
|
||||
<item>can\'t go back in time – every second is a new one</item>
|
||||
<item>doctor, i am the great clown Pagliacci</item>
|
||||
<item>if we only had one more day, what is the last thing you\'d say?</item>
|
||||
<item>love with your heart, use your head for everything else</item>
|
||||
<item>if I die, I hope I\'m buried in a forest – that is, if any of it\'s left</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user