【问题标题】:Facebook-Notification like Pullable ScreenFacebook-Notification like Pullable Screen
【发布时间】:2011-05-16 06:49:32
【问题描述】:

谁能指出我可以看到可拉/可拖动屏幕(如 Facebook 应用程序中用于通知的屏幕)是如何实现的任何公共资源?

我在 DE/AT/CH/BE/UK 的应用程序 Öffi 中也看到了这种模式。

感谢您的帮助!

【问题讨论】:

    标签: android facebook screen draggable


    【解决方案1】:

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

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

    【讨论】:

    • 哇,没想到这么简单。非常感谢!
    猜你喜欢
    • 2012-08-01
    • 2018-08-11
    • 2022-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 2013-01-14
    • 1970-01-01
    相关资源
    最近更新 更多