mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
initial location service implementation, adds a map activity
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user