android - Go to page option.. find page -


I created an app that contains 100 pages and there is a change through swipe, but I add the "go to page" option I want to go so easily on a specific page.

  Expand the public class ViewPagerExampleActivity Activity {@Override Creates a Public Undertaken (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_viewpager_example); Extended viewpages mViewPager = (Extended ViewPager) findViewById (R.id.view_pager); MViewPager.setAdapter (new TouchImageAdapter ()); } The Static class Touch ImageAdapter pager adapter {Private Static Int [] extends images = {R.drawable.page3, R.drawable.page4, R.drawable.page5, R.drawable.page6, R.drawable.page7, R.drawable.page8, underscores. Page 9, Armwetting. Page 10, Armwetting. Page 11, Armor Page 12, Armor Page 13, Armor Page 14, Armwetting. Page 15, Armor.Page16, R.Drive. Page 17, Armowwet. Page 18, Armwatching. Page 19, Armwetting. Page 20, Armowwet. Page 21, Armor Page 22, Armor Page 23, Armwetting. Page 24, Underground. Page 25, Armwetting. Page 26, Armwetting. Page 27, Armowwet Page 28, Armwetting. Page 29, Armowwet. Page 30, Armowwet. Page 31, Armwrested. Page 32, pdf. P.e. 33, redrawable.page 34, armorwetting. Page 35, Armowwet. Page 36, R. Drowweight Page 36, Armwatch. Page 38, Armwetting. Page 3 9, Ardrowvate. Page 40, Armowwat. Page 41, R. DryVet. Page 42, Armwett. Page 43, Armwett. Page 44, Armowwet. Page 445, Ardraubable. Page 46, Armwetting. Page 47, Armowwet. Page 48, Armwetting. Page 49, Ardrowable. Page 50, R. Dr Ble.page51, R.drawable.page52, R.drawable.page53, R.drawable.page54, R.drawable.page55, R.drawable.page56, R.drawable.page57, R.drawable. Page58, R.drawable Page 59, Armowwet. Page 60, Armwatching. Page 61, Armwetting. Page 662, Arduvoable.Page 663, Arrayableable page 64, Ardrauble.Page 65, Ardraubable.Page 66, RAW.O.Page 67, R.drawable.page68, R.drawable.page69, R.drawable.page70, R.drawable Page71, R.drawable.page72, R.drawable.page73, R.drawable.page74}; @ Override public int getCount () {Return images; } @ Override Public View Immediate ITEM (see Group Container, Int Position) {Touch Image View IMG = New Touch Image View (Container.Gate Context ()); Img.setImageResource (images [status]); Container.Adview (IMG, Linear Layout, Layout Params, MATHPARNRA, Linear LAYOUT, LayoutParms.MATHPARNRT); Return img; } @ Override Public Zero Blasted Items (ViewGroup container, int position, object object) {container.removeView (see) object); } @ Override Public Boolean isViewFromObject (see view, object object) {return view == object; }} @ Override Public Records on Resum () {Super. Rebirth (); } @ Override Protected Zero at Pause () {Super. } Long press; Override public null at @Backpressed () {// TODO auto-generated method stub super. On backpress (); If (intermediate.edloaded) interstitial.show (); }}    

switch to ViewPager on a particular page For, you need to call.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -