vtm-app: revive / update with latest VTM, closes #90

This commit is contained in:
Emux
2016-07-21 20:22:22 +03:00
parent c67b35a277
commit 436b66be82
133 changed files with 10436 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:fromXDelta="-100%p"
android:toXDelta="0"
android:duration="150" />
</set>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:fromXDelta="0"
android:toXDelta="-100%p"
android:duration="150" />
</set>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:fromXDelta="100%p"
android:toXDelta="0"
android:duration="150" />
</set>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:fromXDelta="0"
android:toXDelta="100%p"
android:duration="150" />
</set>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/delete_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/delete" android:state_focused="true" />
<item android:drawable="@drawable/delete" />
</selector>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/moreinfo_arrow_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/moreinfo_arrow" android:state_focused="true" />
<item android:drawable="@drawable/moreinfo_arrow" />
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/filePickerView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fadingEdge="vertical"
android:fadingEdgeLength="30dip"
android:columnWidth="100dip"
android:numColumns="auto_fit" />

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:windowActionBarOverlay="true">
<org.oscim.android.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<RelativeLayout
android:id="@+id/route_bar"
android:layout_width="fill_parent"
android:layout_height="25dip"
android:background="#dd000000"
android:orientation="horizontal">
<ImageView
android:id="@+id/route_bar_distance_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/plane" />
<TextView
android:id="@+id/route_bar_distance"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/route_bar_distance_icon"
android:gravity="center"
android:textColor="#fff"
android:textSize="14sp" />
<ImageView
android:id="@+id/route_bar_route_length_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/route_bar_distance"
android:src="@drawable/car" />
<TextView
android:id="@+id/route_bar_route_length"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/route_bar_route_length_icon"
android:gravity="center"
android:textColor="#fff"
android:textSize="14sp" />
<ImageView
android:id="@+id/route_bar_travel_time_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/route_bar_route_length"
android:src="@drawable/time" />
<TextView
android:id="@+id/route_bar_travel_time"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/route_bar_travel_time_icon"
android:gravity="center"
android:textColor="#fff"
android:textSize="14sp" />
<ImageView
android:id="@+id/route_bar_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:clickable="true"
android:src="@drawable/no" />
</RelativeLayout>
<ToggleButton
android:id="@+id/snapToLocationView"
android:layout_width="57dp"
android:layout_height="72dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="10dip"
android:layout_marginRight="10dip"
android:textOff=""
android:textOn=""
android:visibility="gone" />
<TextView
android:id="@+id/mapInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="70dip"
android:layout_marginTop="25dip"
android:background="@drawable/info_window"
android:clickable="true"
android:ellipsize="end"
android:maxEms="17"
android:onClick="onClick"
android:textColor="#404040"
android:visibility="invisible" />
<!-- android:background="@drawable/snap_to_position" -->
<!--
<ImageView
android:id="@+id/imageView1"
android:layout_width="64px"
android:layout_height="64px"
android:layout_alignParentLeft="true"
android:layout_alignTop="@+id/mapInfo"
android:src="@drawable/compass_bg" />
-->
<ImageView
android:id="@+id/compass"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignBottom="@+id/mapInfo"
android:layout_alignParentLeft="true"
android:layout_marginLeft="24dp"
android:onClick="toggleLocation"
android:src="@drawable/compass" />
</RelativeLayout>

