UNPKG

react-native-cosser

Version:

环信客服功能

69 lines (62 loc) 2.58 kB
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/root" android:layout_width="match_parent" android:layout_height="@dimen/height_top_bar" android:background="@color/top_bar_normal_bg" android:gravity="center_vertical" > <RelativeLayout android:id="@+id/left_layout" android:layout_width="@dimen/title_back_btn_layout_width" android:layout_height="match_parent" android:background="@drawable/hd_common_tab_bg" android:clickable="true" > <ImageView android:id="@+id/left_image" android:layout_width="@dimen/title_back_btn_size" android:layout_height="@dimen/title_back_btn_size" android:layout_centerInParent="true" android:scaleType="centerInside" /> </RelativeLayout> <TextView android:visibility="gone" android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@+id/left_layout" android:layout_centerVertical="true" android:textColor="@color/main_text_color" android:textSize="@dimen/title_text_size" /> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:gravity="center" android:orientation="vertical" > <!-- TITLE --> <TextView android:text="客服" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" android:textColor="@color/main_text_color" android:textSize="20sp" /> </RelativeLayout> <RelativeLayout android:visibility="gone" android:id="@+id/right_layout" android:layout_width="@dimen/title_icon_btn_layout_width" android:layout_height="match_parent" android:layout_alignParentRight="true" android:background="@drawable/hd_common_tab_bg" > <ImageView android:id="@+id/right_image" android:layout_width="@dimen/title_customer_icon_size" android:layout_height="@dimen/title_customer_icon_size" android:layout_centerInParent="true" android:scaleType="centerInside" /> </RelativeLayout> </RelativeLayout>