{"id":960,"date":"2012-01-06T01:48:23","date_gmt":"2012-01-06T08:48:23","guid":{"rendered":"http:\/\/wiebe-elsinga.com\/blog\/?p=960"},"modified":"2012-01-06T01:54:58","modified_gmt":"2012-01-06T08:54:58","slug":"implementing-the-viewpager","status":"publish","type":"post","link":"http:\/\/wiebe-elsinga.com\/blog\/implementing-the-viewpager\/","title":{"rendered":"Implementing the ViewPager"},"content":{"rendered":"<div class=\"wpsso-pinterest-pin-it-image\" style=\"display:none !important;\">\n<\/div><!-- .wpsso-pinterest-pin-it-image -->\n\n<p>Looking for improved Android UI experience, I came across the <a title=\"ViewPager\" href=\"http:\/\/developer.android.com\/reference\/android\/support\/v4\/view\/ViewPager.html\" target=\"_blank\">ViewPager<\/a>. Look at the native Android Market and you will see a ViewPager implementation in action.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter\" title=\"Android market\" src=\"http:\/\/4.bp.blogspot.com\/-T0ubrNZd4ro\/TlOx2EZGnXI\/AAAAAAAAAp0\/p7PQWuJc8Ns\/s1600\/MarketSwipe.png\" alt=\"\" width=\"381\" height=\"203\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Basically you can implement scrolling sets of views. It was released as part of the <a href=\"http:\/\/developer.android.com\/sdk\/compatibility-library.html\">Compatibility Package<\/a> (revision 3) and can be implemented for Android 1.6 and upwards. Add \u201c<a href=\"http:\/\/www.pushing-pixels.org\/2011\/08\/11\/android-tips-and-tricks-swipey-tabs.html\">Swipey Tabs<\/a>\u201c, as <a href=\"http:\/\/www.twitter.com\/kirillcool\">Kirill Grouchnikov<\/a> explained, to your implementation and it completes the user experience.<\/p>\n<p>Have a look at <a title=\"SwipeyTabsSample\" href=\"http:\/\/code.google.com\/p\/android-playground\/source\/browse\/#svn%2Ftrunk%2FSwipeyTabsSample\" target=\"_blank\">this<\/a> example (made by <a href=\"http:\/\/www.twitter.com\/peterkuterna\">Peter Kuterna<\/a>) of an implementation of Swipey Tabs on top of a ViewPager<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking for improved Android UI experience, I came across the ViewPager. Look at the native Android Market and you will see a ViewPager implementation in action. &nbsp; Basically you can implement scrolling sets of views. It was released as part of the Compatibility Package (revision 3) and can be implemented for Android 1.6 and upwards. Add \u201cSwipey Tabs\u201c, as Kirill Grouchnikov explained, to your implementation and it completes the user experience. Have a look at this example (made by Peter Kuterna) of an implementation of Swipey Tabs on top of a ViewPager<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[154,106],"_links":{"self":[{"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/posts\/960"}],"collection":[{"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/comments?post=960"}],"version-history":[{"count":0,"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/posts\/960\/revisions"}],"wp:attachment":[{"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/media?parent=960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/categories?post=960"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wiebe-elsinga.com\/blog\/wp-json\/wp\/v2\/tags?post=960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}