2021-05-20 16:51:19 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-09 11:21:11 +03:00
|
|
|
<!--
|
|
|
|
~ Nextcloud Talk application
|
|
|
|
~
|
|
|
|
~ @author Marcel Hibbe
|
2021-06-10 01:29:03 +03:00
|
|
|
~ @author Andy Scherzinger
|
|
|
|
~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
2021-06-09 11:21:11 +03:00
|
|
|
~ Copyright (C) 2021 Marcel Hibbe <dev@mhibbe.de>
|
|
|
|
~
|
|
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
|
|
~ it under the terms of the GNU General Public License as published by
|
|
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
|
|
~ at your option) any later version.
|
|
|
|
~
|
|
|
|
~ This program is distributed in the hope that it will be useful,
|
|
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
~ GNU General Public License for more details.
|
|
|
|
~
|
|
|
|
~ You should have received a copy of the GNU General Public License
|
|
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2021-05-20 16:51:19 +03:00
|
|
|
|
2021-05-22 01:16:13 +03:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-05-31 20:12:51 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-06-08 13:01:31 +03:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-05-20 16:51:19 +03:00
|
|
|
android:id="@+id/parent_container"
|
|
|
|
android:layout_width="match_parent"
|
2021-05-22 01:16:13 +03:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
2021-06-10 01:29:03 +03:00
|
|
|
<org.osmdroid.views.MapView
|
|
|
|
android:id="@+id/map"
|
2021-05-22 01:16:13 +03:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent" />
|
|
|
|
|
2021-06-10 01:29:03 +03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/centerMapButton"
|
|
|
|
style="@style/Widget.AppTheme.Button.IconButton"
|
2021-05-31 20:12:51 +03:00
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:insetRight="0dp"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
android:padding="0dp"
|
|
|
|
app:backgroundTint="@color/bg_default_semitransparent"
|
|
|
|
app:cornerRadius="@dimen/button_corner_radius"
|
|
|
|
app:elevation="0dp"
|
|
|
|
app:icon="@drawable/ic_baseline_gps_fixed_24"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
app:iconSize="24dp"
|
|
|
|
app:iconTint="@color/high_emphasis_text" />
|
2021-05-22 01:16:13 +03:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/locationpicker_anchor"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_centerInParent="true" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="50dp"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:layout_above="@id/locationpicker_anchor"
|
2021-05-22 01:16:13 +03:00
|
|
|
android:layout_centerHorizontal="true"
|
2021-06-08 18:59:01 +03:00
|
|
|
android:layout_marginBottom="-10dp"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:contentDescription="@string/nc_location_current_position_description"
|
|
|
|
android:src="@drawable/ic_baseline_location_on_red_24" />
|
2021-05-22 01:16:13 +03:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-05-31 20:12:51 +03:00
|
|
|
android:id="@+id/share_location"
|
2021-05-22 01:16:13 +03:00
|
|
|
android:layout_width="match_parent"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:layout_height="72dp"
|
2021-05-31 20:12:51 +03:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
2021-06-10 01:29:03 +03:00
|
|
|
android:id="@+id/roundedImageView"
|
|
|
|
android:layout_width="@dimen/avatar_size"
|
|
|
|
android:layout_height="@dimen/avatar_size"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:layout_margin="@dimen/standard_margin"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:src="@drawable/ic_circular_location" />
|
|
|
|
|
2021-05-31 20:12:51 +03:00
|
|
|
<LinearLayout
|
2021-06-08 13:01:31 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2021-05-31 20:12:51 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/share_location_description"
|
|
|
|
android:layout_width="match_parent"
|
2021-06-08 13:01:31 +03:00
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
2021-07-16 12:17:39 +03:00
|
|
|
android:textAlignment="viewStart"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:textColor="@color/high_emphasis_text"
|
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="Share this location" />
|
|
|
|
|
2021-05-31 20:12:51 +03:00
|
|
|
<TextView
|
2021-06-07 01:41:08 +03:00
|
|
|
android:id="@+id/place_name"
|
2021-05-31 20:12:51 +03:00
|
|
|
android:layout_width="match_parent"
|
2021-06-08 13:01:31 +03:00
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-07-16 12:17:39 +03:00
|
|
|
android:textAlignment="viewStart"
|
2021-06-10 01:29:03 +03:00
|
|
|
android:textColor="@color/medium_emphasis_text"
|
|
|
|
android:textSize="14sp"
|
|
|
|
tools:text="Brandenburg, Germany" />
|
2021-05-31 20:12:51 +03:00
|
|
|
</LinearLayout>
|
2021-05-22 01:16:13 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2021-06-10 01:29:03 +03:00
|
|
|
</LinearLayout>
|