第一次提交
This commit is contained in:
111
app/src/main/res/layout/dialog_downloader.xml
Normal file
111
app/src/main/res/layout/dialog_downloader.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/rl_update"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/downloader_update_background"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/ic_bg_update"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_update_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="174dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:text="更新内容"
|
||||
android:textColor="#1A1A1A"
|
||||
android:textSize="16dp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toEndOf="@+id/downloader_update_background"
|
||||
app:layout_constraintStart_toStartOf="@+id/downloader_update_background"
|
||||
app:layout_constraintTop_toTopOf="@+id/downloader_update_background" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/downloader_update_info"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:lineSpacingExtra="8dp"
|
||||
android:lines="6"
|
||||
android:textColor="#1A1A1A"
|
||||
android:textSize="12dp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/lin_update_btn"
|
||||
app:layout_constraintEnd_toEndOf="@+id/downloader_update_background"
|
||||
app:layout_constraintStart_toStartOf="@+id/downloader_update_background"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_update_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lin_update_btn"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/downloader_update_background"
|
||||
app:layout_constraintEnd_toEndOf="@+id/downloader_update_background"
|
||||
app:layout_constraintStart_toStartOf="@+id/downloader_update_background">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/downloader_update_cancel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginStart="30dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="暂不升级"
|
||||
android:textColor="#D0D0D0"
|
||||
android:textSize="12dp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/downloader_update_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginEnd="30dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/shape_button_black"
|
||||
android:text="立即升级"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="12dp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/downloader_update_progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginEnd="18dp"
|
||||
android:layout_marginBottom="45dp"
|
||||
android:progress="30"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/downloader_update_background"
|
||||
app:layout_constraintEnd_toEndOf="@+id/downloader_update_background"
|
||||
app:layout_constraintStart_toStartOf="@+id/downloader_update_background" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user