animate bottom videoplayer elements separately, not the whole holder

This commit is contained in:
tibbi
2019-01-03 23:48:33 +01:00
parent 1bc4ce47bb
commit 1077369a73
2 changed files with 4 additions and 5 deletions

View File

@ -397,9 +397,9 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
}
val newAlpha = if (isFullScreen) 0f else 1f
top_shadow.animate().alpha(newAlpha).start()
video_time_holder.animate().alpha(newAlpha).start()
video_bottom_gradient.animate().alpha(newAlpha).start()
arrayOf(video_toggle_play_pause, video_curr_time, video_seekbar, video_duration, top_shadow, video_bottom_gradient).forEach {
it.animate().alpha(newAlpha).start()
}
video_seekbar.setOnSeekBarChangeListener(if (mIsFullscreen) null else this)
arrayOf(video_toggle_play_pause, video_curr_time, video_duration).forEach {
it.isClickable = !mIsFullscreen