In this section, we will explore some more attributes that control the finer details of our UI. You have probably noticed how the UI looks a bit squashed in some places, and wonky and unsymmetrical in others. As we progress through the book, we will continually add to our repertoire to improve our layouts, but these short steps will introduce and take care of some of the basics:
Select the
Multiline Text
, and then expand thePadding
attribute. Set theall
option to15sp
. This has made a neat area of space around the outside of the text.To make a nice space below the
Multiline text
, find and expand theLayout_Margin
attribute and setbottom
to100sp
.On both
TextView
widgets that are aligned/related to the buttons, set thetextSize
attribute to20sp
, thelayout_gravity
tocenter_vertical
, thelayout_width
tomatch_parent
, and thelayout_weight
to.7
.On both buttons, set the weight to
.3
. Notice how both buttons now take up exactly.3
of the width and the text...