Widget exploration app

We have just talked about six Widgets – the EditText, ImageView, RadioButton (and RadioGroup), Switch, CheckBox, and TextClock widgets. Let's make a working app and do something real with each of them. We will also use a Button and a TextView again as well.

In this layout, we will use LinearLayout as the layout type that holds everything, and within LinearLayout, we will use multiple RelativeLayout.

RelativeLayout has been superseded by ConstraintLayout, but they are still very commonly used and well worth playing around with. You will see as you build layouts within RelativeLayout that the UI elements behave very much the same as ConstraintLayout but that the underlying XML is different. It is not necessary to learn this ...

Get Android Programming for Beginners - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.