简体   繁体   English

该工具栏图标叫什么,如何访问它? (机器人)

[英]What is this toolbar icon called and how can I access it? (ANDROID)

I'm looking at the toolbar at the top here: 我在这里查看顶部的工具栏:

http://cdn1.tnwcdn.com/wp-content/blogs.dir/1/files/2013/10/digg11.jpg http://cdn1.tnwcdn.com/wp-content/blogs.dir/1/files/2013/10/digg11.jpg

Does anyone know what the icon on the top left is called and where I can find it? 有人知道左上角的图标是什么,在哪里可以找到它? Also, is there anyway of adding this to my toolbar without using an ActionBar? 另外,是否可以不使用ActionBar将其添加到我的工具栏中? For some reason ActionBar is deprecated for me and I have all sorts of trouble following tutorials since they all link the toolbar with ActionBar. 由于某种原因,我不赞成使用ActionBar,因此在学习本教程时会遇到种种麻烦,因为它们都将工具栏与ActionBar链接在一起。

Appreciate any help! 感谢任何帮助!

you should use the action bar for that and just lay the background to the same color of your Activity background so it gives the illusion you have no Action bar. 您应该为此使用操作栏,并且只需将背景设置为与“活动”背景相同的颜色即可,这样就产生了您没有操作栏的错觉。 but if for some reason you insist in doing it without an Action Bar then use an image view and align it to parent top and to the left side. 但是如果由于某种原因您坚持不使用操作栏进行操作,则可以使用图像视图,并将其与父顶部和左侧对齐。

And Just change your extends to AppCompatActivity so you can see your Action Bar 并且只需将您的扩展更改为AppCompatActivity,以便您可以看到操作栏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM