includ_live_button.xml 2.25 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/live_btn_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_vertical"
    >

    <ImageButton
        android:id="@+id/live_show_edit"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="13dip"
        android:background="@drawable/uplive_message" />

    <ImageButton
        android:id="@+id/live_hongbao"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_marginRight="10dip"
        android:layout_toLeftOf="@+id/live_chat"
        android:background="@drawable/uplive_hongbao" />

    <ImageButton
        android:id="@+id/live_chat"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_marginRight="10dip"
        android:layout_toLeftOf="@+id/live_share"
        android:background="@drawable/uplive_guanzhu" />

    <ImageButton
        android:id="@+id/live_share"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_marginRight="10dip"
        android:layout_toLeftOf="@+id/btn_live_gift"
        android:background="@drawable/uplive_share" />

    <ImageButton
        android:id="@+id/btn_live_gift"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_marginRight="10dip"
        android:layout_toLeftOf="@+id/live_close"
        android:background="@drawable/uplive_gift" />

    <ImageButton
        android:id="@+id/live_close"
        android:layout_width="34dip"
        android:layout_height="34dip"
        android:layout_alignParentRight="true"
        android:layout_marginRight="13dip"
        android:background="@drawable/uplive_close" />

    <ImageView
        android:id="@+id/live_unread"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/live_chat"
        android:layout_alignTop="@+id/live_chat"
        android:src="@drawable/hall_ured" 
        android:visibility="gone"
        />

</RelativeLayout>