replace the Play icon with a Pause at playing videos

This commit is contained in:
tibbi 2018-06-17 21:28:44 +02:00
parent 39ec57787f
commit b1136ed041
8 changed files with 7 additions and 4 deletions

View file

@ -313,7 +313,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
} else {
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)
}
@ -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 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -43,7 +43,7 @@
android:layout_height="@dimen/play_outline_size_big"
android:layout_centerInParent="true"
android:background="@android:color/transparent"
android:padding="@dimen/activity_margin"
android:padding="@dimen/big_margin"
android:src="@drawable/img_play_outline_big"/>
<TextView

View file

@ -4,6 +4,6 @@
<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">230dp</dimen>
<dimen name="play_outline_size_big">200dp</dimen>
<dimen name="tmb_shadow_height">60dp</dimen>
</resources>

View file

@ -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">150dp</dimen>
<dimen name="play_outline_size_big">130dp</dimen>
<dimen name="tmb_shadow_height">60dp</dimen>
<dimen name="media_side_slider_width">60dp</dimen>
<dimen name="instant_change_bar_width">30dp</dimen>