Question:Consider the XML fragment below, which is taken from one of the files in an Android project:
<MyElement xmlns:"http://schemas.androd.com/apk/res/android"
        android:layout_width = "fill_parent"
        android:layout_height = "fill_parent"
        android:text = "Some Text">
</MyElement>
Which of the following are true about the XML fragment above? 

A It is taken from the manifest XML file of the Android project. 

B It is taken from an XML file used to define a view. 

C It is taken from the package file (.apk) of the Android project. 

D The xmlns: attribute is a compulsory attribute. 

E If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute. 

F MyElement should be the name of a class derived, directly or indirectly, from the View class. 

+ Answer
+ Report
Total Preview: 4278

Copyright © 2024. Powered by Intellect Software Ltd