xfgame_back_title_bar.xml 2.6 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    android:id="@+id/xf_back_title_bar_rl"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/xfgame_layout_width"
    android:layout_height="80dp"
    android:background="@drawable/xfgame_bar_bg">

    <ImageView
        android:id="@+id/xf_back_title_bar_left"
        android:layout_width="25dp"
        android:layout_height="25dp"
        android:layout_centerVertical="true"
        android:layout_marginStart="@dimen/xfgame_space_normal"
        android:src="@drawable/xfgame_bar_back"
        android:visibility="invisible"/>

<!--    <ImageView-->
<!--        android:id="@+id/xf_back_title_bar_logo"-->
<!--        android:layout_width="@dimen/xfgame_logo_width"-->
<!--        android:layout_height="@dimen/xfgame_logo_height"-->
<!--        android:layout_gravity="center_vertical"-->
<!--        android:layout_marginStart="@dimen/xfgame_space_big"-->
<!--        android:layout_centerVertical="true"-->
<!--        android:layout_toEndOf="@id/xf_back_title_bar_left"-->
<!--        android:src="@drawable/xfgame_logo" />-->

    <LinearLayout
        android:layout_width="@dimen/xfgame_text_width"
        android:layout_height="@dimen/xfgame_text_height"
        android:layout_centerVertical="true"
        android:layout_centerHorizontal="true"
        android:layout_marginStart="@dimen/xfgame_space_small"
        android:orientation="horizontal"
        android:gravity="center">

        <TextView
            android:id="@+id/xf_back_title_bar_logo_sep_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginEnd="@dimen/xfgame_space_small"
            android:textSize="20sp"
            android:textColor="#666666"
            android:text="@string/xfgame_bar_sep"
            android:visibility="gone"/>

        <TextView
            android:id="@+id/xf_back_title_bar_logo_text_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="20sp"
            android:textColor="#000000"
            android:layout_gravity="center_vertical"/>
    </LinearLayout>

    <ImageView
        android:id="@+id/xf_back_title_bar_right"
        android:layout_width="25dp"
        android:layout_height="25dp"
        android:layout_centerVertical="true"
        android:layout_alignParentEnd="true"
        android:layout_marginEnd="@dimen/xfgame_space_normal"
        android:visibility="invisible"/>

</RelativeLayout>