resort simulation dialogue a bit better

This commit is contained in:
sonora 2013-08-03 09:08:41 +02:00
parent ca60148431
commit 730c11179e
2 changed files with 9 additions and 6 deletions

View file

@ -4,11 +4,8 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<TextView android:text="@string/select_animate_speedup" android:gravity="center"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp"/>
<CheckBox android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/AnnounceGPXWpt"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp"
android:text="@string/announce_gpx_waypoints"/>
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp"/>
<SeekBar android:id="@+id/Speedup" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp"/>
<LinearLayout
@ -19,4 +16,10 @@
<TextView android:text="15" android:gravity="right" android:layout_weight="0.5" android:id="@+id/MaxSpeedup"
android:layout_width="wrap_content" android:layout_height="wrap_content"/>
</LinearLayout>
<CheckBox android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/AnnounceGPXWpt"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp"
android:text="@string/announce_gpx_waypoints"/>
<TextView android:text="@string/animate_routing_using_gpx" android:gravity="center"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp"/>
</LinearLayout>

View file

@ -36,7 +36,7 @@ public class OsmAndLocationSimulation {
public void startStopRouteAnimation(final MapActivity ma) {
if (!isRouteAnimating()) {
Builder builder = new AlertDialog.Builder(ma);
builder.setTitle(R.string.animate_routing_using_gpx);
builder.setTitle(R.string.animate_route);
final View view = ma.getLayoutInflater().inflate(R.layout.animate_route, null);
((TextView)view.findViewById(R.id.MinSpeedup)).setText("1"); //$NON-NLS-1$
((TextView)view.findViewById(R.id.MaxSpeedup)).setText("4"); //$NON-NLS-1$