116 lines
5.8 KiB
XML
116 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="horizontal"
|
|
android:background="@color/color_background_gray"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<RelativeLayout
|
|
android:gravity="center_horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="38">
|
|
<RelativeLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/rl_component_list_header_margin_top_left"
|
|
android:layout_marginTop="@dimen/rl_component_list_header_margin_top_left">
|
|
<ImageView
|
|
android:id="@+id/iv_back"
|
|
android:layout_width="@dimen/theme_navigation_min_size"
|
|
android:layout_height="@dimen/theme_navigation_min_size"
|
|
android:src="@mipmap/icon_round_back"
|
|
android:scaleType="centerCrop"
|
|
android:layout_alignParentLeft="true"/>
|
|
<ImageView
|
|
android:id="@+id/iv_refresh"
|
|
android:layout_width="@dimen/theme_navigation_min_size"
|
|
android:layout_height="@dimen/theme_navigation_min_size"
|
|
android:src="@mipmap/refresh"
|
|
android:scaleType="centerCrop"
|
|
android:layout_alignParentRight="true"/>
|
|
<ImageView
|
|
android:id="@+id/iv_help"
|
|
android:visibility="invisible"
|
|
android:layout_width="@dimen/theme_navigation_min_size"
|
|
android:layout_height="@dimen/theme_navigation_min_size"
|
|
android:src="@mipmap/ic_help"
|
|
android:scaleType="centerCrop"
|
|
android:layout_toLeftOf="@+id/iv_refresh"/>
|
|
</RelativeLayout>
|
|
<LinearLayout
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/ll_controller_margin_top"/>
|
|
<TextView
|
|
android:textSize="@dimen/comm_txt_15sp"
|
|
android:textColor="#ff596f80"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_model_name"
|
|
android:layout_width="@dimen/rl_component_list_title_width"
|
|
android:layout_height="wrap_content"
|
|
android:text=""
|
|
android:lines="1"/>
|
|
<RelativeLayout
|
|
android:background="@drawable/shape_component_background"
|
|
android:layout_width="@dimen/rl_component_list_controller_bg_width"
|
|
android:layout_height="@dimen/rl_component_list_controller_bg_height"
|
|
android:layout_marginTop="@dimen/rl_component_list_controller_bg_margin_top">
|
|
<ImageView
|
|
android:id="@+id/iv_battery_state"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/iv_battery_state_margin_top"
|
|
android:layout_marginRight="@dimen/iv_battery_state_margin_right"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentRight="true"/>
|
|
<ImageView
|
|
android:id="@+id/iv_controller"
|
|
android:layout_width="@dimen/rl_component_list_controller_width"
|
|
android:layout_height="@dimen/rl_component_list_controller_height"
|
|
android:src="@drawable/controller"
|
|
android:scaleType="centerCrop"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"/>
|
|
<TextView
|
|
android:textSize="@dimen/comm_txt_15sp"
|
|
android:textColor="#ff596f80"
|
|
android:id="@+id/tv_controller_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/tv_controller_name_margin_top"
|
|
android:text="Jimu"
|
|
android:layout_below="@+id/iv_controller"
|
|
android:layout_centerHorizontal="true"/>
|
|
</RelativeLayout>
|
|
<com.ubtech.view.widget.UButton
|
|
android:layout_gravity="center_horizontal"
|
|
android:id="@+id/btn_ok"
|
|
android:layout_width="@dimen/rl_component_list_btn_ok_width"
|
|
android:layout_height="@dimen/rl_component_list_btn_ok_height"
|
|
android:layout_marginTop="@dimen/rl_component_list_btn_ok_margin_top"
|
|
android:layout_marginBottom="@dimen/rl_component_list_btn_ok_margin_bottom"
|
|
android:text="@string/ok"
|
|
style="@style/btn_blue_small_style"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="62">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_components_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/rv_components_list_margin_left"
|
|
android:layout_marginTop="@dimen/rv_components_list_margin_top"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|