开发者

How can I create a GridView in android application which can slide left and right

开发者 https://www.devze.com 2023-01-29 02:41 出处:网络
In the car home application, It has 2 panels of grids (2x3) and I can slide left and right using finger flicking. And there is animation during the transition from left to right panels (and vice versa

In the car home application, It has 2 panels of grids (2x3) and I can slide left and right using finger flicking. And there is animation during the transition from left to right panels (and vice versa).

Can you please tell me what k开发者_StackOverflow中文版ind of android widget they use for that?

Thank you.


I'm not familiar with that app but is it perhaps using ViewFlipper?

http://developer.android.com/reference/android/widget/ViewFlipper.html


You can use the ImageSwitcher widget :

Refer the sample given in "API Demos" coming up itself with Android-SDK: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ImageSwitcher1.html

You can also refer this example: http://saigeethamn.blogspot.com/2010/05/image-switcher-view-android-developer.html

0

精彩评论

暂无评论...
验证码 换一张
取 消