Pager_Adapter

open class Pager_Adapter

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
constructor(owner: Main_Activity)
Create the page adapter

Properties

Link copied to clipboard
val One_Half: Float = 0.5f
The Menu page is smaller
Link copied to clipboard
owner of the adapter
Link copied to clipboard
val Two_Third: Float = 0.6666667f
The Menu page is smaller

Functions

Link copied to clipboard
open fun getCount(): Int
page count
Link copied to clipboard
open fun getItem(position: Int): Fragment
get fragment for page
Link copied to clipboard
open fun getPageTitle(position: Int): CharSequence
Get Title for page
Link copied to clipboard
open fun getPageWidth(position: Int): Float
Returns the proportional width of a given page as a percentage of the ViewPager's measured width from (0.f-1.
Link copied to clipboard
private open fun Landscape_View(): Boolean
true when then display in landscape View — note that tablets are never in landscape view - they go into Tablet view when in landscape.
Link copied to clipboard
open fun toString(): String