Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Multi-pane layouts with ViewPager

The Android Design guidelines suggest using Multi-pane layouts, but as far as actually implementing this there are no examples given. Specifically I'm referring to the dual-pane layout used in conjunction with ViewPager like in the People app shown in the guidelines.

Does anyone have some advice or examples to give on implementing this?

In the screen shot:

You can swipe with ViewPager back and forth between the About and Updates lists or you can tap on the photos to page over. You can see a small part of the Updates tab while viewing whatever you have in the About tab and visa versa. Specifically, I want to know how to create this multi-pane layout. The screen shot is from the People app in Ice Cream Sandwich.

SOLVED:

I ended up creating my own open sourced library for this widget. You can find it at this address: https://bitbucket.org/adneal/tabcarousellib/wiki/Home

enter image description here

like image 736
adneal Avatar asked Mar 22 '12 04:03

adneal


2 Answers

For View Pager first you go through this svn.I have gone through android developer site.If you want multi-pane Layout with out Fragment then it very difficult.I will suggest you to go for the Fragment and achieve your multi-pane layout.

But one i can understand your problem also as Fragment are available from Android 3.0 (API level 11).If you want to target device below this then it became necessity to use View Pager.So you have to work hard to achieve it.

Study this for creating horizontal List View

Try this first If you can Customize it ViewPager Indicator in android

like image 85
Tofeeq Ahmad Avatar answered Oct 16 '22 12:10

Tofeeq Ahmad


First of all as I got you want to implement the SplitView in android.

If yes then Use this link to get information of fragments from developer site. Use this Demo of developer site.

If not getting solution then use this Demo Example : Demo

If still its not what you want then also let me know.

I will like to help you.

like image 1
Shreyash Mahajan Avatar answered Oct 16 '22 12:10

Shreyash Mahajan