Android Open Source - RevealLayout Main Activity






From Project

Back to project page RevealLayout.

License

The source code is released under:

Apache License

If you think the Android project RevealLayout 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 me.yugy.github.reveallayout;
//from  w ww . ja  v a2s .c  om
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;

/**
 * Created by yugy on 14/11/21.
 */
public class MainActivity extends ListActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        String[] entries = new String[]{
                "SingleChildActivity",
                "MultiChildActivity",
                "FragmentActivity"
        };
        setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, entries));
        getListView().setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                switch (position) {
                    case 0:
                        startActivity(new Intent(MainActivity.this, SingleChildActivity.class));
                        break;
                    case 1:
                        startActivity(new Intent(MainActivity.this, MultiChildActivity.class));
                        break;
                    case 2:
                        startActivity(new Intent(MainActivity.this, FragmentSampleActivity.class));
                        break;
                }
            }
        });
    }
}




Java Source Code List

me.yugy.github.reveallayout.BakedBezierInterpolator.java
me.yugy.github.reveallayout.FragmentSampleActivity.java
me.yugy.github.reveallayout.MainActivity.java
me.yugy.github.reveallayout.MultiChildActivity.java
me.yugy.github.reveallayout.RevealLayout.java
me.yugy.github.reveallayout.SingleChildActivity.java