laoyuyu
2019-07-10 20:21:42 +08:00
parent b0818537f2
commit b1bc4529c0
32 changed files with 406 additions and 248 deletions

View 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>

View File

@@ -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

View 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>

View File

@@ -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