`
andy_叶
  • 浏览: 67908 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Android Launcher抽屉类(SlidingDrawer)的使用

阅读更多



Main.xml代码  收藏代码
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     android:layout_width="fill_parent"  
  4.     android:layout_height="fill_parent"  
  5.     android:orientation="vertical"  
  6.     android:background="#808080">  
  7. <SlidingDrawer   
  8.     android:id="@+id/sliding_drawer"  
  9.     android:layout_width="fill_parent"  
  10.     android:layout_height="fill_parent"  
  11.     android:orientation="vertical"  
  12.     android:handle="@+id/handle"  
  13.     android:content="@+id/content"  
  14.     >  
  15.     <Button   
  16.         android:id="@+id/handle"  
  17.         android:layout_width="wrap_content"  
  18.         android:layout_height="wrap_content"  
  19.         android:background="@drawable/handle"  
  20.         />  
  21.     <LinearLayout   
  22.         android:id="@+id/content"  
  23.         android:layout_width="fill_parent"  
  24.         android:layout_height="fill_parent"  
  25.         android:background="#00ff00"  
  26.         >  
  27.         <Button  
  28.             android:id="@+id/button"  
  29.             android:layout_width="wrap_content"  
  30.             android:layout_height="wrap_content"  
  31.             android:text="Button"  
  32.             />  
  33.         <EditText   
  34.             android:id="@+id/editText"  
  35.             android:layout_width="fill_parent"  
  36.             android:layout_height="wrap_content"              
  37.             />  
  38.     </LinearLayout>  
  39. </SlidingDrawer>  
  40. </LinearLayout>  

分享到:
评论

相关推荐

    Android Launcher抽屉类SlidingDrawer的使用

    Android Launcher抽屉类SlidingDrawer的使用

    Android Launcher抽屉类SlidingDrawer的使用(源码)

    Aj_01 来自:http://blog.csdn.net/Android_Tutor/archive/2010/04/14/5486804.aspx 测试:Android Launcher抽屉类SlidingDrawer的使用!

    Android高手进阶教程

    本文档介绍ANDROID常用编程及进阶编程,比如一些常用的命令,Android Launcher抽屉类SlidingDrawer的使用等等一些高级用法。

    Android高手进阶教程.pdf

    Android高手进阶教程.pdf,本书需要读者有一定的android基础,主要内容:Android常用名令集锦;...Android Launcher抽屉类SlidingDrawer 的使用; Android 中MenuInflater的使用(布局定义菜单)····

    android 抽屉从左拉出 slidingdrawer

    界面,实现一个layout或任何控件的向右拉出,向左收回效果。slidingdrawer的变形。在eclipse可直接运行。

    Android高手进阶教程与Android基础教程

    Android高手进阶教程之----Android Launcher抽屉类SlidingDrawer的使用.doc Android高手进阶教程之----Android Location的使用!! .doc Android高手进阶教程之----Android PopupWindow的使用!!! .doc Android高手...

    androidSlidingDrawer 抽屉效果

    SlidingDrawer是自SDK 1.5才新加入的,实现Launcher的抽屉效果。SlidingDrawer配置上采用了水平展开或垂直展开两种(android:orientation)方式,在XML里必须指定其使用的android:handle与android:content,前者委托...

Global site tag (gtag.js) - Google Analytics