当YouTube播放器片段嵌套在滚动型我得到的错误,当旋转装置景观:YouTube播放器,滚动型机器人
YouTubePlayer.ErrorReason.UNAUTHORIZED_OVERLAY
什么是更有趣的是,当我删除的问题消失滚动型 !但我可以
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
/>
<fragment
android:name="com.google.android.youtube.player.YouTubePlayerFragment"
android:id="@+id/youtubeplayerfragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</ScrollView>
scrollview应该只有一个孩子 –