Instructions
- 1
Open the Android Eclipse programming software and open the Android project you want to edit. Double-click the XML file for your app.
2Add the "LinearLayout" tag container. This container holds the objects such as buttons, text and the clock, so you can display the objects in one screen. Add the following code:
android:layout_width="fill_parent"
android:layout_height="fill_parent">
Add the clock tag to display the object in the layout container. Place the following code in the LinearLayout tag container:
android:layout_height="wrap_content" />
Click the "Save" button and click "Run" to execute the code in the Android emulator.
No comments:
Post a Comment