244 CHAPTER 7: Making Apps Interactive: Intents, Event Handling, and Menus
You can add this either before or after the MainActivity
Figure 7-28. Notice that we are using the MenuItem label
subclass screen, so that users will know that it is the “Edit Galaxy Info” screen. If you want the
application name (brand) on the top of the screen, you would simply leave the app_name
constant reference; that is entirely your call.
You could also use the short-form tag style, since there are no child tags inside of the
parent tag, such as an
following XML markup:
<activity android:name="absolute.beginners.hellouniverse.EditGalaxy"
android:label="@string/edit_galaxy" />
Now let’s get back to adding the bottom half of our EditGalaxy UI design, which is not going to go
quite as smoothly as you think that it might, and so we will have an opportunity to learn even more
RelativeLayout alignment parameters which can be utilized to make your UI design absolutely perfect!
Finishing Up the RelativeLayout UI Design
Create your third set of
Figure 7-28. Adding the