I’m new to Android development, so sorry if this question can be answered easily, but I would like to ask what the following tag means:
<com.example.android.ViewName />
I’m trying to develop a game and I’ve seen some sample XML codes that are similar to that, what does it do?
Any help would be greatly appreciated. I would like to learn from you. Thanks!
if you design your own layout or widget using java class then you can refer to that in xml by giving tag like above here this tag means some custom designed layout or view by app developer which is then used in xml
for example if my project has package name like com.myname.mypackagetitle
and i crate a class CustomizedGadget in my package which extends some widget or some layout like LinearLayout (layout) or EditText (widget) and i add some custom functionality to that layout/widget then to use that widget in xml i will write a tag like