View File

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="@drawable/bonuspack_bubble"
android:orientation="horizontal">
<ImageView
android:id="@+id/bubble_image"
android:layout_width="48dp"
android:layout_height="48dp"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:scaleType="center"
android:visibility="gone" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:orientation="vertical"
android:paddingLeft="5dp">
<TextView
android:id="@+id/bubble_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:ellipsize="end"
android:maxEms="17"
android:textColor="#404040" />
<TextView
android:id="@+id/bubble_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="17"
android:textColor="#404040"
android:textSize="12dp" />
<TextView
android:id="@+id/bubble_subdescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="17"
android:textColor="#404040"
android:textSize="10dp"
android:visibility="gone" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="5dp">
<Button
android:id="@+id/bubble_moreinfo"
android:layout_width="24dp"
android:layout_height="24dp"
android:background="@drawable/btn_moreinfo"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="20dip">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/latitude"
android:textStyle="bold"
android:textColor="#FFF" />
<EditText
android:id="@+id/latitude"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="9"
android:inputType="numberSigned|numberDecimal" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/longitude"
android:textStyle="bold"
android:textColor="#FFF" />
<EditText
android:id="@+id/longitude"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="9"
android:inputType="numberSigned|numberDecimal" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/zoomLevel"
android:textStyle="bold"
android:textColor="#FFF" />
<SeekBar
android:id="@+id/zoomLevel"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/zoomlevelValue"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textStyle="bold"
android:gravity="center_horizontal" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="20dip">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_name"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_size"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewSize"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_version"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewVersion"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_debug"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewDebug"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_date"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewDate"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_area"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewArea"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_start_position"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewStartPosition"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_start_zoom_level"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewStartZoomLevel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_language_preference"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewLanguagePreference"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_comment"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewComment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/info_map_file_created_by"
android:textStyle="bold"
android:textColor="#FFF" />
<TextView
android:id="@+id/infoMapFileViewCreatedBy"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dip" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/thumbnail"
android:layout_width="65dp"
android:layout_height="65dp"
android:scaleType="center"
android:src="@drawable/ic_continue" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="instructions"
android:textColor="#000000" />
<TextView
android:id="@+id/details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="distance/duration"
android:textColor="#555555" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#55000000"
android:orientation="vertical">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|clip_vertical"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:background="#FFFFFF"
android:orientation="vertical"
android:padding="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView
android:id="@+id/poiTag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:completionThreshold="1"
android:ems="10" />
<!-- <Button
android:id="@+id/buttonSetPOITag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search" /> -->
</LinearLayout>
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="40dp"
android:orientation="horizontal">
<Button
android:id="@+id/pois_btn_nominatim"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Places" />
<Button
android:id="@+id/pois_btn_wikipedia"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Wikipedia" />
<Button
android:id="@+id/pois_btn_flickr"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Flickr" />
<Button
android:id="@+id/pois_btn_foursquare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Foursquare" />
</LinearLayout>
</HorizontalScrollView>
<ListView
android:id="@+id/items"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/bonuspack_bubble">
<ImageView
android:id="@+id/bubble_image"
android:layout_width="65dp"
android:layout_height="65dp"
android:paddingLeft="5dp"
android:visibility="gone" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/bubble_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#404040"
android:maxEms="17"
android:text="Title" />
</LinearLayout>
<TextView
android:id="@+id/bubble_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#404040"
android:textSize="12dp"
android:maxEms="17"
android:text="Description" />
<TextView
android:id="@+id/bubble_subdescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#404040"
android:textSize="10dp"
android:maxEms="17"
android:text="Address"
android:visibility="gone" />
</LinearLayout>
<Button
android:id="@+id/bubble_delete"
android:background="@drawable/btn_delete"
android:visibility="visible"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_gravity="right" />
</LinearLayout>

View File

@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/widget_frame"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="15dp"
android:paddingTop="5dp"
android:paddingRight="10dp"
android:paddingBottom="5dp">
<TextView
android:id="@android:id/title"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="22dp"
android:typeface="sans"
android:textStyle="normal"
android:textColor="#ffffff"></TextView>
<TextView
android:id="@android:id/summary"
android:layout_alignParentLeft="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@android:id/title"></TextView>
<TextView
android:id="@+id/seekBarPrefUnitsRight"
android:layout_alignParentRight="true"
android:layout_below="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView
android:id="@+id/seekBarPrefValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/seekBarPrefUnitsRight"
android:layout_below="@android:id/title"
android:gravity="right"></TextView>
<TextView
android:id="@+id/seekBarPrefUnitsLeft"
android:layout_below="@android:id/title"
android:layout_toLeftOf="@id/seekBarPrefValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<LinearLayout
android:id="@+id/seekBarPrefBarContainer"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@android:id/summary"></LinearLayout>
</RelativeLayout>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_poi_nearby"
android:title="@string/menu_find" />
<item
android:id="@+id/menu_route_departure"
android:title="Set Departure" />
<item
android:id="@+id/menu_route_destination"
android:title="Set Destination" />
<item
android:id="@+id/menu_route_viapoint"
android:title="Add Via-Point" />
<item
android:id="@+id/menu_route_clear"
android:title="Clear Route" />
<item
android:id="@+id/menu_poi_clear"
android:title="Clear POIs" />
</menu>

