<?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="@dimen/ts_order_number_height" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:id="@+id/txt_order_number" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:text="Mon000" android:textColor="@color/white" android:textSize="@dimen/ts_order_number" /> <RelativeLayout android:layout_width="@dimen/menu_progress_width" android:layout_height="@dimen/menu_progress_height" android:layout_centerVertical="true" android:layout_marginStart="@dimen/menu_progress_start" android:layout_toRightOf="@id/txt_order_number" android:layout_weight="1"> <ImageView android:id="@+id/bg_progress" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginBottom="1px" android:background="@mipmap/pro_progress" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/img_tmp" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="50" /> <ImageView android:id="@+id/img_mask" android:layout_width="0dp" android:layout_height="match_parent" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_weight="50" android:background="@mipmap/pro_mask" /> </LinearLayout> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@mipmap/pro_bg" /> </RelativeLayout> <TextView android:id="@+id/txt_progress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:text="50%" android:textColor="@color/white" android:textSize="@dimen/ts_order_number" /> </RelativeLayout>