danylovolokh/VideoPlayerManager

Unable to set Visibility in XML.

AxeemHaider opened this issue · 1 comments

I try to set the visibility of view in XML file but when I run application it give error

InflateException: Binary XML file line #79: Error inflating class com.volokh.danylo.video_player_manager.ui.VideoPlayerView

Here is my XML code

<com.volokh.danylo.video_player_manager.ui.VideoPlayerView android:id="@+id/vvFeedVideo" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone"/>

I try to set visibility in Java class there it's working fine.

vvFeedVideo.setVisibility(View.GONE)

You can use ViewGroup to wrap that videoview