Skip to content

Commit abeccc5

Browse files
Notes upload UI text added
1 parent c184fea commit abeccc5

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:layout_width="match_parent"
3+
android:layout_height="match_parent"
4+
android:fillViewport="true"
5+
android:padding="16dp">
6+
7+
<LinearLayout
8+
android:orientation="vertical"
9+
android:layout_width="match_parent"
10+
android:layout_height="wrap_content"
11+
android:gravity="center">
12+
13+
<!-- Note Name Label -->
14+
<TextView
15+
android:id="@+id/osm_note_upload_tv_name"
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content"
18+
android:textAppearance="?android:attr/textAppearanceMedium"
19+
android:text="@string/osm_note_label" />
20+
21+
<!-- Note text content-->
22+
<TextView
23+
android:id="@+id/wplist_item_name"
24+
android:layout_width="wrap_content"
25+
android:layout_height="wrap_content"
26+
android:text="{name}"
27+
android:textColor="@android:color/holo_green_light"
28+
android:textAppearance="?android:attr/textAppearanceLarge" />
29+
30+
<!-- Buttons Row -->
31+
<LinearLayout
32+
android:orientation="horizontal"
33+
android:layout_width="match_parent"
34+
android:layout_height="wrap_content"
35+
android:gravity="center"
36+
android:layout_marginTop="8dp">
37+
<Button
38+
android:id="@+id/osm_note_upload_button_ok"
39+
android:layout_width="0dp"
40+
android:layout_height="wrap_content"
41+
android:layout_weight="1"
42+
android:text="@string/osm_note_upload_ok" />
43+
44+
<Button
45+
android:id="@+id/osm_note_upload_button_cancel"
46+
android:layout_width="0dp"
47+
android:layout_height="wrap_content"
48+
android:layout_marginEnd="8dp"
49+
android:layout_weight="1"
50+
android:text="@string/osm_note_upload_cancel" />
51+
52+
53+
</LinearLayout>
54+
55+
56+
</LinearLayout>
57+
</ScrollView>

app/src/main/res/values/strings.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<string name="wplist_accuracy">Accur: </string>
2828
<string name="wplist_compass">Comp. head.:</string>
2929
<string name="wplist_compass_accuracy">Comp. accur.:</string>
30+
<string name="wplist_contextmenu_osm_note_upload">Upload as OSM note</string>
3031

3132
<!-- Track Manager -->
3233
<string name="trackmgr">Track manager</string>
@@ -89,6 +90,13 @@
8990
<string name="osm_upload_unauthorized">Authorization error. Would you like to clear the saved OpenStreetMap credentials?</string>
9091
<string name="osm_upload_sucess">OpenStreetMap upload succeeded</string>
9192

93+
<!-- OSM Notes Upload -->
94+
<string name="osm_note_upload">OpenStreetMap notes upload</string>
95+
<string name="osm_note_upload_error">Error while uploading note</string>
96+
<string name="osm_note_label">Note text</string>
97+
<string name="osm_note_upload_ok">Upload</string>
98+
<string name="osm_note_upload_cancel">Cancel</string>
99+
92100
<!-- GPS Status & record bar -->
93101
<string name="gpsstatus_record_voicerec">Voice record</string>
94102
<string name="gpsstatus_record_stillimage">Take photo</string>
@@ -276,6 +284,6 @@
276284
<!-- Intro - slide2 -->
277285
<string name="app_intro_slide2_title">Happy tracking 🗺 😎</string>
278286
<string name="app_intro_slide2_description">OSMTracker for Android will use your GPS location to record trackpoints and waypoints, even when the App is running in background.
279-
\nYour data is not used to support ads.</string>
287+
\nYour data is not used to support ads.</string>
280288
<string name="no_app_to_handle_file_type">No application was found to open this file.</string>
281289
</resources>

0 commit comments

Comments
 (0)