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
|
val newAlpha = if (isFullScreen) 0f else 1f
|
||||||
top_shadow.animate().alpha(newAlpha).start()
|
arrayOf(video_toggle_play_pause, video_curr_time, video_seekbar, video_duration, top_shadow, video_bottom_gradient).forEach {
|
||||||
video_time_holder.animate().alpha(newAlpha).start()
|
it.animate().alpha(newAlpha).start()
|
||||||
video_bottom_gradient.animate().alpha(newAlpha).start()
|
}
|
||||||
video_seekbar.setOnSeekBarChangeListener(if (mIsFullscreen) null else this)
|
video_seekbar.setOnSeekBarChangeListener(if (mIsFullscreen) null else this)
|
||||||
arrayOf(video_toggle_play_pause, video_curr_time, video_duration).forEach {
|
arrayOf(video_toggle_play_pause, video_curr_time, video_duration).forEach {
|
||||||
it.isClickable = !mIsFullscreen
|
it.isClickable = !mIsFullscreen
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
android:background="@drawable/gradient_background"
|
android:background="@drawable/gradient_background"
|
||||||
tools:ignore="UnknownIdInLayout"/>
|
tools:ignore="UnknownIdInLayout"/>
|
||||||
|
|
||||||
<include
|
<include layout="@layout/bottom_video_time_holder"/>
|
||||||
layout="@layout/bottom_video_time_holder"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
Loading…
Reference in New Issue