nextcloud-talk-android/app/src/main/res/layout/controller_location.xml
Marcel Hibbe 2154b6cf94
improve design of share location button / location description
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2021-06-11 10:22:12 +02:00

99 lines
No EOL
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:id="@+id/parent_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<org.osmdroid.views.MapView android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<androidx.cardview.widget.CardView
android:id="@+id/ic_center_map"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_margin="5dp"
android:elevation="10dp"
app:cardCornerRadius="25dp"
app:cardBackgroundColor="@color/appbar">
<ImageView
android:id="@+id/roundedImageView"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/ic_baseline_gps_fixed_24"
android:layout_gravity="center"
/>
</androidx.cardview.widget.CardView>
<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"
android:src="@drawable/ic_baseline_location_on_red_24"
android:layout_centerHorizontal="true"
android:layout_marginBottom="0dp"
android:layout_above="@id/locationpicker_anchor"
android:contentDescription="@string/nc_location_current_position_description">
</ImageView>
</RelativeLayout>
<LinearLayout
android:id="@+id/share_location"
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:height="60dp"
android:minWidth="50dp"
android:padding="10dp"
android:textAlignment="textStart"
app:srcCompat="@drawable/ic_baseline_location_on_24">
</ImageView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_vertical">
<TextView
android:id="@+id/share_location_description"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:textSize="20sp"
tools:text="Share this location">
</TextView>
<TextView
android:id="@+id/place_name"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:ellipsize="end"
android:maxLines="1"
tools:text="Brandenburg, Germany">
</TextView>
</LinearLayout>
</LinearLayout>
</LinearLayout>