View File

@@ -0,0 +1,106 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_position"
android:icon="@drawable/ic_menu_mylocation"
android:showAsAction="always"
android:title="@string/menu_position">
<menu>
<item
android:id="@+id/menu_poi_nearby"
android:title="@string/menu_find" />
<item
android:id="@+id/menu_position_my_location_enable"
android:checkable="true"
android:title="@string/menu_position_my_location_enable" />
<item
android:id="@+id/menu_position_follow_location"
android:checkable="true"
android:title="@string/menu_position_follow_location" />
<item
android:id="@+id/menu_compass_2d"
android:checkable="true"
android:title="@string/menu_compass_2d" />
<item
android:id="@+id/menu_compass_3d"
android:checkable="true"
android:title="@string/menu_compass_3d" />
<!--
<item
android:id="@+id/menu_compass_enable"
android:checkable="true"
android:title="@string/menu_compass_enable"/>
-->
<item
android:id="@+id/menu_position_enter_coordinates"
android:title="@string/menu_position_enter_coordinates" />
<!--
<item
android:id="@+id/menu_position_last_known"
android:title="@string/menu_position_last_known"/>
-->
<item
android:id="@+id/menu_position_map_center"
android:title="@string/menu_position_map_file_center" />
</menu>
</item>
<!--
<item
android:id="@+id/menu_options"
android:icon="@drawable/ic_menu_options"
android:showAsAction="always"
android:title="@string/menu_options">
<menu>
-->
<!-- android:icon="@drawable/ic_menu_preferences" -->
<item
android:id="@+id/menu_preferences"
android:icon="@drawable/ic_menu_options"
android:showAsAction="never"
android:title="@string/menu_settings" />
<!-- android:icon="@drawable/ic_menu_mapmode" -->
<!-- android:icon="@drawable/ic_menu_archive" -->
<!--
<item
android:id="@+id/menu_mapfile"
android:showAsAction="never"
android:title="@string/menu_mapfile"/>
-->
<!--
<item
android:id="@+id/menu_info_map_file"
android:title="@string/menu_info_map_file"/>
-->
<!--
</menu>
</item>
-->
<item
android:id="@+id/menu_info_about"
android:icon="@drawable/info"
android:title="@string/menu_info_about" />
<item
android:id="@+id/menu_layers"
android:icon="@drawable/ic_layers"
android:title="@string/menu_layers">
<menu>
<item
android:id="@+id/menu_layer_naturalearth"
android:checkable="true"
android:title="@string/menu_layer_naturalearth" />
<item
android:id="@+id/menu_layer_openstreetmap"
android:checkable="true"
android:title="@string/menu_layer_openstreetmap" />
<item
android:id="@+id/menu_layer_grid"
android:checkable="true"
android:title="@string/menu_layer_grid" />
</menu>
</item>
</menu>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/menu_link"
android:title="Open URL" />
<item
android:id="@+id/menu_none"
android:title="Cancel" />
</menu>

View File

@@ -0,0 +1,5 @@
<resources>
<style name="AppTheme" parent="android:Theme.Holo.Light" />
</resources>

View File

@@ -0,0 +1,5 @@
<resources>
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
</resources>

View File

