forked from organicmaps/organicmaps
[yota] Added coordinates to plashka.
This commit is contained in:
parent
779f479245
commit
962309e9dd
3 changed files with 9 additions and 3 deletions
|
@ -18,7 +18,9 @@
|
|||
android:layout_alignParentTop="true"
|
||||
android:background="@drawable/plashka_background"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal" >
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/poiText"
|
||||
|
@ -30,7 +32,7 @@
|
|||
android:gravity="left|center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textColor="#000"
|
||||
android:textSize="@dimen/eink_mid_text" />
|
||||
android:textSize="@dimen/eink_small_text" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/poiDist"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<dimen name="mid_text">24sp</dimen>
|
||||
<dimen name="eink_big_text">15sp</dimen>
|
||||
<dimen name="eink_mid_text">12sp</dimen>
|
||||
<dimen name="eink_small_text">10sp</dimen>
|
||||
<dimen name="dimen_1x">4dp</dimen>
|
||||
<dimen name="dimen_2x">8dp</dimen>
|
||||
<dimen name="dimen_3x">12dp</dimen>
|
||||
|
|
|
@ -620,7 +620,10 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
if (locState.hasPosition() && locState.isCentered())
|
||||
Yota.showLocation(getApplicationContext(), zoom);
|
||||
else
|
||||
Yota.showPoi(getApplicationContext(), latLon[0], latLon[1], zoom, "", locState.hasPosition());
|
||||
{
|
||||
final String coord = String.format(Locale.US, "%.4f, %.4f", latLon[0], latLon[1]);
|
||||
Yota.showPoi(getApplicationContext(), latLon[0], latLon[1], zoom, coord, locState.hasPosition());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue