Tuesday, March 28, 2017

Quiz

Q1:
a): What does <intent-filter> tag is meant for in "AndroidManifest.xml" ?
b): Describe one line difference between ListActivity and ListView.
d): What is difference between LinearLayout and RelativeLayout ?
e): Differentiate between margin and padding.
f): Differentiate wrap_content and match_parent.
Q2: What is Activity Lifecycle ? Write down all activity lifecycle methods in sequence they are called. When does onPause() and onResume get called ?
Q3: How does static ListView listens item click events ? Write code for below
i) Add static rows in Listview in TopActivity.
ii) Pass position of selected item to DetailActivity when a row item is clicked in Listview.


Q4:  What are adapters and how they are used with list views? Write at least 3 methods of Custom adapter class and explain how they are used.

No comments:

Post a Comment