animate bottom videoplayer elements separately, not the whole holder
This commit is contained in:
parent
1bc4ce47bb
commit
1077369a73
|
@ -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
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
android:background="@drawable/gradient_background"
|
||||
tools:ignore="UnknownIdInLayout"/>
|
||||
|
||||
<include
|
||||
layout="@layout/bottom_video_time_holder"/>
|
||||
<include layout="@layout/bottom_video_time_holder"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
Loading…
Reference in New Issue