• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
jetereting
博客园    首页    新随笔    联系   管理    订阅  订阅

侧菜单栏的实现SlidingPaneLayout

SlidingPaneLayout分为两部分,上面的 左划出部分和没划出的时候 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<android.support.v4.widget.SlidingPaneLayout
android:id="@+id/slidepanel"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<LinearLayout
android:layout_width="110dp" android:orientation="vertical"
android:background="#ff38ff6a" android:layout_height="match_parent">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="支持我们\n(支付宝)"
android:textColor="#ffff14be"
android:onClick="menu_zhifubao"
android:textSize="15sp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="支持我们\n(微信)"
android:textColor="#ffff14be"
android:onClick="menu_weixin"
android:textSize="17sp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="一键换肤\n(▪_▪) "
android:textColor="#ffff14be"
android:onClick="menu_skin"
android:textSize="17sp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="\n\n关于我们:\n\n作者:\n Au、Double\n\nQQ:\n 1570967070\n 1317467738"/>
</LinearLayout>


<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff60feef"
android:id="@+id/layout11" >


<TextView
android:layout_width="fill_parent"
android:layout_height="53dp"
android:text="理财计算机"
android:gravity="center"
android:id="@+id/title"
android:textColor="#ff30ffbc"
android:textSize="24sp"
android:background="#ff007fff"/>

<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:divider="#11000579"
android:dividerHeight="3dp"
android:id="@+id/listview"/>
<us.eiyou.financial_management.BubbleLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />


</RelativeLayout>
</android.support.v4.widget.SlidingPaneLayout>
</LinearLayout>

 

posted @ 2015-04-12 12:43  jetereting  阅读(293)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3