Now that we have a really good overview of the layout and coding of an Android app, our newly acquired insight into object-oriented programming, and how we can manipulate a UI from our Java code, we are ready to experiment with more widgets from the palette.
OOP is tricky at times, but by gradually learning new concepts, practicing, and becoming familiar with them, over time, it will actually become our friend.
In this chapter, we will diversify a lot by going back to the Android Studio palette and looking around at half a dozen widgets that we have either not seen at all or have not used fully yet.
Once we have done so, we will put them all into a layout and practice manipulating them with Java code. In this chapter, we will:
Refresh our memories on how to declare and initialize layout widgets
Quickly see how to create widgets with just Java code
Take a look at the
EditText
,ImageView
,RadioButton
(andRadioGroup
),Switch
,CheckBox
,WebView
, andTextClock
widgetsLearn...