What is Log and what are the available priorities?
What is a breakpoint? What can you do with it?
Some activity lifecycle methods are ... ?
What is an intent? What has an intent?
What is an intent-filter?
How is Android matching the intents?
Programmatically
XML
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent" />new TextView(
new LayoutParams(MATCH_PARENT,
MATCH_PARENT))Important
@android:id/empty
wrap_content vs match_parent
LinearLayout
RelativeLayout
WebView
FrameLayout
+ layout_weight
+ vertical/horizontal
+ faster performance
- low flexibility
+ great flexibility
+ overlay with ease
+ support for different screens
- lots of ids declaration
- slow performance
Buttons
EditText
Checkboxes
Toggle
Radio
Spinner
Pickers
EditText
ToggleButton
new Toast(context, "Test", Toast.LENGHT_SHORT)
.show()ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, myStringArray);To create an adapter you need:
Just replace ListView with GridView