Multi-pane layout for tablets
2014-07-30Some articles:
- Multiple-View ViewPager Options. It’s a brilliant set of methods to display several fragments simultaneously using ViewPager. I’ve personally used first method (overriding getPageWidth() in PagerAdapter) - it works for me.
- Android ViewPager with Multiple Views. Looks like third method from previous article.
And StackOverflow discussions:
- Can ViewPager have multiple views in per page?. There are links to CommonsWare article and description of method used for some Dutch newspaper app. Looks nice but it display one full page and part of another - it’s not what I need now.
- ViewPager with different adapters for portrait and landscape. Dude wants to show A,B,C fragments in portrait mode and A,C only in landscape. Not my case but interesting.
- How to determine the screen width in terms of dp or dip at runtime in Android?. Describe how to calculate screen size in “density-independent pixels”. It’s useful for decide when which layout to use programmatically.