tabs 居中显示

This commit is contained in:
renhaoting 2025-12-23 19:36:49 +08:00
parent 150c1a7107
commit 8cbc29db36
2 changed files with 8 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class MainActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnTabS
override fun inflateViewBinding(inflater: LayoutInflater) = ViewBinding.inflate(inflater) override fun inflateViewBinding(inflater: LayoutInflater) = ViewBinding.inflate(inflater)
override fun ViewBinding.initWindowInsets() { override fun ViewBinding.initWindowInsets() {
setImmerseRootView(adContainer) setImmerseRootView(flForImmerse)
} }

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:paddingTop="12dp" android:paddingVertical="12dp"
app:layout_constraintBottom_toTopOf="@+id/ad_container" /> app:layout_constraintBottom_toTopOf="@+id/ad_container" />
<FrameLayout <FrameLayout
@ -31,6 +31,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent" /> app:layout_constraintBottom_toBottomOf="parent" />
<FrameLayout
android:id="@+id/fl_for_immerse"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"/>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>