I made similar one that using fragments in viewpager. TabWigdet can be shown or not. That example included in android-support-v4 demo application.
Up vote 0 down vote favorite share g+ share fb share tw.
This may be obvious and a completely unneeded post but I had been having quite an issue resolving a way to allow vertical scrolling functionality on pages in a VewPager and there were very few resolutions coming across google and even here. I found some claiming to resolve the issue but they seemed to be extended and convoluted. So for those who may be searching for the same issue heres the solution.
With this (and you will want to make bigger strings than what I wrote here) you will be able to vertically scroll content and swipe between pages. Layout. Xml scrolling viewpager class public class ScrollingViewPager extends Activity{ private ViewPager pager; private Context cxt; private CharSequence pages = {"stuff", "more stuff", "other stuff"}; private PageSlider ps; @Override protected void onCreate(Bundle savedInstanceState) { super.
OnCreate(savedInstanceState); this. SetContentView(R.layout. Layout); cxt = this; ps = new PageSlider(); pager = (ViewPager) findViewById(R.id.
Conpageslider); pager. SetAdapter(ps); } public class PageSlider extends PagerAdapter{ @Override public int getCount() { return pages. Length; } @Override public Object instantiateItem(View collection, int position) { ScrollView sc = new ScrollView(cxt); sc.
SetLayoutParams(new LayoutParams(LayoutParams. WRAP_CONTENT, LayoutParams. WRAP_CONTENT)); sc.
SetFillViewport(true); TextView tv = new TextView(cxt); tv. SetLayoutParams(new LayoutParams(LayoutParams. WRAP_CONTENT, LayoutParams.
WRAP_CONTENT)); tv. SetText(pagesposition); tv. SetPadding(5,5,5,5); sc.
AddView(tv); ((ViewPager) collection). AddView(sc); return sc; } @Override public void destroyItem(View collection, int position, Object view) { ((ViewPager) collection). RemoveView((ScrollView) view); } @Override public boolean isViewFromObject(View view, Object object) { return view==((ScrollView)object); } } } I am open to critique on the code but at least here is a functioning example android android-layout android-viewpager link|improve this question edited Jan 20 at 3:20 asked Jan 20 at 3:12Sterling Walsh III516 50% accept rate.
– jellboi Mar 21 at 7:19 this one is just to allow vertical scrolling in a horizontal viewpager. Check this for a full vertical viewpager github.com/JakeWharton/Android-Direction... – Sterling Walsh III Mar 21 at 14:43.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.