initial location service implementation, adds a map activity

This commit is contained in:
cyBerta
2019-03-06 12:16:52 +01:00
committed by B. Petersen
parent ea6144d963
commit b0534c44f6
12 changed files with 527 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.b44t.messenger.map.MapActivity">
<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</android.support.v7.widget.LinearLayoutCompat>
+8 -1
View File
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
>
<item android:title="@string/menu_view_profile"
android:id="@+id/menu_conversation_settings"/>
@@ -10,4 +12,9 @@
<item android:title="@string/menu_all_media"
android:id="@+id/menu_view_media" />
<item android:id="@+id/menu_show_map"
android:title="@string/menu_show_map"
android:icon="?menu_map_icon"
app:showAsAction="ifRoom" />
</menu>
+1
View File
@@ -112,6 +112,7 @@
<attr name="menu_lock_icon_small" format="reference" />
<attr name="menu_trash_icon" format="reference" />
<attr name="menu_group_icon" format="reference" />
<attr name="menu_map_icon" format="reference" />
<attr name="menu_accept_icon" format="reference" />
<attr name="menu_copy_icon" format="reference" />
<attr name="menu_info_icon" format="reference" />
+3
View File
@@ -111,6 +111,7 @@
<string name="menu_send">Send</string>
<string name="menu_toggle_keyboard">Toggle emoji keyboard</string>
<string name="menu_edit_group">Edit group</string>
<string name="menu_show_map">Show map</string>
<string name="menu_archive_chat">Archive chat</string>
<string name="menu_unarchive_chat">Unarchive chat</string>
<string name="menu_add_attachment">Add attachment</string>
@@ -606,6 +607,7 @@
<string name="menu.view.developer.open.log.folder">Open Log Folder</string>
<string name="menu.view.developer.open.current.log.file">Open Current Logfile</string>
<string name="user_location_permission_explanation">Delta Chat needs the location permission in order to show and share your location.</string>
<!-- deprecated on android, please remove if unused on desktop -->
<!-- see qrscan_ask_join_group -->
@@ -619,4 +621,5 @@
<!-- see qrshow_join_group_hint -->
<string name="qrshow_join_verified_group_hint">Scan this to join the group \"%1$s\".</string>
</resources>
+2
View File
@@ -186,6 +186,7 @@
<item name="menu_new_conversation_icon">@drawable/ic_add_white_24dp</item>
<item name="menu_group_icon">@drawable/ic_group_white_24dp</item>
<item name="menu_map_icon">@android:drawable/ic_dialog_map</item>
<item name="menu_search_icon">@drawable/ic_search_white_24dp</item>
<item name="menu_popup_expand">@drawable/ic_launch_white_24dp</item>
<item name="menu_unlock_icon">@drawable/ic_unlocked_white_24dp</item>
@@ -331,6 +332,7 @@
<item name="menu_new_conversation_icon">@drawable/ic_add_white_24dp</item>
<item name="menu_group_icon">@drawable/ic_group_white_24dp</item>
<item name="menu_map_icon">@android:drawable/ic_dialog_map</item>
<item name="menu_search_icon">@drawable/ic_search_white_24dp</item>
<item name="menu_popup_expand">@drawable/ic_launch_white_24dp</item>
<item name="menu_unlock_icon">@drawable/ic_unlocked_white_24dp</item>