59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:background="@android:color/white"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="@dimen/download_dialog_padding_left"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginRight="@dimen/download_dialog_padding_left"
|
|
android:layout_marginBottom="@dimen/download_dialog_padding_bottom">
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<ImageView
|
|
android:id="@+id/imgModel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:src="@drawable/astronbot"
|
|
android:scaleType="fitCenter"
|
|
android:layout_weight="1"/>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp">
|
|
<TextView
|
|
android:textSize="@dimen/txt_content_1"
|
|
android:textColor="@color/txt_304665"
|
|
android:id="@+id/tvModelDescription"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"/>
|
|
<TextView
|
|
android:textSize="@dimen/txt_content_2"
|
|
android:textColor="@color/txt_304665"
|
|
android:gravity="center"
|
|
android:id="@+id/tvProgress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="8dp"/>
|
|
</LinearLayout>
|
|
<ProgressBar
|
|
android:id="@+id/pgDownloadModel"
|
|
android:visibility="visible"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="10dp"
|
|
android:layout_marginTop="16dp"
|
|
android:max="100"
|
|
android:progress="0"
|
|
android:progressDrawable="@drawable/progressbar"
|
|
style="?android:attr/progressBarStyleHorizontal"/>
|
|
</LinearLayout>
|
|
<ViewStub
|
|
android:id="@+id/vsDownloadFailed"
|
|
android:layout="@layout/view_stup_download_failed"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
</FrameLayout>
|