use smaller play/pause/panorama icons with dynamic background
|
@ -386,7 +386,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
|||
|
||||
mIsPlaying = true
|
||||
mExoPlayer?.playWhenReady = true
|
||||
mView!!.video_play_outline.setImageDrawable(resources.getDrawable(R.drawable.img_pause_outline_big))
|
||||
mView!!.video_play_outline.setImageResource(R.drawable.ic_pause)
|
||||
activity!!.window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||
mHidePauseHandler.postDelayed({
|
||||
mView!!.video_play_outline.animate().alpha(0f).start()
|
||||
|
@ -403,7 +403,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
|||
mExoPlayer?.playWhenReady = false
|
||||
}
|
||||
|
||||
mView?.video_play_outline?.setImageDrawable(resources.getDrawable(R.drawable.img_play_outline_big))
|
||||
mView?.video_play_outline?.setImageResource(R.drawable.ic_play)
|
||||
mView!!.video_play_outline.alpha = PLAY_PAUSE_VISIBLE_ALPHA
|
||||
activity!!.window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||
|
||||
|
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 520 B |
BIN
app/src/main/res/drawable-hdpi/ic_pause.png
Normal file
After Width: | Height: | Size: 140 B |
BIN
app/src/main/res/drawable-hdpi/ic_play.png
Normal file
After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 622 B |
BIN
app/src/main/res/drawable-xhdpi/ic_pause.png
Normal file
After Width: | Height: | Size: 92 B |
BIN
app/src/main/res/drawable-xhdpi/ic_play.png
Normal file
After Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 940 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_pause.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_play.png
Normal file
After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_pause.png
Normal file
After Width: | Height: | Size: 110 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_play.png
Normal file
After Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6 KiB |
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/circle_black_background"
|
||||
android:insetBottom="@dimen/activity_margin"
|
||||
android:insetLeft="@dimen/activity_margin"
|
||||
android:insetRight="@dimen/activity_margin"
|
||||
android:insetTop="@dimen/activity_margin"/>
|
|
@ -23,8 +23,8 @@
|
|||
android:layout_width="@dimen/play_outline_size_big"
|
||||
android:layout_height="@dimen/play_outline_size_big"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:padding="@dimen/big_margin"
|
||||
android:background="@drawable/circle_black_background_with_inset"
|
||||
android:padding="28dp"
|
||||
android:src="@drawable/ic_panorama"
|
||||
android:visibility="gone"/>
|
||||
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
android:layout_width="@dimen/play_outline_size_big"
|
||||
android:layout_height="@dimen/play_outline_size_big"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@android:color/transparent"
|
||||
android:padding="@dimen/big_margin"
|
||||
android:src="@drawable/img_play_outline_big"/>
|
||||
android:background="@drawable/circle_black_background_with_inset"
|
||||
android:padding="26dp"
|
||||
android:src="@drawable/ic_play"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/slide_info"
|
||||
|
|
|
@ -4,6 +4,5 @@
|
|||
<dimen name="medium_tmb_size">120dp</dimen>
|
||||
<dimen name="sd_card_icon_size">30dp</dimen>
|
||||
<dimen name="selection_check_size">38dp</dimen>
|
||||
<dimen name="play_outline_size_big">200dp</dimen>
|
||||
<dimen name="tmb_shadow_height">60dp</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<dimen name="sd_card_icon_size">20dp</dimen>
|
||||
<dimen name="play_outline_icon_size">22dp</dimen>
|
||||
<dimen name="selection_check_size">26dp</dimen>
|
||||
<dimen name="play_outline_size_big">130dp</dimen>
|
||||
<dimen name="play_outline_size_big">96dp</dimen>
|
||||
<dimen name="tmb_shadow_height">60dp</dimen>
|
||||
<dimen name="media_side_slider_width">60dp</dimen>
|
||||
<dimen name="instant_change_bar_width">30dp</dimen>
|
||||
|
|