android - Facebook-Notification like Pullable Screen

标签 android facebook screen draggable

任何人都可以指出任何公共(public)资源,在那里我可以看到如何实现可拉动/可拖动屏幕,如 Facebook 应用程序中的通知应用程序吗?

我在 DE/AT/CH/BE/UK 的 Öffi 申请中也看到了这种模式。

感谢您的帮助!

最佳答案

实际上比您想象的要容易 - SlidingDrawer是 Android SDK 的一部分。只需定义用于抽屉 Handlebars 和抽屉内容的布局即可。来自文档:

<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>

关于android - Facebook-Notification like Pullable Screen,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4287091/

相关文章:

c# - 如何确定我的 .NET Windows Forms 程序在哪个监视器上运行?

javascript - 窗口和屏幕尺寸发生变化

android - Linux Ubuntu中Gradle解析Android Studio中的问题

facebook - 使用 Graph API 管理/Conceal Facebook 评论?

javascript - 单击 Cordova 中的应用程序图标启动器时如何恢复应用程序?

android - 我如何从 Android 应用程序与文本共享图像到 Facebook?我正在使用 Intent.ACTION_SEND 将状态或照片上传到 Facebook

html - Firefox下 float 栏中Facebook按钮的水平Shif

android - Android 上的屏幕方向和旋转有什么区别?

android - 动态替换 file_paths.xml 中的 applicationId

android - 来自 int 的资源