Android 滑动视图?

发布于 2024-12-08 02:00:54 字数 278 浏览 0 评论 0原文

我不知道你们是否听说过 chomp 这个应用程序,但该应用程序中有一个如下图所示的布局。我想知道他们如何设置这个,我将使用什么来为我自己的应用程序制作类似的东西。有趣的是,当您滑动时,没有像水平滚动视图那样的滚动条,并且不同的东西(例如卡入到位)。只是想知道我应该使用什么来获得相同的效果谢谢您的帮助

https://g1.gstatic.com/android/市场/com.chomp.android/ss-480-1-9

I don't know if you guys have ever heard of the app chomp but there is a layout in the app which looks like the image below. I'm wondering how they set this up what would i go about using to make something similar for my own application. The interesting part is when you swipe there is no scroll bar like a horizontal scroll view would have and the different things like snap into place. Just wondering what i should use to get this same effect thank you for any help

https://g1.gstatic.com/android/market/com.chomp.android/ss-480-1-9

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

暗地喜欢 2024-12-15 02:00:54

也许是ViewPager?

http://android-developers.blogspot.com /2011/08/horizo​​ntal-view-swiping-with-viewpager.html

这将为您提供类似于在 Android Market 中的视图之间滑动的效果。我猜这就是你所描述的效果?

ViewPager, perhaps?

http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

That will give you an effect similar to swiping between views in Android Market. I'm assuming that's the effect that you're describing?

岁月静好 2024-12-15 02:00:54

SwipeView 是类似于主屏幕的 Android UI 视图。您可以通过向左和向右滑动来访问多个类似的内容窗格。当您左右滑动时,视图之间的过渡会以动画形式呈现,以便焦点视图跟随您的手指
http://droidweb.com/2011/03/implement-a- swipeview-in-android/

A SwipeView is an Android UI view similar to the homescreens. You have several similar panes of content that you access by swiping left and right. As you swipe left and right, transitions between the views are animated so that the view in focus follows your finger
http://droidweb.com/2011/03/implement-a-swipeview-in-android/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文