Skip to content

Commit

Permalink
Merge pull request #241 from gini/feature-help-section-for-always-ope…
Browse files Browse the repository at this point in the history
…n-pdfs

Feature help section for always open pdfs
  • Loading branch information
a-szotyori committed Feb 8, 2019
2 parents 6829c91 + 17280da commit dc966ab
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 8 deletions.
13 changes: 11 additions & 2 deletions ginivision/src/doc/source/customization-guide.rst
Expand Up @@ -1846,11 +1846,20 @@ All Action Bar customizations except the title are global to all Activities.
- **Illustration**
Via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
``gv_file_import_section_3_illustration.png``.
``gv_file_import_section_3_illustration.png``.
**Note**: For creating your custom illustration you may use `this template
<https://github.com/gini/gini-vision-lib-assets/blob/master/Gini-Vision-Lib-Design-Elements/Illustrations/PDF/android_pdf_open_with_illustration_3.pdf>`_
from the `Gini Vision Library UI Assets
<https://github.com/gini/gini-vision-lib-assets>`_ repository.
- **Clear app defaults section**
- **Title**
Via overriding the string resource named ``gv_file_import_section_3_clear_app_defaults_title``.
- **Body**
Via overriding the string resource named ``gv_file_import_section_3_clear_app_defaults_body``.
:ref:`Back to screenshot. <file-import>`
21 changes: 21 additions & 0 deletions ginivision/src/main/res/layout-sw600dp/gv_activity_file_import.xml
Expand Up @@ -136,13 +136,34 @@
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_body" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Body.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_body_2" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/gv_file_import_illustration_margin"
android:src="@drawable/gv_file_import_section_3_illustration" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Title.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_title_margin"
android:text="@string/gv_file_import_section_3_clear_app_defaults_title" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Body.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_clear_app_defaults_body"/>

</LinearLayout>

</ScrollView>
21 changes: 21 additions & 0 deletions ginivision/src/main/res/layout/gv_activity_file_import.xml
Expand Up @@ -138,13 +138,34 @@
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_body" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Body.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_body_2" />

<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/gv_file_import_illustration_margin"
android:src="@drawable/gv_file_import_section_3_illustration" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Title.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_title_margin"
android:text="@string/gv_file_import_section_3_clear_app_defaults_title" />

<net.gini.android.vision.internal.ui.CustomFontTextView
style="@style/GiniVisionTheme.Help.FileImport.Section.Body.TextStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/gv_file_import_section_body_margin"
android:text="@string/gv_file_import_section_3_clear_app_defaults_body"/>

</LinearLayout>

