version:
update:修复圆角显示,封面缩略图拉伸 fix bug:
6
JZVideo/src/main/res/anim/pop_from_bottom_anim_in.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="200"
|
||||
android:fromXDelta="100%"
|
||||
android:toXDelta="0" />
|
||||
5
JZVideo/src/main/res/anim/pop_from_bottom_anim_out.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="200"
|
||||
android:fromXDelta="0"
|
||||
android:toXDelta="100%" />
|
||||
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_add_volume.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_back_normal.png
Normal file
|
After Width: | Height: | Size: 625 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_back_pressed.png
Normal file
|
After Width: | Height: | Size: 378 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_back_tiny_normal.png
Normal file
|
After Width: | Height: | Size: 531 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_back_tiny_pressed.png
Normal file
|
After Width: | Height: | Size: 486 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_backward_icon.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_10.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_100.png
Normal file
|
After Width: | Height: | Size: 169 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_30.png
Normal file
|
After Width: | Height: | Size: 169 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_50.png
Normal file
|
After Width: | Height: | Size: 168 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_70.png
Normal file
|
After Width: | Height: | Size: 169 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_battery_level_90.png
Normal file
|
After Width: | Height: | Size: 168 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_brightness_video.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 469 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_close_volume.png
Normal file
|
After Width: | Height: | Size: 717 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_enlarge.png
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_forward_icon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_loading_bg.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_pause_normal.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_pause_pressed.png
Normal file
|
After Width: | Height: | Size: 958 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_play_normal.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_play_pressed.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_restart_normal.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_restart_pressed.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_share_normal.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_share_pressed.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_shrink.png
Normal file
|
After Width: | Height: | Size: 224 B |
BIN
JZVideo/src/main/res/drawable-xhdpi/jz_volume_icon.png
Normal file
|
After Width: | Height: | Size: 922 B |
BIN
JZVideo/src/main/res/drawable/jz_bottom_bg.9.png
Normal file
|
After Width: | Height: | Size: 946 B |
28
JZVideo/src/main/res/drawable/jz_bottom_progress.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<solid android:color="#a5ffffff" />
|
||||
<size android:height="4dp" />
|
||||
<corners android:radius="1dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#ffe0e0e0" />
|
||||
<size android:height="4dp" />
|
||||
<corners android:radius="1dp" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#fff85959" />
|
||||
<size android:height="4dp" />
|
||||
<corners android:radius="1dp" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
5
JZVideo/src/main/res/drawable/jz_bottom_seek_poster.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_seek_poster_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_seek_poster_normal" />
|
||||
</selector>
|
||||
28
JZVideo/src/main/res/drawable/jz_bottom_seek_progress.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<solid android:color="#a5ffffff" />
|
||||
<size android:height="1dp" />
|
||||
<corners android:radius="1.5dip" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#ffffffff" />
|
||||
<size android:height="1dp" />
|
||||
<corners android:radius="1.5dip" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#fff85959" />
|
||||
<size android:height="1dp" />
|
||||
<corners android:radius="1.5dip" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
BIN
JZVideo/src/main/res/drawable/jz_clarity_popwindow_bg.9.png
Normal file
|
After Width: | Height: | Size: 470 B |
5
JZVideo/src/main/res/drawable/jz_click_back_selector.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_back_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_back_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_back_tiny_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_back_tiny_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_pause_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_pause_normal" />
|
||||
|
||||
</selector>
|
||||
5
JZVideo/src/main/res/drawable/jz_click_play_selector.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_play_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_play_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_restart_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_restart_normal" />
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/jz_share_pressed" android:state_pressed="true" />
|
||||
<item android:drawable="@drawable/jz_share_normal" />
|
||||
</selector>
|
||||
17
JZVideo/src/main/res/drawable/jz_dialog_progress.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<solid android:color="#ffffffff" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<solid android:color="#fff85959" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
9
JZVideo/src/main/res/drawable/jz_dialog_progress_bg.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#cc000000" />
|
||||
<corners
|
||||
android:bottomLeftRadius="6dp"
|
||||
android:bottomRightRadius="6dp"
|
||||
android:topLeftRadius="6dp"
|
||||
android:topRightRadius="6dp" />
|
||||
</shape>
|
||||
7
JZVideo/src/main/res/drawable/jz_loading.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/jz_loading_bg"
|
||||
android:fromDegrees="0.0"
|
||||
android:pivotX="50.0%"
|
||||
android:pivotY="50.0%"
|
||||
android:toDegrees="360.0" />
|
||||
7
JZVideo/src/main/res/drawable/jz_retry.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="7dp" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@android:color/white" />
|
||||
</shape>
|
||||
8
JZVideo/src/main/res/drawable/jz_seek_poster_normal.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="#ffffffff" />
|
||||
<size
|
||||
android:width="15dp"
|
||||
android:height="15dp" />
|
||||
</shape>
|
||||
8
JZVideo/src/main/res/drawable/jz_seek_poster_pressed.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="#fff0f0f0" />
|
||||
<size
|
||||
android:width="15dp"
|
||||
android:height="15dp" />
|
||||
</shape>
|
||||
BIN
JZVideo/src/main/res/drawable/jz_title_bg.9.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
19
JZVideo/src/main/res/drawable/jz_volume_progress_bg.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<solid android:color="#ffffffff" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip
|
||||
android:clipOrientation="vertical"
|
||||
android:gravity="bottom">
|
||||
<shape>
|
||||
<solid android:color="#fff85959" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
43
JZVideo/src/main/res/layout/jz_dialog_brightness.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/jz_dialog_progress_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="155dp"
|
||||
android:layout_height="120dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp"
|
||||
android:src="@drawable/jz_brightness_video" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_brightness"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/brightness_progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:max="100"
|
||||
android:progressDrawable="@drawable/jz_dialog_progress" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
56
JZVideo/src/main/res/layout/jz_dialog_progress.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/jz_dialog_progress_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="152dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/duration_image_tip"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="27dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="16dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_current"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#fff85959"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_duration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/duration_progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="4dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:max="100"
|
||||
android:progressDrawable="@drawable/jz_dialog_progress" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
43
JZVideo/src/main/res/layout/jz_dialog_volume.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/jz_dialog_progress_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="155dp"
|
||||
android:layout_height="120dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/volume_image_tip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="20dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_volume"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/volume_progressbar"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="3dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:max="100"
|
||||
android:progressDrawable="@drawable/jz_dialog_progress" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
10
JZVideo/src/main/res/layout/jz_layout_clarity.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_quality_wrapper_area"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#88000000"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="16dp" />
|
||||
11
JZVideo/src/main/res/layout/jz_layout_clarity_item.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/video_item"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:textColor="#FFF"
|
||||
android:textSize="18sp" />
|
||||
246
JZVideo/src/main/res/layout/jz_layout_std.xml
Normal file
@@ -0,0 +1,246 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/black"
|
||||
android:descendantFocusability="afterDescendants">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/surface_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/poster"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="#000000"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@drawable/jz_bottom_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="invisible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/current"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="14dp"
|
||||
android:text="00:00"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/bottom_seek_progress"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1.0"
|
||||
android:background="@null"
|
||||
android:max="100"
|
||||
android:maxHeight="1dp"
|
||||
android:minHeight="1dp"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:progressDrawable="@drawable/jz_bottom_seek_progress"
|
||||
android:thumb="@drawable/jz_bottom_seek_poster" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="00:00"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/clarity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:paddingLeft="20dp"
|
||||
android:text="clarity"
|
||||
|
||||
android:textAlignment="center"
|
||||
android:textColor="#ffffff" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/fullscreen"
|
||||
android:layout_width="52.5dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:paddingLeft="14dp"
|
||||
android:paddingRight="14dp"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/jz_enlarge" />
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/bottom_progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1.5dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:max="100"
|
||||
android:progressDrawable="@drawable/jz_bottom_progress" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/back_tiny"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:background="@drawable/jz_click_back_tiny_selector"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layout_top"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/jz_title_bg"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/back"
|
||||
android:layout_width="26dp"
|
||||
android:layout_height="26dp"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginTop="12dp"
|
||||
android:padding="3dp"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/jz_click_back_selector" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_toLeftOf="@+id/battery_time_layout"
|
||||
android:layout_toEndOf="@+id/back"
|
||||
android:layout_toRightOf="@+id/back"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/battery_time_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginRight="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:visibility="invisible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/battery_level"
|
||||
android:layout_width="23dp"
|
||||
android:layout_height="10dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:background="@drawable/jz_battery_level_10" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/video_current_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="12.0sp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/loading"
|
||||
android:layout_width="@dimen/jz_start_button_w_h_normal"
|
||||
android:layout_height="@dimen/jz_start_button_w_h_normal"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:indeterminateDrawable="@drawable/jz_loading"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/start_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/start"
|
||||
android:layout_width="@dimen/jz_start_button_w_h_normal"
|
||||
android:layout_height="@dimen/jz_start_button_w_h_normal"
|
||||
android:src="@drawable/jz_click_play_selector" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replay_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/start_layout"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/replay"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="12sp"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/retry_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="invisible">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/video_loading_failed"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/retry_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:background="@drawable/jz_retry"
|
||||
android:paddingLeft="9dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingRight="9dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:text="@string/click_to_restart"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
10
JZVideo/src/main/res/values-es/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">Estás conectado a una red móvil, el reproductor utilizará tus datos si continuas</string>
|
||||
<string name="tips_not_wifi_confirm">Reproducir</string>
|
||||
<string name="tips_not_wifi_cancel">Cancelar</string>
|
||||
<string name="no_url">No hay vídeo</string>
|
||||
<string name="replay">Volver a ver</string>
|
||||
<string name="click_to_restart">Haga clic para volver a intentarlo</string>
|
||||
<string name="video_loading_failed">Error de carga de video</string>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values-ja-rJP/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">あなたは現在、モバイルネットワークを使用しています</string>
|
||||
<string name="tips_not_wifi_confirm">ビデオを再開する</string>
|
||||
<string name="tips_not_wifi_cancel">ビデオを止める</string>
|
||||
<string name="no_url">URLエラー</string>
|
||||
<string name="replay">リプレイ</string>
|
||||
<string name="click_to_restart">再度試してください</string>
|
||||
<string name="video_loading_failed">エラーが発生しました</string>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values-ko-rKR/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">현재 모바일 네트워크를 사용 중이면 계속 플레이어가 트래픽을 소비합니다</string>
|
||||
<string name="tips_not_wifi_confirm">재생 다시 시작</string>
|
||||
<string name="tips_not_wifi_cancel">재생을 중지</string>
|
||||
<string name="no_url">재생 주소 없음</string>
|
||||
<string name="replay">재생 다시 시작</string>
|
||||
<string name="click_to_restart">다시 시도 하십시오</string>
|
||||
<string name="video_loading_failed">버퍼링 실패</string>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values-pt/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">Você está usando a rede móvel, você deseja mesmo ver o vídeo?</string>
|
||||
<string name="tips_not_wifi_confirm">Continuar</string>
|
||||
<string name="tips_not_wifi_cancel">Parar</string>
|
||||
<string name="no_url">Sem vídeo</string>
|
||||
<string name="replay">Replay</string>
|
||||
<string name="click_to_restart">Clique para tentar novamente</string>
|
||||
<string name="video_loading_failed">O carregamento de vídeo falhou</string>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values-tr/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">Şu anda mobil veriyi kullanıyorsunuz, yüksek veri kaybına yol açabilir</string>
|
||||
<string name="tips_not_wifi_confirm">Devam Et</string>
|
||||
<string name="tips_not_wifi_cancel">Durdur</string>
|
||||
<string name="no_url">URL Bulunamadı</string>
|
||||
<string name="replay">Tekrar</string>
|
||||
<string name="click_to_restart">Tekrar denemek için tıklayın</string>
|
||||
<string name="video_loading_failed">Video yüklenemedi</string>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values-zh/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">您当前正在使用移动网络,继续播放将消耗流量</string>
|
||||
<string name="tips_not_wifi_confirm">继续播放</string>
|
||||
<string name="tips_not_wifi_cancel">停止播放</string>
|
||||
<string name="no_url">播放地址无效</string>
|
||||
<string name="replay">重播</string>
|
||||
<string name="click_to_restart">点击重试</string>
|
||||
<string name="video_loading_failed">视频加载失败</string>
|
||||
</resources>
|
||||
4
JZVideo/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<resources>
|
||||
<dimen name="jz_start_button_w_h_normal">45dp</dimen>
|
||||
<dimen name="jz_start_button_w_h_fullscreen">62dp</dimen>
|
||||
</resources>
|
||||
23
JZVideo/src/main/res/values/ids.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item type="id" name="layout_bottom"/>
|
||||
<item type="id" name="current"/>
|
||||
<item type="id" name="bottom_seek_progress"/>
|
||||
<item type="id" name="total"/>
|
||||
<item type="id" name="clarity"/>
|
||||
<item type="id" name="fullscreen"/>
|
||||
<item type="id" name="back_tiny"/>
|
||||
<item type="id" name="layout_top"/>
|
||||
<item type="id" name="back"/>
|
||||
<item type="id" name="title"/>
|
||||
<item type="id" name="battery_time_layout"/>
|
||||
<item type="id" name="battery_level"/>
|
||||
<item type="id" name="video_current_time"/>
|
||||
<item type="id" name="retry_layout"/>
|
||||
<item type="id" name="retry_btn"/>
|
||||
<item type="id" name="replay_text"/>
|
||||
<item type="id" name="bottom_progress"/>
|
||||
<item type="id" name="loading"/>
|
||||
<item type="id" name="start_layout"/>
|
||||
<item type="id" name="start"/>
|
||||
</resources>
|
||||
10
JZVideo/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="tips_not_wifi">You are currently using the mobile network, the player will continue to consume traffic</string>
|
||||
<string name="tips_not_wifi_confirm">Resume</string>
|
||||
<string name="tips_not_wifi_cancel">Stop play</string>
|
||||
<string name="no_url">No url</string>
|
||||
<string name="replay">Replay</string>
|
||||
<string name="click_to_restart">Click to try again</string>
|
||||
<string name="video_loading_failed">Video loading failed</string>
|
||||
</resources>
|
||||
21
JZVideo/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="jz_style_dialog_progress" parent="@android:style/Theme.Dialog">
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowAnimationStyle">@style/jz_popup_toast_anim</item>
|
||||
<item name="android:backgroundDimEnabled">false</item>
|
||||
</style>
|
||||
|
||||
<style name="jz_popup_toast_anim" parent="@android:style/Animation">
|
||||
<item name="android:windowEnterAnimation">@android:anim/fade_in</item>
|
||||
<item name="android:windowExitAnimation">@android:anim/fade_out</item>
|
||||
</style>
|
||||
|
||||
<style name="pop_animation">
|
||||
<item name="android:windowEnterAnimation">@anim/pop_from_bottom_anim_in</item>
|
||||
<item name="android:windowExitAnimation">@anim/pop_from_bottom_anim_out</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
4
JZVideo/src/main/res/xml/jz_network_security_config.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="true" />
|
||||
</network-security-config>
|
||||