简体   繁体   English

我可以在Android 2.1中安装顶部滑动抽屉吗?

[英]Can I have top sliding drawer in Android 2.1?

I simply want a sliding drawer from top in android which is applicable on Android 2.1. 我只是想要一个适用于Android 2.1的android顶部的滑动抽屉。 You can see an example of my need at this fiddle . 您可以在这个小提琴中看到我需要的示例。
Is this possible using View Animations ? 使用View Animations可以做到吗?

Note: The android misc widgets are useless to me, since they are far from usable in this case! 注意: android misc小部件对我来说是无用的,因为在这种情况下它们远不能使用!

Why don't you just use a sliding drawer? 您为什么不只使用滑动抽屉?

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

<SlidingDrawer
     android:id="@+id/drawer"
     android:layout_width="match_parent"
     android:layout_height="match_parent"

     android:handle="@+id/handle"
     android:content="@+id/content">

     <ImageView
         android:id="@id/handle"
         android:layout_width="88dip"
         android:layout_height="44dip" />

     <GridView
         android:id="@id/content"
         android:layout_width="match_parent"
         android:layout_height="match_parent" />

 </SlidingDrawer>

Sliding Drawer Google Search 滑动抽屉Google搜索

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM