Home

Awesome

Entry Screens for android

Love to see those descriptions of swipe screens in android apps? Here is a library for you!

Usage

If you are starting from scratch

If you want to import to your existing Project

    compile project(':entryScreens')

to your gradle of existing application (:app) module.

   
    private static int REQUEST_CODE = 435;
    @Override
    protected void onActivityResult(int requestCode, int resultCode, final Intent data) {

        if (requestCode == REQUEST_CODE) {
            setContentView(R.layout.activity_main);

            if (resultCode == Activity.RESULT_OK) {
                //Write your code if result is OK
                FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
                fab.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        Snackbar.make(view, data.getStringExtra("SomeValues"), Snackbar.LENGTH_LONG)
                                .setAction("Done!", null).show();
                    }
                });
            }
            if (resultCode == Activity.RESULT_CANCELED) {
                //Write your code if there's no result
            }
            Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
            setSupportActionBar(toolbar);
        }

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent i = new Intent(MainActivity.this, com.kunall17.entryscreenmanager.Activities.MainActivity.class);
        startActivityForResult(i, REQUEST_CODE);

    }
<activity
            android:name="com.kunall17.entryscreenmanager.Activities.MainActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:label="@string/title_activity_main"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar">
            
            <action android:name="com.kunall17.entryscreenmanager.Activities.MainActivity.LAUNCH" />
</activity>

Contribute

Looks

More templates to come!

<img alt="Screenshot" src="https://raw.githubusercontent.com/kunall17/EntryScreenManager/screenshots/entryscreen.gif" width="432" height="712" border="5" /> <img alt="Screenshot" src="https://raw.githubusercontent.com/kunall17/EntryScreenManager/screenshots/login.png" width="432" height="712" border="5" />