码迷,mamicode.com
首页 > 其他好文 > 详细

侧菜单栏的实现SlidingPaneLayout

时间:2015-04-12 13:15:20      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:

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>

 

侧菜单栏的实现SlidingPaneLayout

标签:

原文地址:http://www.cnblogs.com/jetereting/p/4419329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!