public class NoResultsActivity extends AppCompatActivity implements NoResultsFragmentListener
When you use the Screen API, the NoResultsFragmentCompat
displays hints that show how to
best take a picture of a document.
Customizing the look of the No Results Screen is done via overriding of app resources.
The following items are customizable:
gv_alert_icon.png
gv_noresults_header
GiniVisionTheme
.NoResults.Header.TextStyle
and setting an item named gvCustomFont
with the path to the font file in your assets
folder
GiniVisionTheme.NoResults.Header.TextStyle
and setting an item named android:textStyle
to normal
, bold
or italic
GiniVisionTheme.NoResults.Header.TextStyle
and setting an item named android:textSize
to the desired sp
size
gv_noresults_headline
GiniVisionTheme.NoResults.Headline.TextStyle
and setting an item named gvCustomFont
with the path to the font file in your assets
folder
GiniVisionTheme.NoResults.Headline.TextStyle
and setting an item named android:textStyle
to normal
, bold
or italic
GiniVisionTheme.NoResults.Headline.TextStyle
and setting an item named android:textSize
to the desired sp
size
gv_noresults_tip
GiniVisionTheme.NoResults.Tip.TextStyle
and setting an item named gvCustomFont
with the path to the font file in your assets
folder
GiniVisionTheme.NoResults.Tip.TextStyle
and setting an item named android:textStyle
to normal
, bold
or italic
GiniVisionTheme.NoResults.Tip.TextStyle
and setting an item named android:textSize
to the desired sp
size
gv_photo_tip_lighting.png
gv_photo_tip_flat.png
gv_photo_tip_parallel.png
gv_photo_tip_align.png
gv_noresults_button
gv_noresults_button_text
gv_noresults_background
.
Important: All overriden styles must have their respective Root.
prefixed style as their parent. Ex.: the parent of GiniVisionTheme.Onboarding.Message.TextStyle
must be Root.GiniVisionTheme.Onboarding.Message.TextStyle
.
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
, NoResultsActivity
, ReviewActivity
, AnalysisActivity
).
The following items are customizable:
gv_action_bar
(highly recommended
for Android 5+: customize the status bar color via gv_status_bar
)
Constructor and Description |
---|
NoResultsActivity() |
Modifier and Type | Method and Description |
---|---|
void |
onBackToCameraPressed()
Called when the button on the bottom of the No Results Screen was pressed.
|
boolean |
onOptionsItemSelected(MenuItem item) |
public void onBackToCameraPressed()
NoResultsFragmentListener
Called when the button on the bottom of the No Results Screen was pressed. This button should lead the user back to the Camera Screen.
onBackToCameraPressed
in interface NoResultsFragmentListener
public boolean onOptionsItemSelected(MenuItem item)