Android的导航栏顶部Android

2023-09-06 07:01:49 作者:执念

我怎样才能使一个导航栏,在我的应用程序的顶部?我想是这样的照片在顶栏: 链接文本

How can i make a Navigation Bar at the top of my application? I would like something like the top bar in the photo: link text

推荐答案

这个问题是类似pretty的,而且可能是你在找什么:Android /布局:如何创建一个标题,内容布局

This question is pretty similar, and might be what you're looking for: Android / layout: how to create a header-content layout.

至于创建头,只需创建一个 RelativeLayout的有两个按钮:一头连着父母的左一对父母的​​权利。

As far as creating the header, simply create a RelativeLayout with two Buttons: one attached to the parent's left and one to the parent's right.