├── babbage-2017.1.0-SNAPSHOT └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── app ├── src │ └── main │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── colors.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── drawable │ │ │ └── edit_text_background.xml │ │ └── layout │ │ │ ├── review_fragment.xml │ │ │ ├── form_row.xml │ │ │ ├── registration_email_activity.xml │ │ │ ├── list_activity.xml │ │ │ ├── multi_page_form_activity.xml │ │ │ ├── login_activity.xml │ │ │ ├── registration_security_question_activity.xml │ │ │ ├── registration_security_answer_activity.xml │ │ │ ├── registration_password_activity.xml │ │ │ ├── image_capture_activity.xml │ │ │ ├── one_page_form_activity.xml │ │ │ └── field_fragment.xml │ │ ├── java │ │ └── com │ │ │ └── sample │ │ │ └── appconnectsample │ │ │ ├── ReviewFragment.java │ │ │ ├── FieldPager.java │ │ │ ├── RegistrationActivity.java │ │ │ ├── RegistrationEmailActivity.java │ │ │ ├── RegistrationPasswordActivity.java │ │ │ ├── App.java │ │ │ ├── RegistrationSecurityQuestionActivity.java │ │ │ ├── LoginActivity.java │ │ │ ├── RegistrationSecurityAnswerActivity.java │ │ │ ├── ImageCaptureActivity.java │ │ │ ├── ListActivity.java │ │ │ ├── MultiPageFormActivity.java │ │ │ ├── OnePageFormActivity.java │ │ │ └── FieldFragment.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── gradlew └── README.md /babbage-2017.1.0-SNAPSHOT/build.gradle: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdsol/appconnect-android/develop/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 18 11:52:08 BST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #063FA8 4 | #121F42 5 | #B8D323 6 | #FFF 7 | #EAEAEA 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/edit_text_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | doc/ 15 | 16 | # Local configuration file (sdk path, etc) 17 | local.properties 18 | 19 | # Windows thumbnail db 20 | Thumbs.db 21 | 22 | # OSX files 23 | .DS_Store 24 | 25 | # Eclipse project files 26 | .classpath 27 | .project 28 | 29 | # Android Studio 30 | *.iml 31 | .idea 32 | .gradle 33 | build/ 34 | 35 | # NDK 36 | obj/ 37 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/review_fragment.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/steve/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/form_row.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/sample/appconnectsample/ReviewFragment.java: -------------------------------------------------------------------------------- 1 | package com.sample.appconnectsample; 2 | 3 | import android.os.Bundle; 4 | import android.support.v4.app.Fragment; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | 9 | /** 10 | * A fragment used by {@link MultiPageFormActivity} to show the user that the 11 | * form is all filled out. For this sample we don't do anything but you could 12 | * have, for example, a summary of the user's answers that they can review. 13 | */ 14 | public class ReviewFragment extends Fragment { 15 | 16 | @Override 17 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 18 | return inflater.inflate(R.layout.review_fragment, container, false); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/sample/appconnectsample/FieldPager.java: -------------------------------------------------------------------------------- 1 | package com.sample.appconnectsample; 2 | 3 | import android.content.Context; 4 | import android.support.v4.view.ViewPager; 5 | import android.util.AttributeSet; 6 | import android.view.MotionEvent; 7 | 8 | /** 9 | * A simple subclass of ViewPager that disables the ability for the user to 10 | * swipe between pages using touch. Used by {@link MultiPageFormActivity}. 11 | */ 12 | public class FieldPager extends ViewPager { 13 | 14 | public FieldPager(Context context, AttributeSet attributes) { 15 | super(context, attributes); 16 | } 17 | 18 | @Override 19 | public boolean onInterceptTouchEvent(MotionEvent ev) { 20 | return false; 21 | } 22 | 23 | @Override 24 | public boolean onTouchEvent(MotionEvent ev) { 25 | return false; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/layout/registration_email_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 17 | 18 | 27 | 28 |