java.lang.Object | ||
↳ | com.neomades.ui.View | |
↳ | com.neomades.ui.Gallery |
A view that shows items in a center-locked, horizontally scrolling list.
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gallery()
Creates a new view gallery.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
notifyDataChanged()
Notifies the gallery that data has changed and the gallery should update the
UI.
| ||||||||||
void |
setAdapter(ListAdapter adapter)
Set a ListAdapter that will supply views for this pager as needed.
| ||||||||||
void |
setCurrentPage(int number)
Changes the current selected page.
| ||||||||||
void |
setPageAnimationDuration(int animDuration)
Sets how long the transition animation should run when a child view changes
position.
| ||||||||||
void |
setPageHeight(int pageHeight)
Sets the height of the views inside the gallery (in dp unit).
| ||||||||||
void |
setPageSpacing(int pageSpacing)
Sets the spacing between items in a Gallery.
| ||||||||||
void |
setPageWidth(int pageWidth)
Sets the width of the views inside the gallery (in dp unit).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new view gallery.
Notifies the gallery that data has changed and the gallery should update the UI.
Set a ListAdapter that will supply views for this pager as needed.
adapter | Adapter to use |
---|
Changes the current selected page. If the index of the page is outside the gallery bounds, nothing is done.
The first page is the page 0.
number | Page index |
---|
CrossThreadException | if the method is called from outside the UI-Thread |
---|
Sets how long the transition animation should run when a child view changes position.
animDuration | Duration of the animation in millisecond |
---|
Sets the height of the views inside the gallery (in dp unit).
pageHeight | Height of the view inside the gallery in dp |
---|
Sets the spacing between items in a Gallery.
pageSpacing | The spacing in dp between items in the Gallery |
---|
Sets the width of the views inside the gallery (in dp unit).
If the width of the page is smaller than the width of the gallery, views at the left and at the right of the current page will be visible too with a transparency effect.
pageWidth | Width of the view inside the gallery in dp |
---|