1.04 de.amberhome.viewpager.AHViewPagerTabs AHViewPagerTabs de.amberhome.viewpager.internal.ViewPagerTabs activity SetTabPadding void Left int Top int Right int Bottom int IsInitialized boolean Initialize Initializes the object. Pager - A fully initialized AHViewPager object. void ba anywheresoftware.b4a.BA Pager de.amberhome.viewpager.AHViewPager RefreshTitles Refresh the titles of the tabs. Use this after changing a title in AHPageContainer. void BringToFront void SetLayout void arg0 int arg1 int arg2 int arg3 int SendToBack void SetVisibleAnimated void arg0 int arg1 boolean NotifyDataChange Rebuilds the complete tabs data structure. You MUST call this after you add or remove a page from the AHViewPager. void RemoveView void Invalidate3 void arg0 int arg1 int arg2 int arg3 int Invalidate2 void arg0 android.graphics.Rect SetColorAnimated void arg0 int arg1 int arg2 int SetBackgroundImage void arg0 android.graphics.Bitmap Invalidate void SetLayoutAnimated void arg0 int arg1 int arg2 int arg3 int arg4 int RequestFocus boolean Left int arg0 int Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Position int Gets the current position in the tabs. BackgroundColorPressed int color int Color arg0 int TabPaddingRight int padding int LineHeight int height int TextSize float size float Enabled boolean arg0 boolean OutsideOffset int offset int TextColorCenter int color int TabPaddingBottom int padding int TabPaddingTop int padding int LineColorCenter int color int Top int arg0 int UpperCaseTitle Flag boolean Visible boolean arg0 boolean Height int arg0 int TextColor int color int Tag java.lang.Object arg0 java.lang.Object Width int arg0 int TabPaddingLeft int padding int de.amberhome.viewpager.AHViewPagerSupportTitles AHViewPagerSupportTitles android.support.v4.view.PagerTitleStrip activity IsInitialized boolean Initialize Initializes the object. Pager - A fully initialized AHViewPager object. Top - Flag if the indicator should be displayed on top or bottom of the ViewPager Height - The height of the indicator view. void ba anywheresoftware.b4a.BA Pager de.amberhome.viewpager.AHViewPager Top boolean Height int BringToFront void SetLayout void arg0 int arg1 int arg2 int arg3 int SendToBack void SetVisibleAnimated void arg0 int arg1 boolean RemoveView void Invalidate3 void arg0 int arg1 int arg2 int arg3 int Invalidate2 void arg0 android.graphics.Rect SetColorAnimated void arg0 int arg1 int arg2 int SetBackgroundImage void arg0 android.graphics.Bitmap Invalidate void SetLayoutAnimated void arg0 int arg1 int arg2 int arg3 int arg4 int RequestFocus boolean Left int arg0 int Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Color arg0 int TextSize Size float Sets the text size Enabled boolean arg0 boolean Top int arg0 int Visible boolean arg0 boolean Height int arg0 int TextColor Color int Sets the text color Tag java.lang.Object arg0 java.lang.Object Width int arg0 int de.amberhome.viewpager.AHViewPagerSupportTabs AHViewPagerSupportTabs android.support.v4.view.PagerTabStrip activity IsInitialized boolean Initialize Initializes the object. Pager - A fully initialized AHViewPager object. Top - Flag if the indicator should be displayed on top or bottom of the ViewPager Height - The height of the indicator view. void ba anywheresoftware.b4a.BA Pager de.amberhome.viewpager.AHViewPager Top boolean Height int BringToFront void SetLayout void arg0 int arg1 int arg2 int arg3 int SendToBack void SetVisibleAnimated void arg0 int arg1 boolean RemoveView void Invalidate3 void arg0 int arg1 int arg2 int arg3 int Invalidate2 void arg0 android.graphics.Rect SetColorAnimated void arg0 int arg1 int arg2 int SetBackgroundImage void arg0 android.graphics.Bitmap Invalidate void SetLayoutAnimated void arg0 int arg1 int arg2 int arg3 int arg4 int RequestFocus boolean Left int arg0 int Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Color arg0 int TextSize Size float Sets the text size Enabled boolean arg0 boolean TabIndicatorColor int Color int Sets or gets the tab indicator color Top int arg0 int Visible boolean arg0 boolean Height int arg0 int TextColor Color int Sets the text color Tag java.lang.Object arg0 java.lang.Object Width int arg0 int DrawFullUnderline boolean Full boolean Sets or gets the flag if the text is undelined completely de.amberhome.viewpager.AHViewPager AHViewPager de.amberhome.viewpager.internal.CustomViewPager activity PageChanged (Position As Int) PageScrollStateChanged (State as Int) PageScrolled (Position As Int, PositionOffset as Float, PositionOffsetPixels as Int) PageCreated (Position As Int, Page as Object) PageDestroyed (Position As Int, Page as Object) DesignerCreateView This method is only for the B4A Designer. Don't call it directly void base anywheresoftware.b4a.objects.PanelWrapper label anywheresoftware.b4a.objects.LabelWrapper props anywheresoftware.b4a.objects.collections.Map GotoPage Jump or Scroll to the new page Page - The new page to display Smooth - True to smoothly scroll to the new item, false to transition immediately void Page int Smooth boolean IsInitialized boolean Initialize Initializes the object. pages EventName - Sets the sub that will handle the event. void ba anywheresoftware.b4a.BA EventName java.lang.String SetLayout Changes the View position and size. void Left int Top int Width int Height int BringToFront void SendToBack void SetVisibleAnimated Fade the view in or out void Duration int Visible boolean RemoveView void Invalidate3 Invalidate part of the object void Left int Top int Right int Bottom int Invalidate2 Invalidate a rectangualar part of the object void Rect android.graphics.Rect SetColorAnimated Animate the color to a new value void Duration int FromColor int ToColor int SetBackgroundImage void arg0 android.graphics.Bitmap Initialize2 Initializes the object. Layout - A fully initialized AHPagerLayout object with the content of the pages EventName - Sets the sub that will handle the event. void ba anywheresoftware.b4a.BA Container de.amberhome.viewpager.AHPageContainer EventName java.lang.String Invalidate void SetLayoutAnimated Similar to SetLayout. Animates the change. Note that the animation will only be applied when running on Android 3+ devices. Duration - duration of the layout change void Duration int Left int Top int Width int Height int RequestFocus boolean PageContainer Container de.amberhome.viewpager.AHPageContainer Left int Left int Gets or sets the view's left position Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Color arg0 int Enabled boolean arg0 boolean Top int Top int Gets or sets the view's top position CurrentPage int Page int Get or Set the current page PagingEnabled boolean Enabled boolean Enables or disables the paging of the ViewPager. Visible boolean arg0 boolean Height int Height int Gets or sets the view's height Tag java.lang.Object arg0 java.lang.Object PageMargin int Margin int Set the margin between pages. Width int Width int Gets or sets the view's width OffscreenPageLimit int Limit int Set the number of pages that should be retained to either side of the current page in the view hierarchy in an idle state. Pages beyond this limit will be recreated from the adapter when needed. This is offered as an optimization. If you know in advance the number of pages you will need to support or have lazy-loading mechanisms in place on your pages, tweaking this setting can have benefits in perceived smoothness of paging animations and interaction. If you have a small number of pages (3-4) that you can keep active all at once, less time will be spent in layout for newly created view subtrees as the user pages back and forth. You should keep this limit low, especially if your pages have complex layouts. This setting defaults to 1. SCROLLSTATE_DRAGGING int SCROLLSTATE_IDLE int SCROLLSTATE_SETTLING int de.amberhome.viewpager.AHPageContainer AHPageContainer AHPagerLayout holds the layout of the pages activity DeletePage Deletes the specified page. Position - Page to be deleted void Position int GetPageObject Returns the View added as a page. Normally this is a Panel object. Position - Index of the object java.lang.Object Position int getPageWidth float arg0 int SetTitle Sets the title of the page. Title - The new title text. Position - Position of the title to change. void Title java.lang.String Position int AddPageAt Add a new page to the pager layout at the specified position. Normally you will provide a Panel here. View - The view to be added as a new page Title - The title of the new page Position - Position where the new page will be added void View android.view.View Title java.lang.String Position int Initialize Initializes the object void ba anywheresoftware.b4a.BA registerDataSetObserver void arg0 android.database.DataSetObserver GetTitle Gets the title of the page. Position - Position of the title to get. java.lang.String Position int AddPage Add a new page to the pager layout. Normally you will provide a Panel here. View - The view to be added as a new page Title - The title of the new page void View android.view.View Title java.lang.String SetContent Sets the pages and titles for the container Pages - A List or Array of Panel objects Titles - A List or Array of page titles void Pages anywheresoftware.b4a.objects.collections.List Titles anywheresoftware.b4a.objects.collections.List notifyDataSetChanged void Initialize2 void ba anywheresoftware.b4a.BA Pages anywheresoftware.b4a.objects.collections.List Titles anywheresoftware.b4a.objects.collections.List unregisterDataSetObserver void arg0 android.database.DataSetObserver Pages anywheresoftware.b4a.objects.collections.List The List or Array of the pages. IsInitialized boolean Count int Gets the number of pages in the layout. Titles anywheresoftware.b4a.objects.collections.List The List or Array of the titles. de.amberhome.viewpager.AHFixedTabs AHViewPagerFixedTabs de.amberhome.viewpager.internal.FixedTabsView activity IsInitialized boolean Initialize Initializes the object. Pager - A fully initialized AHViewPager object. void ba anywheresoftware.b4a.BA Pager de.amberhome.viewpager.AHViewPager RefreshTitles Refresh the titles of the tabs. Use this after changing a title in AHPageContainer. void BringToFront void SetLayout void arg0 int arg1 int arg2 int arg3 int SendToBack void SetVisibleAnimated void arg0 int arg1 boolean NotifyDataChange Rebuilds the complete tabs data structure. You MUST call this after you add or remove a page from the AHViewPager. void RemoveView void Invalidate3 void arg0 int arg1 int arg2 int arg3 int Invalidate2 void arg0 android.graphics.Rect SetColorAnimated void arg0 int arg1 int arg2 int SetBackgroundImage void arg0 android.graphics.Bitmap Invalidate void SetLayoutAnimated void arg0 int arg1 int arg2 int arg3 int arg4 int RequestFocus boolean LineColorSelected int color int Left int arg0 int Background android.graphics.drawable.Drawable arg0 android.graphics.drawable.Drawable Color arg0 int LineHeight int height int TextSize float size float Gets the current position in the tabs. Enabled boolean arg0 boolean LineHeightSelected int height int Top int arg0 int UpperCaseTitle Flag boolean LineColor int color int Visible boolean arg0 boolean Height int arg0 int TextColor int color int Tag java.lang.Object arg0 java.lang.Object Width int arg0 int 2.21 This library provides objects to implement a CustomViewPager. Markus Stipp android-support-v4