Android Open Source - Android-FlipBook Main Activity






From Project

Back to project page Android-FlipBook.

License

The source code is released under:

Copyright (c) <YEAR>, Elements Interactive Holding B.V., the Netherlands All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided ...

If you think the Android project Android-FlipBook 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 nl.elements.animations;
/* w w  w .  j av  a  2s .c  o  m*/
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;


public class MainActivity extends ActionBarActivity {
    private FlipBookView flipBookView;

    private static final int IDLE_DURATION=30;

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

        flipBookView = (FlipBookView)findViewById(R.id.flipBook);
        flipBookView.setPattern("tmp_%d");
        flipBookView.setFlipDuration(IDLE_DURATION);
        flipBookView.flip();
    }



}




Java Source Code List

nl.elements.animations.FlipBookView.java
nl.elements.animations.MainActivity.java