Android Open Source - CreditCardEditText Main Activity






From Project

Back to project page CreditCardEditText.

License

The source code is released under:

Apache License

If you think the Android project CreditCardEditText listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.alihafizji;
/*from  ww w .  j a  v a 2  s .co  m*/
import android.support.v7.app.ActionBarActivity;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .add(R.id.container, new PlaceholderFragment())
                    .commit();
        }
    }

    /**
     * A placeholder fragment containing a simple view.
     */
    public static class PlaceholderFragment extends Fragment {

        public PlaceholderFragment() {
        }

        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                Bundle savedInstanceState) {
            return inflater.inflate(R.layout.fragment_main, container, false);
        }
    }

}




Java Source Code List

com.alihafizji.MainActivity.java
com.alihafizji.library.CreditCardEditText.java
com.alihafizji.library.CreditCardPatterns.java
com.alihafizji.library.CreditCardTextWatcher.java
com.alihafizji.library.CreditCardTypeEnum.java
com.alihafizji.library.StringUtil.java