Add a dialog for user to choose the activty type.

By apoorvn.
This commit is contained in:
Jimmy Shih
2013-03-06 13:46:44 -08:00
parent e561a25542
commit 89e01a706e
7 changed files with 322 additions and 83 deletions
+21 -6
View File
@@ -35,12 +35,27 @@ limitations under the License.
<TextView
android:id="@+id/track_edit_activity_type_label"
android:text="@string/track_edit_activity_type"
style="@style/EditLabel.WithIcon.WithPaddingTop" />
<AutoCompleteTextView
android:hint="@string/track_edit_activity_type_hint"
android:id="@+id/track_edit_activity_type"
android:imeOptions="actionNext"
style="@style/EditCategory" />
style="@style/EditLabel.WithPaddingTop" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal" >
<AutoCompleteTextView
android:hint="@string/track_edit_activity_type_hint"
android:id="@+id/track_edit_activity_type"
android:imeOptions="actionNext"
android:layout_gravity="bottom"
android:layout_weight="1"
android:layout_width="0dp"
style="@style/EditCategory" />
<ImageButton
android:contentDescription="@string/activity_type_walking"
android:id="@+id/track_edit_activity_type_icon"
android:layout_gravity="bottom"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/track_walk" />
</LinearLayout>
<TextView
android:text="@string/generic_description"
style="@style/EditLabel.WithPaddingTop" />