Android development view pager show on widget -


i want shown view pager on widget.previously used android list @ widget want show single item on widget view change on swipe. please help

you can use adapterviewfilper - simple viewanimator animate between 2 or more views have been added it. 1 child shown @ time. if requested, can automatically flip between each child @ regular interval. - example

and can use:

starting api level 11 (android 3.0.x) can use "android.widget.remoteviewsservice.remoteviewsfactory" , and assign widget use (from docs):

listview: view shows items in vertically scrolling list. example, see gmail app widget.

gridview: view shows items in two-dimensional scrolling grid. example, see bookmarks app widget.

stackview: stacked card view (kind of rolodex), user can flick front card up/down see previous/next card, respectively. examples include youtube , books app widgets.

see http://developer.android.com/guide/topics/appwidgets/index.html section using app widgets collections.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -