Android Open Source - FlipView Main Activity






From Project

Back to project page FlipView.

License

The source code is released under:

Apache License

If you think the Android project FlipView 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 pl.polak.flipview.demo;
/* w ww  . j a va 2 s  .  c o m*/
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.Toast;

import com.github.polok.flipview.FlipView;

public class MainActivity extends ActionBarActivity {

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

        setContentView(R.layout.activity_main);

        ((FlipView)findViewById(R.id.flip_listener_view_demo)).setFlipViewChangeListener(new FlipView.FlipViewChangeListener() {
            @Override
            public void onFlipViewClick(FlipView flipView, boolean isChecked) {
                Toast.makeText(MainActivity.this, "Clicked - " + isChecked, Toast.LENGTH_SHORT).show();
            }
        });
    }
}




Java Source Code List

com.github.polok.flipview.FlipView.java
pl.polak.flipview.ApplicationTest.java
pl.polak.flipview.demo.MainActivity.java
pl.polak.myapplication.ApplicationTest.java