AlfredMalcolm
Lurker
Hello all. I am new to coding. Except for many years ago, designing two games in BASIC on a Vic 20 during a summer break while in high school! Regaining a passion for creating programs now.
So, I am currently studying JavaScript, CSS and HTML along with Android app development.
The question I have is why does the XML code for Android need to include "android" in the code?
e.g.
<TextView
android:text="Happy Birthday Dad!"
android:background="@android:color/darker_gray"
android:layout_width="150dp"
android:layout_height="150dp"
android:gravity="center"
/>
I tried googling for an answer but, couldn't find anything. If the XML code is self contained in the APK why the need to specify android? Potentially only makes sense if there some communication outside of the app and this is required to differentiate between XML code used for non-android applications, databases, etc.
Explanation would be appreciated.
Thank you! Best.
So, I am currently studying JavaScript, CSS and HTML along with Android app development.
The question I have is why does the XML code for Android need to include "android" in the code?
e.g.
<TextView
android:text="Happy Birthday Dad!"
android:background="@android:color/darker_gray"
android:layout_width="150dp"
android:layout_height="150dp"
android:gravity="center"
/>
I tried googling for an answer but, couldn't find anything. If the XML code is self contained in the APK why the need to specify android? Potentially only makes sense if there some communication outside of the app and this is required to differentiate between XML code used for non-android applications, databases, etc.
Explanation would be appreciated.
Thank you! Best.