【发布时间】:2017-10-19 14:07:46
【问题描述】:
我是 android 新手,正在尝试为我的应用创建标题区域和标题。我所拥有的是:
当我查看其中每一个的 XML 时,约束 xml 是相同的。谁能帮我在#1 中添加一个标题栏。
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
谢谢。
【问题讨论】:
-
这是一个工具栏,如果您有支持库,可以声明为使用标签,或者只是更改为具有操作栏的主题
-
我明白你们在说什么,但在第二个示例中,标题默认就在那里。无论如何我可以在 XML 中为我的初始布局执行此操作吗?
标签: android