Changes

Jump to: navigation, search

Android Remote Bound Services – A Worked Example

No change in size, 16:36, 4 July 2014
Designing the User Interface
== Designing the User Interface ==
Locate the activity_remote_boundfragment_remote_bound.xml file in the Package Explorer panel and double click on it to load it into the Graphical Layout tool. Right-click on the TextView object currently in the layout, select the Change Widget Type menu option and change the widget to a Button view. Change the text on the button to read “Send Message” by right-clicking, selecting the Edit Text… menu option and creating a new string resource named button_text. Finally, drag the button and position it in the center of the display canvas
Next, switch to the XML view and modify the Button view element to declare an onClick property for the button:

Navigation menu