diff --git a/app/build.gradle b/app/build.gradle index 723f6b7..bb2f63c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.denizk0461.textbasic" minSdk 23 targetSdk 33 - versionCode 7 - versionName "2.0.0" + versionCode 9 + versionName "2.0.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index f390b6c..22dac62 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,7 +11,7 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 6, + "versionCode": 8, "versionName": "2.0.0", "outputFile": "app-release.apk" } diff --git a/app/src/main/java/com/denizd/textbasic/fragment/QuoteFragment.kt b/app/src/main/java/com/denizd/textbasic/fragment/QuoteFragment.kt index cdb7a94..92d0fde 100644 --- a/app/src/main/java/com/denizd/textbasic/fragment/QuoteFragment.kt +++ b/app/src/main/java/com/denizd/textbasic/fragment/QuoteFragment.kt @@ -43,6 +43,14 @@ class QuoteFragment : BaseFragment(R.layout.fragment_quote), QuoteAdapter.OnDele } } + binding.buttonSave.setOnClickListener { + save() + context.theme.showSnackBar( + binding.coordinatorLayout, + getString(R.string.quote_fragment_force_save), + ) + } + binding.fabAddQuote.setOnClickListener { quoteAdapter.addNewQuote() } diff --git a/app/src/main/res/drawable/save.xml b/app/src/main/res/drawable/save.xml new file mode 100644 index 0000000..82070aa --- /dev/null +++ b/app/src/main/res/drawable/save.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 889d921..1a67849 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -37,10 +37,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" ads:adSize="BANNER" - ads:adUnitId="ca-app-pub-3940256099942544/6300978111" + ads:adUnitId="ca-app-pub-6028283326987089/7147449316" ads:layout_constraintBottom_toBottomOf="parent" ads:layout_constraintStart_toStartOf="parent" ads:layout_constraintEnd_toEndOf="parent"/> - \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_quote.xml b/app/src/main/res/layout/fragment_quote.xml index beb62f3..365c871 100644 --- a/app/src/main/res/layout/fragment_quote.xml +++ b/app/src/main/res/layout/fragment_quote.xml @@ -13,17 +13,43 @@ android:layout_height="wrap_content" android:fitsSystemWindows="true"> - + android:layout_marginStart="16dp" + android:layout_marginEnd="8dp"> + + + + + + diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 518253a..112c230 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -20,6 +20,7 @@ Eintrag hinzufügen Eintrag wurde gelöscht Rückgängig + Einträge wurden gespeichert! Anleitung @@ -101,5 +102,5 @@ Fett Kursiv Fett & kursiv - Text Basic ist eine einfache App, um einen beliebigen Text auf deinem Startbildschirm darzustellen! Füge einfach das Text Basic-Widget auf deinem Startbildschirm hinzu, gib Text in die App ein, und der Text wird auf deinem Bildschirm angezeigt.\n\nWechsle zwischen Texten: In der App kannst du beliebig viele Texte eingeben, indem du den [+]-Knopf drückst und deinen Text in das neu aufgetauchte Feld eingibst. Alle Texte werden automatisch gespeichert, du musst nichts weiteres tun.\nDu kannst zwischen deinen Texten wechseln, indem du auf deinem Startbildschirm auf das Widget klickst. Die Texte werden in der Reihenfolge angezeigt, in der du sie eingegeben hast, du kannst jedoch \"zufällige Reihenfolge\" in den App-Einstellungen aktivieren, um eine willkürliche Reihenfolge zu nutzen.\nHINWEIS: Sollte das Wechseln zwischen Texten nicht klappen, so versuche bitte, das Widget zu vergrößern und wieder zu verkleinern. Danach sollte der Fehler behoben sein.\n\nVerändere den Look: Du kannst verändern, wie der Text aussieht, indem du in die App-Einstellungen schaust – dort findest du Optionen für verschiedene Schriftarten und -größen, du kannst die Position bearbeiten sowie den Textstil, und du kannst einen Hintergrund, Umriss, oder Schatten hinzufügen. + Text Basic ist eine einfache App, um einen beliebigen Text auf deinem Startbildschirm darzustellen! Füge einfach das Text Basic-Widget auf deinem Startbildschirm hinzu, gib Text in die App ein, und der Text wird auf deinem Bildschirm angezeigt.\n\nWechsle zwischen Texten: In der App kannst du beliebig viele Texte eingeben, indem du den [+]-Knopf drückst und deinen Text in das neu aufgetauchte Feld eingibst. Alle Texte werden automatisch gespeichert, aber du kannst gerne den \'Speichern\'-Knopf oben rechts drücken, um sicherzustellen, dass deine Einträge gespeichert werden.\nDu kannst zwischen deinen Texten wechseln, indem du auf deinem Startbildschirm auf das Widget klickst. Die Texte werden in der Reihenfolge angezeigt, in der du sie eingegeben hast, du kannst jedoch \"zufällige Reihenfolge\" in den App-Einstellungen aktivieren, um eine willkürliche Reihenfolge zu nutzen.\nHINWEIS: Sollte das Wechseln zwischen Texten nicht klappen, so versuche bitte, das Widget zu vergrößern und wieder zu verkleinern. Danach sollte der Fehler behoben sein.\n\nVerändere den Look: Du kannst verändern, wie der Text aussieht, indem du in die App-Einstellungen schaust – dort findest du Optionen für verschiedene Schriftarten und -größen, du kannst die Position bearbeiten sowie den Textstil und die Farben, und du kannst einen Hintergrund, Umriss, oder Schatten hinzufügen. \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 35a761f..60e1229 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -19,6 +19,7 @@ Add entry Entry has been deleted Undo + Entries have been saved! Guide @@ -109,9 +110,9 @@ Bold & Italics Text Basic is a simple app for displaying a text on your home screen! Just add the Text Basic widget to your home screen, enter text in the app, and it will show on your home screen. -\n\nCycle through texts: In the app, you can enter as many texts as you like by clicking the [+] button and entering your text into the newly appeared field. All texts are saved automatically, you have to take no further action.\nYou can cycle through your texts by clicking on the widget on your home screen. They will be shown in the order you added them in, but you can turn on "random order" in the app\'s settings to randomise the order. +\n\nCycle through texts: In the app, you can enter as many texts as you like by clicking the [+] button and entering your text into the newly appeared field. All texts are saved automatically, but feel free to press the \'save\' button in the top right if you want to make sure that your entries will be saved.\nYou can cycle through your texts by clicking on the widget on your home screen. They will be shown in the order you added them in, but you can turn on "random order" in the app\'s settings to randomise the order. \nNOTE: if clicking on the widget does not cycle between texts, please try changing the size of the widget and then change it back. This should solve the issue. -\n\nCustomise the look: You can change how your text will look by heading into the app\'s settings – there, you can edit the text appearance by changing the size, font, position, apply formatting options, and even add a background, an outline, or a shadow. +\n\nCustomise the look: You can change how your text will look by heading into the app\'s settings – there, you can edit the text appearance by changing the size, font, position, colours, apply formatting options, and even add a background, an outline, or a shadow. Sans-Serif