diff --git a/MyTracks/res/layout/marker_edit.xml b/MyTracks/res/layout/marker_edit.xml index fe74b3888..5175394ae 100644 --- a/MyTracks/res/layout/marker_edit.xml +++ b/MyTracks/res/layout/marker_edit.xml @@ -57,7 +57,7 @@ limitations under the License. android:hint="@string/marker_edit_marker_type_hint" android:id="@+id/marker_edit_waypoint_marker_type" android:imeOptions="actionNext" - style="@style/EditCategoryMarker" /> + style="@style/EditCategory" /> diff --git a/MyTracks/res/layout/track_edit.xml b/MyTracks/res/layout/track_edit.xml index d6f3d78ff..5d524e1db 100644 --- a/MyTracks/res/layout/track_edit.xml +++ b/MyTracks/res/layout/track_edit.xml @@ -33,13 +33,14 @@ limitations under the License. android:imeOptions="actionNext" style="@style/EditNameTrack" /> + style="@style/EditLabel.WithIcon.WithPaddingTop" /> + style="@style/EditCategory" /> diff --git a/MyTracks/res/values/strings.xml b/MyTracks/res/values/strings.xml index f0673ee91..0aee1c624 100644 --- a/MyTracks/res/values/strings.xml +++ b/MyTracks/res/values/strings.xml @@ -960,9 +960,9 @@ limitations under the License. Marker type: %1$s - Marker type (e.g. building, waterfall...) + translation_description="In the marker edit page, the label for the marker type, including an + example."> + Marker type (e.g. waterfall) - Activity type (e.g. hiking, cycling...) + activity type, including an example."> + Activity type (e.g. hiking) wrap_content wrap_content - - - - + + + + @@ -164,7 +165,6 @@ limitations under the License. @@ -176,7 +176,6 @@ limitations under the License. diff --git a/MyTracks/src/com/google/android/apps/mytracks/TrackEditActivity.java b/MyTracks/src/com/google/android/apps/mytracks/TrackEditActivity.java index 82b3e29b1..2826df1f0 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/TrackEditActivity.java +++ b/MyTracks/src/com/google/android/apps/mytracks/TrackEditActivity.java @@ -30,6 +30,7 @@ import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.Button; import android.widget.EditText; +import android.widget.TextView; /** * An activity that let's the user see and edit the user editable track meta @@ -49,6 +50,7 @@ public class TrackEditActivity extends AbstractMyTracksActivity { private Track track; private EditText name; + private TextView activityTypeLabel; private AutoCompleteTextView activityType; private EditText description; @@ -77,6 +79,8 @@ public class TrackEditActivity extends AbstractMyTracksActivity { activityType = (AutoCompleteTextView) findViewById(R.id.track_edit_activity_type); activityType.setText(track.getCategory()); + + activityTypeLabel = (TextView) findViewById(R.id.track_edit_activity_type_label); setActivityTypeIcon(track.getIcon()); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.activity_types, android.R.layout.simple_dropdown_item_1line); @@ -145,7 +149,7 @@ public class TrackEditActivity extends AbstractMyTracksActivity { * @param iconValue the icon value */ private void setActivityTypeIcon(String iconValue) { - activityType.setCompoundDrawablesWithIntrinsicBounds( + activityTypeLabel.setCompoundDrawablesWithIntrinsicBounds( TrackIconUtils.getIconDrawable(iconValue), 0, 0, 0); } }