@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- OSM tags relevant for a Nominatim search by feature -->
<!-- See http://wiki.openstreetmap.org/wiki/Map_Features -->
<!-- in comment, those with 0 match for Paris area on 16/07/2012 -->
<string-array name="poi_tags">
<!-- Aeroway -->
<!-- <item>aerodrome</item> -->
<!-- Amenity -->
<item>bar</item>
<item>cafe</item>
<!-- <item>fast_food</item> -->
<item>pub</item>
<item>restaurant</item>
<item>library</item>
<item>school</item>
<item>university</item>
<!-- <item>bicycle_parking</item> -->
<item>bus_station</item>
<!-- <item>car_rental</item> -->
<item>car_sharing</item>
<item>car_wash</item>
<!-- <item>ev_charging</item> -->
<item>fuel</item>
<item>parking</item>
<item>taxi</item>
<item>atm</item>
<item>bank</item>
<item>dentist</item>
<item>hospital</item>
<item>pharmacy</item>
<!-- <item>veterinary</item> -->
<item>cinema</item>
<!-- <item>nightclub</item> -->
<item>theatre</item>
<!-- <item>fire_station</item> -->
<item>marketplace</item>
<item>police</item>
<!-- <item>post_box</item> -->
<!-- <item>post_office</item> -->
<!-- <item>recycling</item> -->
<!-- <item>sauna</item> -->
<item>telephone</item>
<item>toilets</item>
<!-- Building -->
<item>hotel</item>
<item>church</item>
<!-- <item>train_station</item> => station prefered -->
<!-- Craft -->
<!-- Emergency -->
<!-- <item>ambulance_station</item> -->
<!-- <item>phone</item> -->
<!-- Highway -->
<!-- <item>speed_camera</item> -->
<!-- Historic -->
<item>castle</item>
<item>monument</item>
<!-- Land use -->
<item>cemetery</item>
<!-- Leisure -->
<!-- <item>dance</item> -->
<!-- <item>golf_course</item> -->
<item>park</item>
<item>stadium</item>
<!-- <item>swimming_pool</item> -->
<!-- Natural -->
<item>beach</item>
<!-- Public Transport -->
<item>station</item>
<!-- Shop -->
<item>bakery</item>
<item>butcher</item>
<!-- <item>car_repair</item> -->
<!-- <item>clothes</item> -->
<!-- <item>convenience</item> -->
<item>florist</item>
<item>hairdresser</item>
<!-- <item>jewelry</item> -->
<item>kiosk</item>
<item>laundry</item>
<item>mall</item>
<item>optician</item>
<!-- <item>shoes</item> -->
<item>supermarket</item>
<!-- Sport -->
<!-- <item>golf</item> -->
<!-- <item>horse_racing</item> -->
<!-- <item>judo</item> -->
<!-- <item>karting</item> -->
<!-- <item>tennis</item> -->
<!-- Tourism -->
<item>information</item>
<item>museum</item>
<item>viewpoint</item>
<item>zoo</item>
<!-- Non-Nominatim tags, for other services: -->
<item>wikipedia</item>
<item>flickr</item>
<item>picasa</item>
<item>foursquare</item>
</string-array>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="route_lookup_error">Route search failed</string>
</resources>

View File

