适配返回数据+1
This commit is contained in:
parent
2e2f37c586
commit
b8d848e0bf
|
|
@ -107,7 +107,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
|
|||
fun loadVideo() {
|
||||
if (null == mPlayerView) {
|
||||
mPlayerView = YouTubePlayerView(requireContext())
|
||||
binding!!.playerContainer.addView(mPlayerView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
|
||||
binding!!.playerContainer.addView(mPlayerView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
|
||||
lifecycle.addObserver(mPlayerView!!)
|
||||
mPlayerView?.enableAutomaticInitialization = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<FrameLayout
|
||||
android:id="@+id/player_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<View
|
||||
|
|
|
|||
Loading…
Reference in New Issue