Android ViewPager With ListView Pages

To implement multiple ListView for a Viewpager take a look at this example: public class MainActivity extends Activity { /** Called when the activity is first created. */ private Context mContext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = this; setContentView(R.layout.main); ListView listview1 = new ListView(mContext); ListView listview2 = new ListView(mContext); ListView listview3

Read More

Android Get Focused View From ViewPager

To get the focused view in a Android ViewPager call the OnPageSelected(). private int focused = 0; private class MyPageChangeListener extends ViewPager.SimpleOnPageChangeListener {     @Override     public void onPageSelected(int position) {         focused = position;     } } Take a look at this interesting blogpost about ViewPager