I'm trying to make a app where its basically a book. Inside this app it has books, which has chapters, which has verses. I'm trying to decide which is the best way to implement this. I'm using fragments and swipe views,and when i swipe to the to the next page the it will change chapters. My question is since this app is going to have about a hundred books, more chapters, and many more versus, I don't think making new Fragments for each chapter would be good for the app performance. Is there a certain method or layout which suits my app best?
You want curl animation like this:
https://www.youtube.com/watch?v=mP_AlvJqSLQ
to achive this animation use overridePendingTransition:
startActivity(new Intent(this, NewActivity.class));
overridePendingTransition(R.anim.push_left_in,R.anim.push_up_out);
push_left_in.xml:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="300"/>
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="300" />
</set>
push_up_out.xml :
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%p" android:fromYDelta="100%p" android:toXDelta="0" android:toXDelta="0" android:duration="300"/>
</set>
If you want tutorial or sample, Please follow below link: