From c32325af6605e78c1d1147d466f3ea12ce94124a Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Thu, 30 Aug 2012 13:19:41 +1200 Subject: [PATCH] altosdroid: rename azimuth/altitude to elevation/height respectively. (Matches altoslib, altosui, altos) Signed-off-by: Mike Beattie --- altosdroid/res/layout/altosdroid.xml | 22 +++++++++---------- altosdroid/res/values/strings.xml | 4 ++-- .../altusmetrum/AltosDroid/AltosDroid.java | 12 +++++----- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/altosdroid/res/layout/altosdroid.xml b/altosdroid/res/layout/altosdroid.xml index 0392ba01..e4b4f605 100644 --- a/altosdroid/res/layout/altosdroid.xml +++ b/altosdroid/res/layout/altosdroid.xml @@ -150,7 +150,7 @@ + android:text="@string/height_label" /> + android:text="@string/elevation_label" /> @@ -226,7 +226,7 @@ android:id="@+id/latitude_container" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_below="@+id/azimuth_container" > + android:layout_below="@+id/elevation_container" > Speed Acceleration Range - Altitude - Azimuth + Height + Elevation Bearing Latitude Longitude diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java index 9ecce681..f8e60e28 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java @@ -69,8 +69,8 @@ public class AltosDroid extends Activity { private TextView mSpeedView; private TextView mAccelView; private TextView mRangeView; - private TextView mAltitudeView; - private TextView mAzimuthView; + private TextView mHeightView; + private TextView mElevationView; private TextView mBearingView; private TextView mLatitudeView; private TextView mLongitudeView; @@ -182,8 +182,8 @@ public class AltosDroid extends Activity { mSpeedView.setText(String.format("%6.0f m/s", speed)); mAccelView.setText(String.format("%6.0f m/s²", state.acceleration)); mRangeView.setText(String.format("%6.0f m", state.range)); - mAltitudeView.setText(String.format("%6.0f m", state.height)); - mAzimuthView.setText(String.format("%3.0f°", state.elevation)); + mHeightView.setText(String.format("%6.0f m", state.height)); + mElevationView.setText(String.format("%3.0f°", state.elevation)); if (state.from_pad != null) mBearingView.setText(String.format("%3.0f°", state.from_pad.bearing)); mLatitudeView.setText(pos(state.gps.lat, "N", "S")); @@ -228,8 +228,8 @@ public class AltosDroid extends Activity { mSpeedView = (TextView) findViewById(R.id.speed_value); mAccelView = (TextView) findViewById(R.id.accel_value); mRangeView = (TextView) findViewById(R.id.range_value); - mAltitudeView = (TextView) findViewById(R.id.altitude_value); - mAzimuthView = (TextView) findViewById(R.id.azimuth_value); + mHeightView = (TextView) findViewById(R.id.height_value); + mElevationView = (TextView) findViewById(R.id.elevation_value); mBearingView = (TextView) findViewById(R.id.bearing_value); mLatitudeView = (TextView) findViewById(R.id.latitude_value); mLongitudeView = (TextView) findViewById(R.id.longitude_value); -- 2.30.2