Finding the com… to use in Android Layout

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:11:43

问题


I am using this tutorial to try to replace the default TitleBar with a custom ActionBar. I am to the part where I am trying to create the xml layout for the custom title (#2 Under INCLUDING THE ACTIONBAR WIDGET IN YOUR APPLICATION), and the tutorial defines the ActionBar in the xml using

com.thira.examples.actionbar.widget.ActionBar

I have no idea how to figure out what to put there for my ActionBar. I believe this is called the package name. If so, how do I figure out what mine is. If not, what am I looking for here?


回答1:


There are a couple options for figuring out your package name. The first (and easiest) is to declare it yourself in the project properties dialog:

Alternatively, if you haven't defined it yourself you can take a look at the AndroidManifest.xml file that is generated as part of the packaging step of the build. You can find it in the obj/Debug/android folder of your project.



来源:https://stackoverflow.com/questions/9826035/finding-the-com-to-use-in-android-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!