</ScrollView>
7 changes: 5 additions & 2 deletions ginivision/src/main/res/values-en/strings.xml
Expand Up @@ -79,11 +79,14 @@
<string name="gv_unsupported_format_photos_of_screens">Photos of monitors or screens</string>
<string name="gv_supported_format_section_header">The following formats are supported:</string>
<string name="gv_unsupported_format_section_header">What is not supported:</string>
<string name="gv_file_import_header"><![CDATA[Paying digital invoices has now become even more convenient. Send a PDF invoice directly to <Banking App Name>. The document will automatically be analysed for payment transfer.]]></string>
<string name="gv_file_import_header"><![CDATA[Paying digital invoices has now become even more convenient. Send a PDF invoice directly to <Partner App Name>. The document will automatically be analysed for payment transfer.]]></string>
<string name="gv_file_import_section_1_title">Please select an invoice</string>
<string name="gv_file_import_section_1_body">To do so, please select a PDF invoice from within your email app, PDF viewer or other app on your smartphone.</string>
<string name="gv_file_import_section_2_title">Select the send function</string>
<string name="gv_file_import_section_2_body"><![CDATA[To forward the file to <Partner App Name>, use a function like "Open with...", "Send file..." or "Share" that is available within the app. The "Share" function is often represented by an icon depicting a graph of three dots that are connected by two lines. These functions are often found in the overflow menu (three dots in the upper right corner of the screen) or in the function bar at the bottom edge of the app. In some email apps, the function is located near the PDF attachment before opening the file.]]></string>
<string name="gv_file_import_section_2_body"><![CDATA[To forward the file to <Partner App Name>, use a function like "Open with...", "Send file..." or "Share" that is available within the app.\n\nThe "Share" function is often represented by an icon depicting a graph of three dots that are connected by two lines. These functions are often found in the overflow menu (three dots in the upper right corner of the screen) or in the function bar at the bottom edge of the app. In some email apps, the function is located near the PDF attachment before opening the file.]]></string>
<string name="gv_file_import_section_3_title"><![CDATA[Select the <Partner App name> as the destination]]></string>
<string name="gv_file_import_section_3_body"><![CDATA[When using this function, apps are shown to which you can send the PDF document. Please select the <Partner App Name> from the list, to start the analysis and payment process.]]></string>
<string name="gv_file_import_section_3_body_2"><![CDATA[Please use the option \"JUST ONCE\" to prevent the <Partner App Name> from opening every PDF by default.]]></string>
<string name="gv_file_import_section_3_clear_app_defaults_title">Clear app defaults</string>
<string name="gv_file_import_section_3_clear_app_defaults_body"><![CDATA[In case you notice that <Partner App Name> opens every PDF by default, then you need to clear the app\'s “Open by default” settings:\n\n1. Open the Settings app.\n\n2. Tap “Apps & notifications”.\n\n3. Tap <Partner App Name>. If you don\'t see it, first tap “See all apps” or “App info”.\n\n4. Tap “Advanced” > “Open by default” > “Clear defaults”. If you don\'t see “Advanced”, tap “Open by default” > “Clear defaults”\n\nAfter clearing the default, when you open a PDF again, your device will ask you which app to use.]]></string>
</resources>
11 changes: 7 additions & 4 deletions ginivision/src/main/res/values/strings.xml
Expand Up @@ -98,12 +98,15 @@
<string name="gv_supported_format_section_header">Folgende Formate werden unterstützt:</string>
<string name="gv_unsupported_format_section_header">Was nicht analysiert wird:</string>

<string name="gv_file_import_header"><![CDATA[Digitale Rechnungen können nun noch komfortabler beglichen werden: Senden Sie einfach Ihre Rechnung als PDF direkt an Ihre <Banking App Name>. Diese wird automatisch für die Überweisung analysiert.]]></string>
<string name="gv_file_import_header"><![CDATA[Digitale Rechnungen können nun noch komfortabler beglichen werden: Senden Sie einfach Ihre Rechnung als PDF direkt an Ihre <Partner App Name>. Diese wird automatisch für die Überweisung analysiert.]]></string>
<string name="gv_file_import_section_1_title">Wählen Sie bitte eine Rechnung aus</string>
<string name="gv_file_import_section_1_body">Bitte wählen Sie hierfür auf Ihrem Smartphone die Rechnung als PDF innerhalb einer Email-App, eines PDF-Viewers oder einer anderen App aus.</string>
<string name="gv_file_import_section_2_title">Aktivieren Sie die Senden-Funktion</string>
<string name="gv_file_import_section_2_body"><![CDATA[Um die Datei an die <Banking App Name> weiterzuleiten, verwenden Sie eine Funktion wie “Öffnen mit...”, “Datei senden...”, oder “Teilen”. Die “Teilen”-Funktion wird oft grafisch als drei Punkte, die mit zwei Linien verbunden sind, dargestellt.\n\nDiese Funktionen können üblicherweise entweder im Overflow-Menü (drei Punkte oben rechts) oder in einer Funktionsleiste am unteren App-Rand gefunden werden. In manchen Email-Apps wird die Funktion in der Nähe des PDF-Anhangs vor dem Öffnen der Datei angezeigt.]]></string>
<string name="gv_file_import_section_3_title"><![CDATA[Wählen Sie die <Banking App Name> als Ziel aus]]></string>
<string name="gv_file_import_section_3_body"><![CDATA[Beim Aktivieren dieser Funktionen werden Apps angezeigt, an die eine PDF-Datei weitergeleitet werden kann. Bitte wählen Sie die <Banking App Name> aus der Liste aus, um den Analyse- und Überweisungsprozess zu starten.]]></string>
<string name="gv_file_import_section_2_body"><![CDATA[Um die Datei an die <Partner App Name> weiterzuleiten, verwenden Sie eine Funktion wie “Öffnen mit...”, “Datei senden...”, oder “Teilen”. Die “Teilen”-Funktion wird oft grafisch als drei Punkte, die mit zwei Linien verbunden sind, dargestellt.\n\nDiese Funktionen können üblicherweise entweder im Overflow-Menü (drei Punkte oben rechts) oder in einer Funktionsleiste am unteren App-Rand gefunden werden. In manchen Email-Apps wird die Funktion in der Nähe des PDF-Anhangs vor dem Öffnen der Datei angezeigt.]]></string>
<string name="gv_file_import_section_3_title"><![CDATA[Wählen Sie die <Partner App Name> als Ziel aus]]></string>
<string name="gv_file_import_section_3_body"><![CDATA[Beim Aktivieren dieser Funktionen werden Apps angezeigt, an die eine PDF-Datei weitergeleitet werden kann. Bitte wählen Sie die <Partner App Name> aus der Liste aus, um den Analyse- und Überweisungsprozess zu starten.]]></string>
<string name="gv_file_import_section_3_body_2"><![CDATA[Bitte verwenden Sie die Option “NUR DIESMAL” um zu vermeiden, dass die <Partner App Name> alle PDFs standardmäßig öffnet.]]></string>
<string name="gv_file_import_section_3_clear_app_defaults_title">Einstellung für Standard-App löschen</string>
<string name="gv_file_import_section_3_clear_app_defaults_body"><![CDATA[Wenn Sie merken, dass <Partner App Name> alle PDFs standardmäßig öffnet, müssen Sie die Einstellung “Standardmäßig öffnen” für die App zurücksetzen:\n\n1. Öffnen Sie die App “Einstellungen”.\n\n2. Tippen Sie auf “Apps & Benachrichtigungen.”\n\n3. Tippen Sie auf <Partner App Name>. Wenn Sie die App nicht sehen, tippen Sie zuerst auf “Alle Apps anzeigen” oder “App-Info”.\n\n4. Tippen Sie auf “Erweitert” > “Standardmäßig öffnen” > “Aktionen auf Standard zurücksetzen”. Wenn Sie die Option “Erweitert” nicht sehen, tippen Sie auf “Standardmäßig öffnen” > “Aktionen auf Standard zurücksetzen”.\n\nWenn Sie anschließend ein PDF öffnen, werden Sie wieder gefragt, welche App verwendet werden soll.]]></string>

</resources>

0 comments on commit dc966ab

Please sign in to comment.