播放界面调整

This commit is contained in:
renhaoting 2026-01-08 19:28:15 +08:00
parent 2a3c1cd35c
commit be09270891
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment<ViewBinding>() {
if (null == mPlayerView) { if (null == mPlayerView) {
mPlayerView = YouTubePlayerView(requireContext()) mPlayerView = YouTubePlayerView(requireContext())
val layoutParam = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT) val layoutParam = FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
layoutParam.gravity = Gravity.TOP layoutParam.gravity = Gravity.BOTTOM
binding!!.playerContainer.addView(mPlayerView, layoutParam) binding!!.playerContainer.addView(mPlayerView, layoutParam)
lifecycle.addObserver(mPlayerView!!) lifecycle.addObserver(mPlayerView!!)
mPlayerView?.enableAutomaticInitialization = true mPlayerView?.enableAutomaticInitialization = true

View File

@ -23,7 +23,7 @@
android:id="@+id/magic_indicator" android:id="@+id/magic_indicator"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingVertical="12dp" android:paddingVertical="15dp"
app:layout_constraintBottom_toTopOf="@+id/ad_container" /> app:layout_constraintBottom_toTopOf="@+id/ad_container" />
<FrameLayout <FrameLayout

View File

@ -89,7 +89,7 @@
android:id="@+id/progress_bar_player" android:id="@+id/progress_bar_player"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="3dp" android:layout_height="3dp"
android:layout_marginBottom="6dp" android:layout_marginBottom="16dp"
android:layout_marginHorizontal="15dp" android:layout_marginHorizontal="15dp"
android:layout_gravity="bottom" android:layout_gravity="bottom"
/> />