屏幕上的菜单栏/工具栏上的Andr​​oid底部 [英] Bottom of the screen the menubar/toolbar in android

查看:171
本文介绍了屏幕上的菜单栏/工具栏上的Andr​​oid底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何做到这一点?

Does anyone know how to do this?

推荐答案

使用的LinearLayout与alignParentBottom =真正的

Use a LinearLayout with alignParentBottom="true"

事情是这样的:

<RelativeLayout
android:id="@+id/mainLyt"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Some layout things -->

<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/bottomBar">

<!-- some scrolling content -->
</ScrollView>

<LinearLayout
android:id="@+id/bottomBar"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:layout_alignParentBottom="true">

<!-- Some Buttons -->
</LinearLayout>

</RelativeLayout>

我没有尝试编译,你可能需要修正一些拼写错误,但这是你可以实现你试图做一个基本的了解。

I didn't try to compile, you might have to fix some typos but this is a basic idea with which you can achieve what you are trying to do.

这篇关于屏幕上的菜单栏/工具栏上的Andr​​oid底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