【发布时间】:2021-04-28 22:28:43
【问题描述】:
在继续发布此问题之前,我在 SO 上尝试了多个答案。这些都没有帮助。
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<allosh.xvideo.player.views.PlayerVideoView
android:layout_centerInParent="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="100dp"/>
</RelativeLayout>
</RelativeLayout>
LinearLayout 的android:layout_marginBottom="100dp" 不做任何事情,而android:layout_margin="5dp" 有一个可见的效果。
我不仅在寻找解决方案,而且还在寻找适当的解释。这将是有益的和感激的。
【问题讨论】:
标签: android xml android-layout