@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_database_keys">
<item>OPENSCIENCEMAP1</item>
<item>OPENSCIENCEMAP2</item>
<item>OPENSCIENCEMAP4</item>
<item>MAPNIK_VECTOR</item>
<item>MAPSFORGE</item>
<!-- <item>POSTGIS_READER</item> -->
</string-array>
<string-array name="preferences_map_generator_values">
<item>OpenScienceMap1</item>
<item>OpenScienceMap2</item>
<item>OpenScienceMap4</item>
<item>Mapnik-Vector</item>
<item>Mapsforge File</item>
<!-- <item>PostGIS</item> -->
</string-array>
<string name="preferences_map_database_default">OSCIMAP_READER</string>
<string-array name="preferences_map_theme_keys">
<item>DEFAULT</item>
<item>TRONRENDER</item>
<item>OSMARENDER</item>
<!-- <item>MAPNIK</item> -->
</string-array>
<string-array name="preferences_map_theme_values">
<item>Default</item>
<item>Tubes</item>
<item>Osmarender</item>
<!-- <item>Mapnik</item> -->
</string-array>
<string name="preferences_map_theme_default">OSMARENDER</string>
<string name="preferences_debug">Debug settings</string>
<string name="preferences_theme_title">Theme settings</string>
<string name="preferences_theme">Theme</string>
<string name="preferences_theme_summary">Change the theme of the map</string>
<string name="preferences_about">About</string>
<string name="preferences_about_summary">Show us!</string>
<string name="preferences_general">General settings</string>
<string name="preferences_cache_persistence">Cache persistence</string>
<string name="preferences_cache_persistence_desc">Keep cached images on exit</string>
<string name="preferences_cache_size">External storage</string>
<string name="preferences_cache_size_desc">Adjust the size of the cache</string>
<string name="preferences_cache_size_value">%.1f MB</string>
<string name="preferences_fullscreen">Full screen mode</string>
<string name="preferences_fullscreen_desc">Hide the status bar</string>
<string name="preferences_fix_orientation">Fix screen orientation</string>
<string name="preferences_fix_orientation_desc">Fix screen orientation</string>
<string name="preferences_map">Map settings</string>
<string name="preferences_map_view_mode">Map source</string>
<string name="preferences_map_view_mode_desc">Select map data source</string>
<string name="preferences_move_speed">Move speed</string>
<string name="preferences_move_speed_desc">Adjust the move speed of the map</string>
<string name="preferences_move_speed_value">%d %% move speed</string>
<string name="preferences_scale_bar_unit">Scale bar unit</string>
<string name="preferences_scale_bar_unit_desc">Select the unit for the map scale bar</string>
<string name="preferences_show_fps_counter">Frame rate</string>
<string name="preferences_show_fps_counter_desc">Enable frames per second counter</string>
<string name="preferences_show_scale_bar">Map scale bar</string>
<string name="preferences_show_scale_bar_desc">Show the scale of the map</string>
<string name="preferences_show_tile_coordinates">Tile coordinates</string>
<string name="preferences_show_tile_coordinates_desc">Show coordinates on tiles</string>
<string name="preferences_show_unmatched_ways">Draw unmatched ways</string>
<string name="preferences_show_tile_frames">Tile boundaries</string>
<string name="preferences_show_tile_frames_desc">Draw tile boundaries</string>
<string name="preferences_disable_polygons">Disable Polygon rendering</string>
<string name="preferences_debug_labels">Debug Labels</string>
<string name="preferences_show_water_tiles_desc">Highlight tiles which have the water flag set</string>
<string name="preferences_text_scale">Font size</string>
<string name="preferences_text_scale_desc">Select the text size of map labels</string>
<string name="preferences_wake_lock">Stay awake</string>
<string name="preferences_wake_lock_desc">Stop the screen from dimming</string>
<!--
<string-array name="view_sections">
<item>Map</item>
<item>Routes</item>
<item>Overlays</item>
<item>etc</item>
</string-array>
<string-array name="preferences_scale_bar_unit_keys">
<item>imperial</item>
<item>metric</item>
</string-array>
<string-array name="preferences_scale_bar_unit_values">
<item>Imperial</item>
<item>Metric</item>
</string-array>
<string name="preferences_scale_bar_unit_default">metric</string>
<string-array name="preferences_text_scale_keys">
<item>0.7</item>
<item>0.85</item>
<item>1.0</item>
<item>1.3</item>
<item>1.6</item>
</string-array>
<string-array name="preferences_text_scale_values">
<item>tiny</item>
<item>small</item>
<item>normal</item>
<item>large</item>
<item>huge</item>
</string-array>
<string name="preferences_text_scale_default">1.0</string>
-->
</resources>

