diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-02-09 22:19:06 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-02-09 22:19:06 +0100 |
commit | add92c9ece36e53051bbceb04276888459688fa5 (patch) | |
tree | 434e568c26625f50389fca4e858041d1aedc9d24 /libs/fullscreenvideoview/src/main/res | |
parent | 835100d5f4ee36815e8b967cb97e54a4b355165a (diff) |
automatically hide and show FAB in MediaViewerActivity
integrate lib FullscreenVideoView as files
Diffstat (limited to 'libs/fullscreenvideoview/src/main/res')
19 files changed, 130 insertions, 0 deletions
diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_disabled.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_disabled.png Binary files differnew file mode 100644 index 000000000..df0552fdc --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_disabled.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_focused.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_focused.png Binary files differnew file mode 100644 index 000000000..59ebe18c7 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_focused.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_normal.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_normal.png Binary files differnew file mode 100644 index 000000000..f9c26fc5b --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_normal.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_pressed.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_pressed.png Binary files differnew file mode 100644 index 000000000..239ffc541 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_control_pressed.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader.png Binary files differnew file mode 100644 index 000000000..2e9f6c3d0 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader_white.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader_white.png Binary files differnew file mode 100644 index 000000000..969056d24 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_fullscreen_reader_white.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader.png Binary files differnew file mode 100644 index 000000000..c508211bf --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader_white.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader_white.png Binary files differnew file mode 100644 index 000000000..2c386c24d --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_pause_reader_white.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader.png Binary files differnew file mode 100644 index 000000000..9df16013b --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader_white.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader_white.png Binary files differnew file mode 100644 index 000000000..b5bc9a96c --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_play_reader_white.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_primary.9.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_primary.9.png Binary files differnew file mode 100644 index 000000000..ed4171531 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_primary.9.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_secondary.9.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_secondary.9.png Binary files differnew file mode 100644 index 000000000..0f2de4d95 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_secondary.9.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_track.9.png b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_track.9.png Binary files differnew file mode 100644 index 000000000..4014860d6 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable-xxhdpi/fvl_track.9.png diff --git a/libs/fullscreenvideoview/src/main/res/drawable/fvl_progress.xml b/libs/fullscreenvideoview/src/main/res/drawable/fvl_progress.xml new file mode 100644 index 000000000..0a8173737 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable/fvl_progress.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@android:id/background" android:drawable="@drawable/fvl_track" /> + <item android:id="@android:id/secondaryProgress"> + <scale android:scaleWidth="100%" + android:drawable="@drawable/fvl_secondary" /> + </item> + <item android:id="@android:id/progress"> + <scale android:scaleWidth="100%" + android:drawable="@drawable/fvl_primary" /> + </item> +</layer-list> diff --git a/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_fullscreen.xml b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_fullscreen.xml new file mode 100644 index 000000000..9cce2d136 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_fullscreen.xml @@ -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/fvl_fullscreen_reader" android:state_pressed="false" /> + <item android:drawable="@drawable/fvl_fullscreen_reader_white" android:state_pressed="true" /> +</selector>
\ No newline at end of file diff --git a/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_pause.xml b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_pause.xml new file mode 100644 index 000000000..ed0d8a9a6 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_pause.xml @@ -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/fvl_pause_reader" android:state_pressed="false" /> + <item android:drawable="@drawable/fvl_pause_reader_white" android:state_pressed="true" /> +</selector>
\ No newline at end of file diff --git a/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_play.xml b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_play.xml new file mode 100644 index 000000000..9511e6538 --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/drawable/fvl_selector_play.xml @@ -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/fvl_play_reader" android:state_pressed="false" /> + <item android:drawable="@drawable/fvl_play_reader_white" android:state_pressed="true" /> +</selector>
\ No newline at end of file diff --git a/libs/fullscreenvideoview/src/main/res/layout/view_videocontrols.xml b/libs/fullscreenvideoview/src/main/res/layout/view_videocontrols.xml new file mode 100644 index 000000000..8c8b53edf --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/layout/view_videocontrols.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + android:id="@+id/rel_videocontrols" + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="0dp" + android:background="#80cccccc"> + + <ImageButton + android:id="@+id/vcv_img_play" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_marginStart="0dp" + android:layout_marginLeft="0dp" + android:layout_marginTop="0dp" + android:layout_marginEnd="0dp" + android:layout_marginRight="0dp" + android:layout_marginBottom="0dp" + android:background="@drawable/fvl_selector_play" /> + + <TextView + android:id="@+id/vcv_txt_elapsed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_toRightOf="@+id/vcv_img_play" + android:text="00:00" + android:textColor="@android:color/black" /> + + <ImageButton + android:id="@+id/vcv_img_fullscreen" + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:layout_marginStart="0dp" + android:layout_marginLeft="0dp" + android:layout_marginTop="0dp" + android:layout_marginEnd="0dp" + android:layout_marginRight="0dp" + android:layout_marginBottom="0dp" + android:background="@drawable/fvl_selector_fullscreen" /> + + <TextView + android:id="@+id/vcv_txt_total" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginRight="5dp" + android:layout_toLeftOf="@+id/vcv_img_fullscreen" + android:text="00:00" + android:textColor="@android:color/black" /> + + <SeekBar + android:id="@+id/vcv_seekbar" + style="@android:style/Widget.ProgressBar.Horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_margin="2dp" + android:layout_marginStart="5dp" + android:layout_marginLeft="5dp" + android:layout_marginTop="5dp" + android:layout_marginEnd="5dp" + android:layout_marginRight="5dp" + android:layout_marginBottom="5dp" + android:layout_toLeftOf="@+id/vcv_txt_total" + android:layout_toRightOf="@+id/vcv_txt_elapsed" + android:indeterminateDrawable="@drawable/fvl_progress" + android:maxHeight="13dp" + android:minHeight="13dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:progressDrawable="@drawable/fvl_progress" + android:thumb="@drawable/fvl_control_normal" + android:thumbOffset="16dp" /> + + +</RelativeLayout>
\ No newline at end of file diff --git a/libs/fullscreenvideoview/src/main/res/values/strings.xml b/libs/fullscreenvideoview/src/main/res/values/strings.xml new file mode 100644 index 000000000..92951c27a --- /dev/null +++ b/libs/fullscreenvideoview/src/main/res/values/strings.xml @@ -0,0 +1,6 @@ +<resources> + <string name="app_name">VideoLayout</string> + + <string name="hello_world">Hello world!</string> + <string name="action_settings">Settings</string> +</resources> |