fix bug https://github.com/AriaLyy/Aria/issues/406
This commit is contained in:
5
app/src/main/res/drawable/bg_loading.xml
Normal file
5
app/src/main/res/drawable/bg_loading.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#99000000"/>
|
||||
<corners android:radius="8dp"/>
|
||||
</shape>
|
||||
@@ -15,6 +15,11 @@
|
||||
name="progress"
|
||||
type="int"
|
||||
/>
|
||||
<variable
|
||||
name="stateStr"
|
||||
type="String"
|
||||
/>
|
||||
|
||||
</data>
|
||||
|
||||
<RelativeLayout
|
||||
@@ -26,7 +31,7 @@
|
||||
<include layout="@layout/layout_bar"/>
|
||||
|
||||
<include
|
||||
layout="@layout/content_single"
|
||||
layout="@layout/layout_content_single"
|
||||
android:id="@+id/content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -34,6 +39,7 @@
|
||||
bind:fileSize="@{fileSize}"
|
||||
bind:progress="@{progress}"
|
||||
bind:speed="@{speed}"
|
||||
bind:stateStr="@{stateStr}"
|
||||
/>
|
||||
|
||||
<com.arialyy.simple.widget.SubStateLinearLayout
|
||||
|
||||
19
app/src/main/res/layout/dialog_loading.xml
Normal file
19
app/src/main/res/layout/dialog_loading.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:background="@drawable/bg_loading"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_centerInParent="true"
|
||||
/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</layout>
|
||||
@@ -12,7 +12,7 @@
|
||||
<SurfaceView
|
||||
android:id="@+id/surface_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:layout_height="240dp"
|
||||
/>
|
||||
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:clickable="true"
|
||||
app:srcCompat="@drawable/ic_start"
|
||||
android:visibility="visible"
|
||||
app:srcCompat="@drawable/selector_start_stop_bt"
|
||||
/>
|
||||
|
||||
<SeekBar
|
||||
|
||||
Reference in New Issue
Block a user