ViewPager

Layout that allows the user to flip left and right through pages of data.

Examples

Simplified example for a ViewPager which is also locally bound to a TabBar via ID
<TabBar width="fill_parent" boundViewPager="viewpager">
	<Tab text="Imprint" />
	<Tab text="Privacy" />
	<Tab text="Terms" />
	<Tab text="Licenses" />
</TabBar>
<ViewPager id="viewpager" width="fill_parent" height="fill_parent">
	<TextView text="#{imprintText}" />
	<TextView text="#{privacyText}" />
	<TextView text="#{termsText}" />
	<TextView text="#{licenseText}" />
</ViewPager>

Children

One or more Views and Layouts.

Attributes

Name Type Default Binding Description

Inherits all attributes from View and adds the following:

swipeEnabled

boolean

true

Enables or disables swiping by the user. If a TabBar is bound to this ViewPager, it will be switched accordingly.


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.

results matching ""

    No results matching ""