A Simple Form
android:layout_height="wrap_content"
android:text="Name:"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Address:"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Save"
/>
This gives us a three-row form: one row with a labeled field for the
restaurant name, one with a labeled field for the restaurant address, and a
big Save button.
Step #3: Compile and Install the Application
Compile and install the application in the emulator by running the
following commands in your terminal:
ant clean install
Or, from Eclipse, just run the project.
13
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
android:layout_height="wrap_content"
android:text="Name:"
/>
android:layout_height="wrap_content"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:layout_height="wrap_content"
android:text="Address:"
/>
android:layout_height="wrap_content"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Save"
/>
This gives us a three-row form: one row with a labeled field for the
restaurant name, one with a labeled field for the restaurant address, and a
big Save button.
Step #3: Compile and Install the Application
Compile and install the application in the emulator by running the
following commands in your terminal:
ant clean install
Or, from Eclipse, just run the project.
13
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
