Which of the following is the base class of all UI components?
Answer(s): C
View is the base class for android.widget subclasses, which instantiate fully-implemented UI objects. Reference: http://eagle.phys.utk.edu/guidry/android/androidUserInterface.html
Which of the following is true about object arrayAdapter declared in the code below? String[] items = {“Item 1”,”Item 2”,”Item 3”};ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items); listView.setAdapter(arrayAdapter);
Answer(s): A
Which of the following is NOT a correct constructer for ArrayAdapter?
Public ArrayAdapter Constructors include:public ArrayAdapter (Context context, int resource)public ArrayAdapter (Context context, int resource, int textViewResourceId) public ArrayAdapter (Context context, int resource, List<T> objects)
http://developer.android.com/reference/android/widget/ArrayAdapter.html
Which of the following add a click listener to items in a listView?
Answer(s): B
AdapterView.OnItemClickListener is an interface definition for a callback to be invoked when an item in this AdapterView has been clicked.
http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html
Which of the following makes a ListView Clickable?
Post your Comments and Discuss Android AND-401 exam prep with other Community members: