zw_float_menu_left.xml 3.0 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:background="@drawable/zw_float_menu_shape"
    android:orientation="horizontal">

    <FrameLayout
        android:id="@+id/fl_float_bar"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:addStatesFromChildren="true"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/iv_bar"
            android:layout_width="38dp"
            android:layout_height="38dp"
            android:layout_margin="1dp"
            android:background="@drawable/zw_float" />

        <View
            android:id="@+id/round_msg"
            android:layout_width="6dp"
            android:layout_height="6dp"
            android:layout_alignRight="@+id/iv_bar"
            android:layout_gravity="right"
            android:layout_margin="2dp"
            android:background="@drawable/zw_shape_red_point"
            android:visibility="gone" />
    </FrameLayout>

    <LinearLayout
        android:id="@+id/menu"
        android:layout_width="wrap_content"
        android:layout_height="40dp"
        android:orientation="horizontal"
        android:paddingRight="10dp">

        <LinearLayout
            android:id="@+id/ll_account"
            style="@style/ZW_FloatMenu_Layout_Style">

            <ImageView
                style="@style/ZW_FloatMenu_Image_Style"
                android:background="@drawable/zw_account" />

            <TextView
                style="@style/ZW_FloatMenu_Text_Style"
                android:text="账号" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/ll_news"
            style="@style/ZW_FloatMenu_Layout_Style">

            <ImageView
                style="@style/ZW_FloatMenu_Image_Style"
                android:background="@drawable/zw_news" />

            <TextView
                style="@style/ZW_FloatMenu_Text_Style"
                android:text="公告" />
        </LinearLayout>

        <FrameLayout style="@style/ZW_FloatMenu_Layout_Style">

            <LinearLayout
                android:id="@+id/ll_custom"
                style="@style/ZW_FloatMenu_Layout_Style">

                <ImageView
                    style="@style/ZW_FloatMenu_Image_Style"
                    android:background="@drawable/zw_custom" />

                <TextView
                    style="@style/ZW_FloatMenu_Text_Style"
                    android:text="客服" />
            </LinearLayout>

            <View
                android:id="@+id/round_custom_msg"
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:layout_alignRight="@+id/iv_bar"
                android:layout_gravity="right"
                android:layout_margin="2dp"
                android:background="@drawable/zw_shape_red_point"
                android:visibility="gone" />
        </FrameLayout>
    </LinearLayout>
</LinearLayout>