Review Activity
Screen API When you use the Screen API, the {@code ReviewActivity}
displays the photographed or imported image and allows the user to review it by checking the sharpness, quality and orientation of the image. The user can correct the orientation by rotating the image.
The preferred way of adding network calls to the Gini Capture SDK is by creating a GiniCapture instance with a GiniCaptureNetworkService and a GiniCaptureNetworkApi implementation.
The {@code ReviewActivity}
is started by the CameraActivity after the user has taken a photo or imported an image of a document.
The following items are customizable:
- Rotate button icon: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code * gc_review_button_rotate.png}
- Rotate button color: via the color resources named
{@code gc_review_fab_mini}
and{@code gc_review_fab_mini_pressed}
- Next button icon: via images for mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi named
{@code * gc_review_fab_next.png}
- Next button color: via the color resources named
{@code gc_review_fab}
and{@code * gc_review_fab_pressed}
- Bottom advice text: via the string resource named
{@code gc_review_bottom_panel_text}
- Bottom text color: via the color resource named
{@code gc_review_bottom_panel_text}
- Bottom text font: via overriding the style named
{@code * GiniCaptureTheme.Review.BottomPanel.TextStyle}
and setting an item named{@code gcCustomFont}
with the path to the font file in your{@code assets}
folder - Bottom text style: via overriding the style named
{@code * GiniCaptureTheme.Review.BottomPanel.TextStyle}
and setting an item named{@code android:textStyle}
to{@code normal}
,{@code bold}
or{@code italic}
- Bottom text size: via overriding the style named
{@code * GiniCaptureTheme.Review.BottomPanel.TextStyle}
and setting an item named{@code android:textSize}
to the desired{@code sp}
size - Bottom panel background color: via the color resource named
{@code * gc_review_bottom_panel_background}
- Background color: via the color resource named
{@code gc_background}
. Note: this color resource is global to all Activities ( CameraActivity , , ReviewActivity , AnalysisActivity )
Important: All overridden styles must have their respective {@code Root.}
prefixed style as their parent. Ex.: the parent of {@code GiniCaptureTheme.Review.BottomPanel.TextStyle}
must be {@code Root.GiniCaptureTheme.Review.BottomPanel.TextStyle}
.
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 you set in your
{@code AndroidManifest.xml}
when declaring your Activity that extends ReviewActivity . The default title string resource is named{@code gc_title_review}
- 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}
Functions
Properties
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.