制作一个可滑动的观点,从上往下,一个类似于Android中 [英] Making a slidable view from top to down, similar to the one in Android

查看:510
本文介绍了制作一个可滑动的观点,从上往下,一个类似于Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有是有,可拉低当前视图的顶部,就像一个你可以从顶部向下所有的时间拉,在Android设备上类似的动画功能的观点的想法。

The idea I'm having is having a view that can be pulled down on top of the current view, with similar animation features like the one you can pull down from the top all the time, on Android Devices.

下面是一个例子:

我们的想法是要抓住它,并能够把它拉下来的另一种观点的顶部,然后能够与这一观点进行互动。要再次向上滑动,你应该抓住的观点再次底部(灰色区域所示),然后将其拉了起来。

The idea is to grab it and being able to pull it down on top of the other view, and then being able to interact with that view. To slide it up again, you should grab the bottom of the view (the grey area in the illustration) again, and then pull it up.

我还没有合作过之前的动画,但我发现了很多的话题,同时寻求解决我的问题,这其中包括:的向下滑动鉴于安卓 但我的即时通讯pression的是,这是为了使动画,当用户不触摸手机。

I haven't even worked with animations before but I found a lot of topics on that, while searching for solutions to my problem, including this: Slide down view in android but my impression is that, that is about making animations when the user isn't touching the phone.

什么是做到这一点的最好方法是什么? 有没有更好的方式做一些非常相似?

What is the best way to do this? Is there a better way to do something very similar?

修改

下面是让我找到解决的题目是:<一href="http://stackoverflow.com/questions/1137350/how-to-make-an-android-slidingdrawer-slide-out-from-the-left">How做一个Android SlidingDrawer从左侧滑出?

Here's the topic that made me find the solution: How to make an Android SlidingDrawer slide out from the left?

这是我使用的解决方案: SlidingDrawer顶至底

And here's the solution I used: SlidingDrawer Top-to-Bottom

推荐答案

您可以使用的 SlidingDrawer ,这是一个内置的组件到Android的,但据我所知,这只是从底部滑出 - 向上。

You could use a SlidingDrawer, this is a built in component into Android, but as far as I know it slides only from bottom - up.

如果您有一个舒适的修改你的应用程序的设计,那么这可能是一个选择。

If you a comfortable to modify your app design, then this could be an option for you.

然而,在互联网上是定制SlidingDrawer,可以让你把标记在屏幕的任何一边,这样你就可以将它从上到下,从左到右,右左..你想要的任何方式的一些库。

However, on internet are some libraries of custom SlidingDrawer that lets you put the marker on any side of your screen, so you can drag it top-down, left-right, right-left.. any way you want.

相关链接:
<一href="http://stackoverflow.com/questions/1137350/how-to-make-an-android-slidingdrawer-slide-out-from-the-left">How做一个Android SlidingDrawer从左侧滑出?
SlidingDrawer顶至底

Useful links:
How to make an Android SlidingDrawer slide out from the left?
SlidingDrawer Top-to-Bottom

这篇关于制作一个可滑动的观点,从上往下,一个类似于Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