侧菜单栏的实现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>

上一篇:WCF 已知类型和泛型解析程序 KnownType


下一篇:[HDU 4082] Hou Yi's secret (简单计算几何)