203 lines
11 KiB
XML
203 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<RelativeLayout
|
|
android:id="@+id/rl_robot_content_layout"
|
|
android:background="@drawable/bg_ranking_20"
|
|
android:layout_width="@dimen/dp750"
|
|
android:layout_height="@dimen/dp580"
|
|
android:layout_centerInParent="true">
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp570"
|
|
app:cardCornerRadius="@dimen/dp20">
|
|
<RelativeLayout
|
|
android:background="@color/bg_F2F2F2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<TextView
|
|
android:textSize="@dimen/dp23"
|
|
android:textColor="@color/txt_1D2C42"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_select_title"
|
|
android:background="@color/bg_white"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp70"
|
|
android:text="@string/title_select_robot"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp23"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/bg_white"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_affirm_button"
|
|
android:background="@drawable/user_collection_bg"
|
|
android:layout_width="@dimen/dp320"
|
|
android:layout_height="@dimen/dp69"
|
|
android:layout_marginBottom="@dimen/dp20"
|
|
android:text="@string/ok"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"/>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/dp50"
|
|
android:layout_marginTop="@dimen/dp20"
|
|
android:layout_marginRight="@dimen/dp50"
|
|
android:layout_marginBottom="@dimen/dp30"
|
|
android:layout_above="@+id/tv_affirm_button"
|
|
android:layout_below="@+id/tv_select_title">
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="2">
|
|
<ImageView
|
|
android:id="@+id/im_robot_cover"
|
|
android:background="@drawable/phone_robot_cover_bg"
|
|
android:layout_width="@dimen/dp230"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"/>
|
|
<ImageView
|
|
android:id="@+id/im_robot_gif"
|
|
android:layout_width="@dimen/dp200"
|
|
android:layout_height="@dimen/dp200"
|
|
android:src="@drawable/ic_placeholder"
|
|
android:scaleType="fitXY"
|
|
android:layout_centerInParent="true"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp25"
|
|
android:textColor="@color/txt_1D2C42"
|
|
android:id="@+id/tv_robot_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp15"
|
|
android:layout_marginBottom="@dimen/dp20"
|
|
android:text=""
|
|
android:layout_alignLeft="@+id/im_robot_cover"
|
|
android:layout_alignParentBottom="true"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp13"
|
|
android:textColor="@color/bg_white"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_robot_class"
|
|
android:background="@drawable/public_activity_bg_corner"
|
|
android:paddingLeft="@dimen/dp12"
|
|
android:paddingTop="@dimen/dp3"
|
|
android:paddingRight="@dimen/dp15"
|
|
android:paddingBottom="@dimen/dp3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp20"
|
|
android:text=""
|
|
android:layout_alignLeft="@+id/im_robot_cover"/>
|
|
</RelativeLayout>
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_robot_list"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/dp20"
|
|
android:layout_weight="3"/>
|
|
</LinearLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_robot_download_layout"
|
|
android:background="@color/bg_F2F2F2"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/tv_select_title">
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp50">
|
|
<ImageView
|
|
android:background="@drawable/phone_robot_cover_crosswise_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp340"
|
|
android:layout_marginLeft="@dimen/dp90"
|
|
android:layout_marginRight="@dimen/dp90"
|
|
android:layout_centerHorizontal="true"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_robot_download_icon"
|
|
android:layout_width="@dimen/dp300"
|
|
android:layout_height="@dimen/dp300"
|
|
android:scaleType="centerCrop"/>
|
|
</FrameLayout>
|
|
<ProgressBar
|
|
android:id="@+id/pb_robot_download"
|
|
android:visibility="visible"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp15"
|
|
android:layout_marginLeft="@dimen/dp80"
|
|
android:layout_marginRight="@dimen/dp80"
|
|
android:layout_marginBottom="@dimen/dp30"
|
|
android:progressDrawable="@drawable/progressbar"
|
|
android:layout_alignParentBottom="true"
|
|
style="?android:attr/progressBarStyleHorizontal"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp22"
|
|
android:textColor="@color/txt_1D2C42"
|
|
android:id="@+id/tv_robot_des"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp80"
|
|
android:layout_marginBottom="@dimen/dp10"
|
|
android:layout_above="@+id/pb_robot_download"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp15"
|
|
android:id="@+id/tv_robot_percentage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/dp80"
|
|
android:layout_marginBottom="@dimen/dp10"
|
|
android:text="0%"
|
|
android:layout_above="@+id/pb_robot_download"
|
|
android:layout_alignParentRight="true"/>
|
|
</RelativeLayout>
|
|
<FrameLayout
|
|
android:id="@+id/fl_load_view"
|
|
android:background="@color/bg_F2F2F2"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/tv_select_title">
|
|
<RelativeLayout
|
|
android:layout_gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/im_loading_view"
|
|
android:background="@drawable/ic_loading"
|
|
android:layout_width="@dimen/dp85"
|
|
android:layout_height="@dimen/dp85"
|
|
android:layout_marginBottom="@dimen/dp25"
|
|
android:layout_centerHorizontal="true"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp20"
|
|
android:textColor="@color/txt_98A5B6"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/loading_text"
|
|
android:layout_below="@+id/im_loading_view"
|
|
android:layout_centerHorizontal="true"/>
|
|
</RelativeLayout>
|
|
</FrameLayout>
|
|
<ViewStub
|
|
android:id="@+id/vs_network_error"
|
|
android:layout="@layout/in_select_robot_network_error"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@+id/tv_select_title"
|
|
android:layout_centerInParent="true"/>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</RelativeLayout>
|
|
<ViewStub
|
|
android:id="@+id/vsDownloadFailed"
|
|
android:layout="@layout/download_error_view"
|
|
android:layout_width="@dimen/dp500"
|
|
android:layout_height="@dimen/dp340"
|
|
android:layout_centerInParent="true"/>
|
|
</RelativeLayout>
|