Newer
Older
mountainnavigation / app / src / main / res / layout / overlay_custom_bubble.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
	* This file is part of MountainNavigation.
	*
	* MountainNavigation 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.
	*
	* MountainNavigation 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 MountainNavigation. If not, see <http://www.gnu.org/licenses/>.
	*
	* Copyright (c) 2016 Vinzenz Rosenkanz <vinzenz.rosenkranz@gmail.com>
	*
	* Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:orientation="horizontal"
    android:padding="6dp"
    android:background="@color/bubble_bg">
    <ImageView
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:paddingRight="6dp"
        android:paddingEnd="6dp"
        android:layout_gravity="center_vertical"
        android:id="@id/bubble_image"/>
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical">
        <RelativeLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="start"
                android:textSize="18sp"
                android:textColor="@color/text_color"
                android:fontFamily="sans-serif-light"
                android:id="@+id/bubble_title"
                android:paddingRight="12dp"
                android:paddingEnd="12dp"/>
            <Button
                android:layout_width="16dp"
                android:layout_height="16dp"
                android:id="@+id/edit_poi_btn"
                android:layout_alignParentRight="true"
                android:layout_alignParentEnd="true"
                android:layout_centerVertical="true"
                android:background="@drawable/ic_map_editing_96"/>
        </RelativeLayout>
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="12sp"
            android:textColor="@color/text_color_light"
            android:fontFamily="sans-serif-light"
            android:id="@+id/bubble_description"/>
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="12sp"
            android:textColor="@color/text_color_light"
            android:fontFamily="sans-serif-light"
            android:id="@+id/bubble_subdescription"/>
    </LinearLayout>
</LinearLayout>