使用JzvdStd 从全屏退出原本大小,导致所有控件不可见

2019-06-26  本文已影响0人  一个冬季
JzvdStd版本

cn.jzvd:jiaozivideoplayer:7.0.3
https://github.com/lipangit/JiaoZiVideoPlayer

问题描述

最开始使用JzvdStd进行正常播放是没问题的,如果点击全屏播放,然后又从全屏播放退出来,会导致控件不可见,除开视频,我底部是还有很多的控件的,但是现在它们都不可见了。如下图所示


bug.png
解决方式

控件外面嵌套一层布局

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="@dimen/dp_187">

                <cn.jzvd.JzvdStd
                    android:id="@+id/video_classroom"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/dp_187"
                    android:layout_centerVertical="true"
                    app:layout_constraintLeft_toLeftOf="parent"
                    app:layout_constraintRight_toRightOf="parent"
                    app:layout_constraintTop_toTopOf="parent" />

            </LinearLayout>
上一篇 下一篇

猜你喜欢

热点阅读