68
vtm-app/res/values/strings.xml Executable file
View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="application_name">OpenScienceMap</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<string name="error">Error</string>
<string name="error_last_location_unknown">The last location is unknown</string>
<string name="file_invalid">The selected file is invalid.</string>
<string name="file_select">Please select a file.</string>
<string name="file_size_byte">byte</string>
<string name="file_size_bytes">bytes</string>
<string name="file_size_kb">kB</string>
<string name="file_size_mb">MB</string>
<string name="file_size_gb">GB</string>
<string name="go_to_position">Go to position</string>
<string name="info_map_file_area">Area</string>
<string name="info_map_file_comment">Comment</string>
<string name="info_map_file_created_by">Created by</string>
<string name="info_map_file_date">Date</string>
<string name="info_map_file_debug">Debug information</string>
<string name="info_map_file_debug_no">not included</string>
<string name="info_map_file_debug_yes">included</string>
<string name="info_map_file_language_preference">Language preference</string>
<string name="info_map_file_name">File</string>
<string name="info_map_file_size">File size</string>
<string name="info_map_file_start_position">Start position</string>
<string name="info_map_file_start_zoom_level">Start zoom level</string>
<string name="info_map_file_version">Version</string>
<string name="latitude">Latitude</string>
<string name="longitude">Longitude</string>
<string name="menu_info">Info</string>
<string name="menu_settings">Settings</string>
<string name="menu_layers">Layers</string>
<string name="menu_layer_grid">Grid</string>
<string name="menu_layer_naturalearth">Natural Earth</string>
<string name="menu_layer_openstreetmap">OpenStreetMap</string>
<string name="menu_info_map_file">Map file properties</string>
<string name="menu_find">Find</string>
<string name="menu_info_about">About</string>
<string name="menu_mapfile">Map file</string>
<string name="menu_position">Position</string>
<string name="menu_compass_enable">Compass</string>
<string name="menu_position_enter_coordinates">Enter coordinates</string>
<string name="menu_position_last_known">Last known location</string>
<string name="menu_position_map_file_center">Map file center</string>
<string name="menu_position_my_location_enable">Show my location</string>
<string name="menu_position_follow_location">Follow my location</string>
<string name="menu_compass">Compass</string>
<string name="menu_compass_2d">Compass 2D</string>
<string name="menu_compass_3d">Compass 3D</string>
<string name="menu_compass_off">Compass Off</string>
<string name="menu_preferences">Preferences</string>
<string name="menu_render_theme">Theme</string>
<string name="no_location_provider_available">No location source available</string>
<string name="snap_to_location_enabled">Snap to position is activated</string>
<string name="snap_to_location_disabled">Snap to position is disabled</string>
<string name="unit_symbol_kilometer">&#160;km</string>
<string name="unit_symbol_meter">&#160;m</string>
<string name="zoomLevel">Zoom level</string>
<string name="menu_options">Options</string>
<string name="menu_pois">Bars nearby</string>
<string name="menu_poi_list">List POIs</string>
<string name="departure">Departure</string>
<string name="destination">Destination</string>
<string name="viapoint">Via-Point</string>
</resources>

View File

