Screen API and Component API
On the File Import Screen users can get information about how import files from other apps via "open with".
This Activity is launched by the HelpActivity for both Screen and Component APIs.
The contents of this screen need to be customized to insert your App's name or label for the "open with" functionality into the texts and illustrations.
Customizing the File Import Screen
Customizing the look of the File Import Screen is done via overriding of app resources.
The following items are customizable:
- Background color: via the color resource named
{@code gc_file_import_activity_background}
. - Header text: via overriding the string resource named
{@code gc_file_import_header}
- Header text style: via overriding the style named
{@code GiniCaptureTheme.Help.FileImport.Header.TextStyle}
- Separator line color: via the color resource named
{@code gc_file_import_separator}
- Section numbers' background circle color: via the color resource named
{@code gc_file_import_section_number_background}
- Section numbers' text color: via the color resource named
{@code gc_file_import_section_number}
- Section title text style: via overriding the style named
{@code GiniCaptureTheme.Help.FileImport.Section.Title.TextStyle}
- Section body text style: via overriding the style named
{@code GiniCaptureTheme.Help.FileImport.Section.Body.TextStyle}
- Section 1 title: via overriding the string resource named
{@code gc_file_import_section_1_title}
- Section 1 body: via overriding the string resource named
{@code gc_file_import_section_1_body}
- Section 1 illustration image: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code gc_file_import_section_1_illustration.png}
. For creating your custom illustration you may use this template from the Gini Capture SDK UI Assets repository. - Section 2 title: via overriding the string resource named
{@code gc_file_import_section_2_title}
- Section 2 body: via overriding the string resource named
{@code gc_file_import_section_2_body}
- Section 2 illustration image: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code gc_file_import_section_2_illustration.png}
. For creating your custom illustration you may use this template from the Gini Capture SDK UI Assets repository. - Section 3 title: via overriding the string resource named
{@code gc_file_import_section_3_title}
- Section 3 body: via overriding the string resource named
{@code gc_file_import_section_3_body}
- Section 3 illustration image: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code gc_file_import_section_3_illustration.png}
Important: All overriden styles must have their respective {@code Root.}
prefixed style as their parent. Ex.: the parent of {@code GiniCaptureTheme.Onboarding.Message.TextStyle}
must be {@code Root.GiniCaptureTheme.Onboarding.Message.TextStyle}
.
Customizing the Action Bar
Customizing the Action Bar is done via overriding of app resources and each one - except the title string resource - is global to all Activities ( CameraActivity , , HelpActivity , ReviewActivity , AnalysisActivity ).
The following items are customizable:
- Background color: via the color resource named
{@code gc_action_bar}
(highly recommended for Android 5+: customize the status bar color via {@code gc_status_bar}
) - Title: via the string resource name
{@code gc_title_file_import}
- Title color: via the color resource named
{@code gc_action_bar_title}
- Back button: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code gc_action_bar_back}