Changes

Jump to: navigation, search

Creating an Android User Interface in Java Code

53 bytes added, 15:45, 3 July 2014
Creating the Example Project
== Creating the Example Project ==
Launch Eclipse and create an Android Application Project named JavaLayout with the appropriate package name and SDK selections. As with previous examples, request the creation of a blank activity and the use of the default launcher icons. Name the activity JavaLayoutActivity and the corresponding layout activity_java_layoutwith the fragment layout named fragment_java_layout
Once the project has been created, navigate within the Package Explorer panel to src -> <package name> and double click on the JavaLayoutActivity.java file so that it loads into an editing panel. As we have come to expect, Eclipse has created the template activity and overridden the onCreate() method, providing an ideal location for Java code to be added to create a user interface.

Navigation menu