Getting More Active
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
>
android:text="Take-Out"
/>
android:text="Sit-Down"
/>
android:text="Delivery"
/>
android:singleLine="false"
android:gravity="top"
android:lines="2"
android:scrollHorizontally="false"
android:maxLines="2"
android:maxWidth="200sp"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Save"
/>
This is just the detail form turned into its own standalone layout file.
Next, un-comment the setContentView() call in onCreate() in DetailForm and
have it load this layout:
setContentView(R.layout.detail_form);
112
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
android:layout_height="wrap_content"
android:stretchColumns="1"
>
/>
/>
/>
android:gravity="top"
android:lines="2"
android:scrollHorizontally="false"
android:maxLines="2"
android:maxWidth="200sp"
/>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Save"
/>
This is just the detail form turned into its own standalone layout file.
Next, un-comment the setContentView() call in onCreate() in DetailForm and
have it load this layout:
setContentView(R.layout.detail_form);
112
Subscribe to updates at http://commonsware.com
Special Creative Commons BY-NC-SA 3.0 License Edition
