mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
Adjust fade out duration and fix degree font size
This commit is contained in:
@@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="2000"
|
||||
android:duration="1000"
|
||||
android:fromAlpha="1.0"
|
||||
android:interpolator="@android:anim/linear_interpolator"
|
||||
android:toAlpha="0.0" />
|
||||
|
||||
@@ -202,8 +202,6 @@ limitations under the License.
|
||||
<!-- stats unit -->
|
||||
<style name="StatsUnit" parent="@style/TextSmall">
|
||||
<item name="android:paddingLeft">4dp</item>
|
||||
<!-- Add paddingTop to support unit with superscript -->
|
||||
<item name="android:paddingTop">4dp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
<style name="Text">
|
||||
|
||||
@@ -23,9 +23,6 @@ import com.google.android.maps.mytracks.R;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.location.Location;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.style.SuperscriptSpan;
|
||||
import android.view.View;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.TextView;
|
||||
@@ -322,10 +319,8 @@ public class StatsUtils {
|
||||
private static void setCoordinateValue(
|
||||
Context context, View view, int labelId, double coordinate) {
|
||||
String value = Double.isNaN(coordinate) || Double.isInfinite(coordinate) ? null
|
||||
: Location.convert(coordinate, Location.FORMAT_DEGREES);
|
||||
SpannableStringBuilder unit = new SpannableStringBuilder(COORDINATE_DEGREE);
|
||||
unit.setSpan(new SuperscriptSpan(), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
setItem(context, view, labelId, value, unit);
|
||||
: Location.convert(coordinate, Location.FORMAT_DEGREES) + COORDINATE_DEGREE;
|
||||
setItem(context, view, labelId, value, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user