├── app ├── .gitignore ├── src │ ├── main │ │ ├── assets │ │ │ └── fonts │ │ │ │ ├── kreditback.ttf │ │ │ │ ├── ocramedium.ttf │ │ │ │ └── kreditfront.ttf │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_amex.png │ │ │ │ ├── ic_chip.png │ │ │ │ ├── ic_visa.png │ │ │ │ ├── ic_card_bg.png │ │ │ │ ├── ic_card_back.png │ │ │ │ ├── ic_discover.png │ │ │ │ └── ic_mastercard.png │ │ │ ├── drawable-ldpi │ │ │ │ ├── ic_chip.png │ │ │ │ ├── ic_card_bg.png │ │ │ │ └── ic_card_back.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_amex.png │ │ │ │ ├── ic_chip.png │ │ │ │ ├── ic_visa.png │ │ │ │ ├── ic_card_bg.png │ │ │ │ ├── ic_card_back.png │ │ │ │ ├── ic_discover.png │ │ │ │ └── ic_mastercard.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_amex.png │ │ │ │ ├── ic_chip.png │ │ │ │ ├── ic_visa.png │ │ │ │ ├── ic_card_bg.png │ │ │ │ ├── ic_discover.png │ │ │ │ ├── ic_card_back.png │ │ │ │ └── ic_mastercard.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_chip.png │ │ │ │ └── ic_card_bg.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── integers.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── layout │ │ │ │ ├── activity_check_out.xml │ │ │ │ ├── fragment_ccnumber.xml │ │ │ │ ├── fragment_ccvalidity.xml │ │ │ │ ├── fragment_ccsecure_code.xml │ │ │ │ ├── fragment_ccname.xml │ │ │ │ ├── fragment_card_back.xml │ │ │ │ └── fragment_card_front.xml │ │ │ └── animator │ │ │ │ ├── card_flip_left_out.xml │ │ │ │ ├── card_flip_right_out.xml │ │ │ │ ├── card_flip_left_in.xml │ │ │ │ └── card_flip_right_in.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── droidmentor │ │ │ └── checkoutflow │ │ │ ├── Utils │ │ │ ├── FontTypeChange.java │ │ │ ├── ViewPagerAdapter.java │ │ │ ├── CreditCardEditText.java │ │ │ ├── CreditCardExpiryTextWatcher.java │ │ │ ├── CreditCardFormattingTextWatcher.java │ │ │ └── CreditCardUtils.java │ │ │ ├── CardBackFragment.java │ │ │ ├── CCFragment │ │ │ ├── CCValidityFragment.java │ │ │ ├── CCNumberFragment.java │ │ │ ├── CCNameFragment.java │ │ │ └── CCSecureCodeFragment.java │ │ │ ├── CardFrontFragment.java │ │ │ └── CheckOutActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── droidmentor │ │ │ └── checkoutflow │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── droidmentor │ │ └── checkoutflow │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── inspectionProfiles │ ├── profiles_settings.xml │ └── Project_Default.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/assets/fonts/kreditback.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/assets/fonts/kreditback.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/ocramedium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/assets/fonts/ocramedium.ttf -------------------------------------------------------------------------------- /app/src/main/assets/fonts/kreditfront.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/assets/fonts/kreditfront.ttf -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_amex.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_chip.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_visa.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-ldpi/ic_chip.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_amex.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_chip.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_visa.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_card_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-ldpi/ic_card_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_card_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_amex.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_chip.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_visa.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_chip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xxhdpi/ic_chip.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_card_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_card_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_discover.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-ldpi/ic_card_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-ldpi/ic_card_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_card_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_card_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_discover.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_card_bg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_discover.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xxhdpi/ic_card_bg.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-hdpi/ic_mastercard.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-mdpi/ic_mastercard.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_card_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_card_back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/drawable-xhdpi/ic_mastercard.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jaisonfdo/CheckOutFlow/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri May 26 15:35:01 IST 2017 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-3.3-all.zip 7 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/test/java/com/droidmentor/checkoutflow/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.droidmentor.checkoutflow; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #F3F3F3 7 | 8 | #FFFFFF 9 | #D4D9DC 10 | #383838 11 | #FFFFFF 12 | #32C25E 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /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 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CheckOutFlow 3 | 4 | NFN CARD 5 | XXXX XXXX XXXX XXXX 6 | VALID UPTO 7 | MM/YY 8 | CARD HOLDER 9 | 10 | 11 | Hello blank fragment 12 | Card Holder\'s Name 13 | Card Number 14 | Expires 15 | CVV/CVC Number 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/integers.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 400 19 | 200 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/droidmentor/checkoutflow/Utils/FontTypeChange.java: -------------------------------------------------------------------------------- 1 | package com.droidmentor.checkoutflow.Utils; 2 | 3 | import android.content.Context; 4 | import android.graphics.Typeface; 5 | 6 | public class FontTypeChange { 7 | 8 | private Context c; 9 | 10 | public FontTypeChange(Context s) { 11 | // TODO Auto-generated constructor stub 12 | this.c=s; 13 | } 14 | 15 | public Typeface get_fontface(int n) 16 | { 17 | Typeface tf; 18 | if(n==1) 19 | tf=Typeface.createFromAsset(c.getAssets(), "fonts/kreditback.ttf"); 20 | else if(n==2) 21 | tf=Typeface.createFromAsset(c.getAssets(), "fonts/kreditfront.ttf"); 22 | else if(n==3) 23 | tf=Typeface.createFromAsset(c.getAssets(), "fonts/ocramedium.ttf"); 24 | else 25 | tf=Typeface.createFromAsset(c.getAssets(), "fonts/kreditfront.ttf"); 26 | return tf; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/droidmentor/checkoutflow/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.droidmentor.checkoutflow; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.droidmentor.checkoutflow", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/droidmentor/checkoutflow/Utils/ViewPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.droidmentor.checkoutflow.Utils; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | /** 11 | * Created by Jaison on 23/10/16. 12 | */ 13 | 14 | 15 | public class ViewPagerAdapter extends FragmentPagerAdapter { 16 | private final List mFragmentList = new ArrayList<>(); 17 | 18 | public ViewPagerAdapter(FragmentManager manager) { 19 | super(manager); 20 | } 21 | @Override 22 | public Fragment getItem(int position) { 23 | return mFragmentList.get(position); 24 | } 25 | 26 | @Override 27 | public int getCount() { 28 | return mFragmentList.size(); 29 | } 30 | 31 | public void addFragment(Fragment fragment) { 32 | mFragmentList.add(fragment); 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /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/Jaison/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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | 27 | # Validator 28 | 29 | -dontwarn org.apache.commons.** 30 | -dontwarn java.beans.** 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_check_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 |