12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white">
- <TextView
- android:id="@+id/tv_progress_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:padding="20dp"
- android:textColor="@android:color/black"
- android:textSize="30sp"
- tools:text="标题" />
- <View
- android:id="@+id/centerLine"
- android:layout_width="1dp"
- android:layout_height="1dp"
- android:layout_centerInParent="true" />
- <ProgressBar
- android:id="@+id/progress"
- style="?android:progressBarStyleHorizontal"
- android:layout_width="match_parent"
- android:layout_height="20dp"
- android:layout_below="@+id/tv_progress_title"
- android:layout_margin="20dp"
- android:max="100"
- android:progress="0"
- android:progressDrawable="@android:drawable/progress_horizontal" />
- <Button
- android:id="@+id/btn_cancel"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/progress"
- android:layout_toLeftOf="@+id/centerLine"
- android:layout_toStartOf="@+id/centerLine"
- android:text="取消"
- android:textColor="@android:color/white"
- android:textSize="28sp"
- android:visibility="gone"/>
- <Button
- android:id="@+id/btn_submit"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/progress"
- android:layout_toEndOf="@+id/centerLine"
- android:layout_toRightOf="@+id/centerLine"
- android:text="安装"
- android:textColor="@android:color/holo_red_light"
- android:textSize="28sp"
- android:visibility="gone"/>
- </RelativeLayout>
|