TextView被底部菜单挡住怎么往上挪,具体怎么写
时间: 2023-04-08 18:02:35 浏览: 57
你可以使用布局参数来调整 TextView 的位置,例如使用 RelativeLayout 布局,将 TextView 的布局参数设置为 alignParentBottom="true",然后再将底部菜单的布局参数设置为 above="@id/textView",这样就可以将 TextView 往上挪了。具体代码实现可以参考以下示例:
<RelativeLayout>
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello World!"
android:layout_alignParentBottom="true" />
<BottomMenu
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/textView" />
</RelativeLayout>
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)