Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//manifest.xml
...
<activity
android:name="com.jumio.nv.NetverifyActivity"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|uiMode|layoutDirection"
android:hardwareAccelerated="true"
android:theme="@style/CustomNetverifyTheme"
android:windowSoftInputMode="adjustResize" />
...
//styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- BEGIN Jumio SDK styles -->
<!-- color variables -->
<color name="CustomAndroidBackground">@color/polar</color>
<!-- base application theme -->
<style name="CustomNetverifyTheme" parent="Theme.Netverify">
<!-- global colors -->
<item name="colorPrimary">@color/matcha</item>
<item name="colorPrimaryDark">@color/iguana</item>
<item name="colorControlNormal">@color/orca</item>
<item name="colorOnSurface">#000000</item>
<item name="jumio_toolbarStyle">@style/Jumio.Actionbar.Title</item>
<item name="jumio_toolbarSubStyle">@style/Jumio.Actionbar.Subtitle</item>
<item name="jumio_dialogNegativeButtonTextColor">#BDBDBD</item>
<item name="jumio_dialogPositiveButtonTextColor">@color/polar</item>
<item name="jumio_shutterbutton_pressed">@color/polar</item>
<item name="jumio_shutterbutton_default">#000000</item>
<item name="jumio_shutterbutton_background">@color/polar</item>
<item name="android:windowBackground">@color/CustomAndroidBackground</item>
<item name="editTextColor">@color/orca</item>
<item name="android:editTextColor">@color/orca</item>
<!-- loading sdk specific colors -->
<item name="netverify_scanOptionsLoadingProgress">@color/polar</item>
<!-- Replace the HEX color value above to change the loading progress color (SDK start)-->
<!-- select document specific colors -->
<item name="netverify_scanOptionsLoadingBackground">@color/polar</item>
<item name="netverify_scanOptionsItemBackground">@color/polar</item>
<item name="netverify_scanOptionsItemForeground">@color/orca</item>
<item name="netverify_scanOptionsItemHeaderBackground">@color/polar</item>
<!-- country selection specific colors -->
<item name="netverify_countryListCountryName">@color/orca</item>
<item name="netverify_countryListSeperator">@color/dolphin</item>
<!-- scan instructions colors -->
<item name="netverify_helpBackground">@color/polar</item><!--100%-->
<item name="netverify_helpTitle">@color/orca</item>
<item name="netverify_helpImage">@color/orca</item>
<item name="netverify_helpSeperator">#33FFFFFF</item>
<item name="netverify_helpInstructions">@color/orca</item>
<item name="netverify_helpFallback">@color/matcha</item>
<item name="netverify_helpFallbackText">@color/orca</item>
<!-- scan instructions NFC Passport specific colors -->
<item name="netverify_nfc_passport_cover">@color/jumio_white</item>
<item name="netverify_nfc_passport_foreground">@color/jumio_black</item>
<item name="netverify_nfc_passport_page_dark">@color/jumio_grey450</item>
<item name="netverify_nfc_passport_page_light">@color/jumio_grey300</item>
<item name="netverify_nfc_phone_background">@color/jumio_grey200</item>
<!-- scan document (scan screen) specific colors -->
<item name="netverify_scanOverlay">#B3FFFFFF</item>
<item name="netverify_scanOverlayFill">#66FFFFFF</item>
<item name="netverify_scanBackground">#40171c20</item><!--25%-->
<!-- 3d liveness specific colors -->
<item name="face_scanOverlayFeedbackText">@color/polar</item>
<item name="face_scanOverlayBackground">@color/polar</item><!--100%-->
<item name="face_scanOverlayFeedbackBackground">@color/orca</item>
<item name="face_scanOverlayOval">@color/orca</item>
<item name="face_scanOverlayProgress">@color/matcha</item>
<item name="face_helpBackground">@color/polar</item><!--100%-->
<item name="face_helpProgressString">#80171c20</item>
<item name="face_helpImage">@color/orca</item>
<item name="face_helpTitle">@color/orca</item>
<item name="face_helpSeperator">#33FFFFFF</item>
<item name="face_helpInstructions">@color/orca</item>
<item name="face_helpFallback">@color/matcha</item>
<item name="face_helpFallbackText">@color/orca</item>
<item name="face_helpButtonTheme">@style/Netverify.Helpview.Button</item>
<!-- verification specific colors -->
<item name="netverify_confirmationBackground">@color/polar</item>
<item name="netverify_confirmationHintStyle">@style/Custom.Netverify.Confirmation.Hint
</item>
<item name="netverify_confirmationPositiveStyle">
@style/Custom.Netverify.Confirmation.MaterialButton
</item>
<item name="netverify_confirmationNegativeStyle">
@style/Custom.Netverify.Confirmation.MaterialButton.Outlined
</item>
<item name="netverify_confirmationIcon">@color/orca</item>
<!-- submission error (error screen) specific colors -->
<item name="netverify_submissionErrorStatusBar">#CCCCCC</item>
<item name="netverify_submissionErrorBackground">@color/polar</item>
<item name="netverify_submissionErrorTitle">@color/orca</item>
<item name="netverify_submissionErrorDescription">@color/orca</item>
<item name="netverify_submissionErrorSeperator">@color/dolphin</item>
<item name="netverify_submissionErrorImage">@color/orca</item>
<item name="netverify_submissionErrorButtonBackground">@color/matcha</item>
<item name="netverify_submissionErrorButtonText">@color/orca</item>
<!-- submission success (success screen) specific colors -->
<item name="netverify_submissionProgressSuccessTitle">@color/orca</item>
<item name="netverify_submissionProgressSuccessDescription">@color/orca</item>
<item name="netverify_submissionProgressSuccessSeperator">@color/dolphin</item>
<item name="netverify_submissionProgressSuccessImage">@color/orca</item>
<item name="netverify_submissionProgressSuccessBackground">@color/polar</item>
</style>
<!-- actionbar title color -->
<style name="Jumio.Actionbar.Title" parent="Base.ThemeOverlay.Jumio">
<item name="android:textColorPrimary">@color/orca</item>
</style>
<style name="Jumio.Actionbar.Subtitle" parent="@android:style/TextAppearance">
<item name="android:textColor">@color/orca</item>
</style>
<!-- positive button theme (verification screen) -->
<style name="Custom.Netverify.Confirmation.MaterialButton" parent="Netverify.Confirmation.MaterialButton">
<item name="android:textColor">@color/orca</item>
<item name="backgroundTint">@color/matcha</item>
</style>
<!-- negative button theme (verification screen) -->
<style name="Custom.Netverify.Confirmation.MaterialButton.Outlined" parent="@style/Netverify.Confirmation.MaterialButton.Outlined">
<item name="android:textColor">@color/orca</item>
</style>
<!-- Verification info theme (verification screen) -->
<style name="Custom.Netverify.Confirmation.Hint" parent="Netverify.Confirmation.Hint">
<item name="android:theme">@style/ThemeOverlay.AppCompat.Dark</item>
<item name="android:background">@color/polar</item>
<item name="android:textColor">@color/orca</item>
</style>
<!-- authentication theme -->
<style name="CustomAuthenticationTheme" parent="Theme.Authentication">
<item name="colorPrimary">@color/matcha</item>
<item name="colorPrimaryDark">@color/iguana</item>
<item name="face_helpBackground">@color/polar</item><!--100%-->
<item name="face_helpProgressString">#80171c20</item>
<item name="face_helpImage">@color/orca</item>
<item name="face_helpTitle">@color/orca</item>
<item name="face_helpSeperator">#33FFFFFF</item>
<item name="face_helpInstructions">@color/orca</item>
<item name="face_helpFallback">@color/matcha</item>
<item name="face_helpFallbackText">@color/orca</item>
<item name="face_helpButtonTheme">@style/Authentication.Helpview.Button</item>
<item name="jumio_dialogNegativeButtonTextColor">#BDBDBD</item>
<item name="jumio_dialogPositiveButtonTextColor">@color/polar</item>
<item name="face_scanOverlayFeedbackText">@color/polar</item>
<item name="face_scanOverlayBackground">@color/polar</item><!--100%-->
<item name="face_scanOverlayFeedbackBackground">@color/orca</item>
<item name="face_scanOverlayOval">@color/orca</item>
<item name="face_scanOverlayProgress">@color/matcha</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment