replace the Play icon with a Pause at playing videos
This commit is contained in:
parent
39ec57787f
commit
b1136ed041
8 changed files with 7 additions and 4 deletions
|
@ -313,7 +313,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
} else {
|
} else {
|
||||||
mPlayOnPrepare = true
|
mPlayOnPrepare = true
|
||||||
}
|
}
|
||||||
mView!!.video_play_outline.setImageDrawable(null)
|
|
||||||
|
mView!!.video_play_outline.setImageDrawable(resources.getDrawable(R.drawable.img_pause_outline_big))
|
||||||
activity!!.window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
activity!!.window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -544,6 +545,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mView!!.video_play_outline.animate().alpha(if (isFullscreen) 0f else 1f).start()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getExtendedDetailsY(height: Int): Float {
|
private fun getExtendedDetailsY(height: Int): Float {
|
||||||
|
|
BIN
app/src/main/res/drawable-hdpi/img_pause_outline_big.png
Normal file
BIN
app/src/main/res/drawable-hdpi/img_pause_outline_big.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
BIN
app/src/main/res/drawable-xhdpi/img_pause_outline_big.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/img_pause_outline_big.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
app/src/main/res/drawable-xxhdpi/img_pause_outline_big.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/img_pause_outline_big.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_pause_outline_big.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/img_pause_outline_big.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -43,7 +43,7 @@
|
||||||
android:layout_height="@dimen/play_outline_size_big"
|
android:layout_height="@dimen/play_outline_size_big"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:padding="@dimen/activity_margin"
|
android:padding="@dimen/big_margin"
|
||||||
android:src="@drawable/img_play_outline_big"/>
|
android:src="@drawable/img_play_outline_big"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
<dimen name="medium_tmb_size">120dp</dimen>
|
<dimen name="medium_tmb_size">120dp</dimen>
|
||||||
<dimen name="sd_card_icon_size">30dp</dimen>
|
<dimen name="sd_card_icon_size">30dp</dimen>
|
||||||
<dimen name="selection_check_size">38dp</dimen>
|
<dimen name="selection_check_size">38dp</dimen>
|
||||||
<dimen name="play_outline_size_big">230dp</dimen>
|
<dimen name="play_outline_size_big">200dp</dimen>
|
||||||
<dimen name="tmb_shadow_height">60dp</dimen>
|
<dimen name="tmb_shadow_height">60dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<dimen name="sd_card_icon_size">20dp</dimen>
|
<dimen name="sd_card_icon_size">20dp</dimen>
|
||||||
<dimen name="play_outline_icon_size">22dp</dimen>
|
<dimen name="play_outline_icon_size">22dp</dimen>
|
||||||
<dimen name="selection_check_size">26dp</dimen>
|
<dimen name="selection_check_size">26dp</dimen>
|
||||||
<dimen name="play_outline_size_big">150dp</dimen>
|
<dimen name="play_outline_size_big">130dp</dimen>
|
||||||
<dimen name="tmb_shadow_height">60dp</dimen>
|
<dimen name="tmb_shadow_height">60dp</dimen>
|
||||||
<dimen name="media_side_slider_width">60dp</dimen>
|
<dimen name="media_side_slider_width">60dp</dimen>
|
||||||
<dimen name="instant_change_bar_width">30dp</dimen>
|
<dimen name="instant_change_bar_width">30dp</dimen>
|
||||||
|
|
Loading…
Reference in a new issue