A (175)

(Tuis.) #1
CHAPTER 15: Developing for Android Wearable Devices 579

Again, since “left” is still one of the default (top,left or 0,0) alignments, all you really need to put in
place to accomplish this bottom-left planet icon placement is the bottom layout gravity constant.
Again, if you decide to use “bottom|left” as your layout gravity constant pair, make sure you do not
have any spacing in the constant.


Now you can use the GLE tab to preview your planet icons UI design. As you can see, the app is
starting to look pretty cool, with three other planets symmetrically spaced in three of the four corners
of the application.


Figure 15-34. Use the Graphical Layout Editor to preview the jupiterIcon UI element’s placement


Now you have three of the four planet icons in place; all you need to do is to add an Earth icon to
your design.


Copy the Jupiter ImageView underneath itself and turn it into an Earth ImageView, as shown in
Figure 15-35.

Free download pdf