任何人都可以指出任何公共(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/