Android 线性布局重叠导航栏
我一辈子都不明白为什么以及如何阻止线性布局与导航栏重叠。我熟悉Android Studio,只是不熟悉版本2+ 这个问题从来都不是一件事,我尝试了多次搜索并试图解决这个问题。(下面是截图)Android 线性布局重叠导航栏,android,android-layout,android-studio,Android,Android Layout,Android Studio,我一辈子都不明白为什么以及如何阻止线性布局与导航栏重叠。我熟悉Android Studio,只是不熟悉版本2+ 这个问题从来都不是一件事,我尝试了多次搜索并试图解决这个问题。(下面是截图) 将其放入线性布局中content\u main.xml文件中的代码 android:layout_width="match_parent" android:layout_height="match_parent" 在您的LinearLayout设置padding top50dp android:paddin
将其放入
线性布局中content\u main.xml
文件中的代码
android:layout_width="match_parent"
android:layout_height="match_parent"
在您的LinearLayout
设置padding top50dp
android:paddingTop="50dp"
您可以根据布局位置更改边距值
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"