Android:标题栏和ActionBar有什么区别 [英] Android: What's the difference between a title bar and an ActionBar

查看:193
本文介绍了Android:标题栏和ActionBar有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法确定它们是否是同一事物,并且它们似乎具有不同的删除方法,但是我不确定这些只是用于执行同一任务的多种方法.

I can't tell if they're the same thing or not and they seem to have different methods for removing them but I'm not sure if those are just multiple methods to do the same thing or not.

那么,有什么区别吗?

参考:

  • https://developer.android.com/reference/android/R.id.html#title
  • https://developer.android.com/reference/android/app/ActionBar.html (with material design, it is usually represented by a Toolbar)

推荐答案

标题栏是用户界面的一小部分,您可以为其提供一些文本和颜色.您可以在许多Android 2.0应用中看到它.请参见此处

The Title bar is a small part of the UI that you can supply with some text and a color. You see it on a lot of Android 2.0 Apps. See here

操作栏是带有向后导航等按钮的栏.如果可以选择,请使用它代替标题栏.请参见此处

The Actionbar is the bar with buttons that has back navigation etc. If you can chose, you use it instead of the Titlebar. See here

这篇关于Android:标题栏和ActionBar有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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