@@ -0,0 +1,5 @@
<resources>
<style name="AppTheme" parent="android:Theme.Light" />
</resources>

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:oscim_app="http://app.oscim.org"
android:title="@string/menu_preferences">
<!-- <PreferenceCategory android:title="@string/preferences_map" > -->
<!--
<CheckBoxPreference
android:key="showScaleBar"
android:summary="@string/preferences_show_scale_bar_desc"
android:title="@string/preferences_show_scale_bar" />
<ListPreference
android:defaultValue="@string/preferences_scale_bar_unit_default"
android:dependency="showScaleBar"
android:entries="@array/preferences_scale_bar_unit_values"
android:entryValues="@array/preferences_scale_bar_unit_keys"
android:key="scaleBarUnit"
android:summary="@string/preferences_scale_bar_unit_desc"
android:title="@string/preferences_scale_bar_unit" />
-->
<ListPreference
android:defaultValue="@string/preferences_map_database_default"
android:entries="@array/preferences_map_generator_values"
android:entryValues="@array/preferences_map_database_keys"
android:key="mapDatabase"
android:summary="@string/preferences_map_view_mode_desc"
android:title="@string/preferences_map_view_mode" />
<!--
<ListPreference
android:defaultValue="@string/preferences_text_scale_default"
android:entries="@array/preferences_text_scale_values"
android:entryValues="@array/preferences_text_scale_keys"
android:key="textScale"
android:summary="@string/preferences_text_scale_desc"
android:title="@string/preferences_text_scale" />
-->
<!-- </PreferenceCategory> -->
<PreferenceCategory android:title="@string/preferences_theme_title">
<ListPreference
android:defaultValue="@string/preferences_map_theme_default"
android:entries="@array/preferences_map_theme_values"
android:entryValues="@array/preferences_map_theme_keys"
android:key="theme"
android:summary="@string/preferences_theme_summary"
android:title="@string/preferences_theme" />
</PreferenceCategory>
<PreferenceCategory android:title="User Interface">
<CheckBoxPreference
android:title="Distance Touch"
android:summary="Show Route between two Points"
android:key="distanceTouch" />
</PreferenceCategory>
<PreferenceCategory android:title="Cache">
<org.oscim.app.preferences.CacheSizePreference
android:defaultValue="30"
android:key="cacheSize"
android:max="50"
android:summary="Set tile cache size"
android:title="Cache Size"
oscim_app:min="1"
oscim_app:unitsLeft=""
oscim_app:unitsRight="MB" />
<!-- http://stackoverflow.com/questions/5298370/how-to-add-a-button-to-a-preferencescreen-android?rq=1 -->
<Preference
android:key="clear_cache"
android:summary="Delete all cached tiles"
android:title="Clear Cache" />
</PreferenceCategory>
<!--
<PreferenceCategory android:title="@string/preferences_general" >
<CheckBoxPreference
android:key="fullscreen"
android:summary="@string/preferences_fullscreen_desc"
android:title="@string/preferences_fullscreen" />
<CheckBoxPreference
android:key="fixOrientation"
android:summary="@string/preferences_fix_orientation"
android:title="@string/preferences_fix_orientation_desc" />
<CheckBoxPreference
android:key="wakeLock"
android:summary="@string/preferences_wake_lock_desc"
android:title="@string/preferences_wake_lock" />
<CheckBoxPreference android:title="@string/preferences_cache_persistence" android:summary="@string/preferences_cache_persistence_desc"
android:key="cachePersistence" />
<de.sfb.pampa.preferences.CacheSizePreference
android:title="@string/preferences_cache_size" android:summary="@string/preferences_cache_size_desc" android:key="cacheSize" />
<de.sfb.pampa.preferences.MoveSpeedPreference
android:title="@string/preferences_move_speed" android:summary="@string/preferences_move_speed_desc" android:key="moveSpeed" />
</PreferenceCategory>
-->
<!--
<PreferenceCategory android:title="@string/preferences_debug" >
<CheckBoxPreference android:title="@string/preferences_show_fps_counter" android:summary="@string/preferences_show_fps_counter_desc"
android:key="showFpsCounter" />
<CheckBoxPreference
android:key="drawTileFrames"
android:summary="@string/preferences_show_tile_frames_desc"
android:title="@string/preferences_show_tile_frames" />
<CheckBoxPreference
android:key="drawUnmatchedWays"
android:summary="@string/preferences_show_unmatched_ways"
android:title="@string/preferences_show_unmatched_ways" />
<CheckBoxPreference
android:key="disablePolygons"
android:summary="@string/preferences_disable_polygons"
android:title="@string/preferences_disable_polygons" />
<CheckBoxPreference
android:key="debugLabels"
android:summary="@string/preferences_debug_labels"
android:title="@string/preferences_debug_labels" />
</PreferenceCategory>
-->
</PreferenceScreen>