summaryrefslogtreecommitdiff
path: root/android/java/MapboxGLAndroidSDK/src/main/res/layout/infowindow_content.xml
blob: 496766ea77571901dd4dafcd567c0cb2e5887b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">

    <LinearLayout
        android:id="@+id/infowindow_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:orientation="vertical"
        android:padding="5dp">

        <TextView
            android:id="@+id/infowindow_title"
            android:layout_width="wrap_content"
            android:layout_height="0dp"
            android:layout_gravity="left"
            android:layout_weight="1"
            android:maxEms="17"
            android:text="@string/infoWindowTitle"
            android:textColor="@color/black"
            android:textSize="18sp" />

        <TextView
            android:id="@+id/infowindow_description"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxEms="17"
            android:text="@string/infoWindowDescription"
            android:textColor="@color/black"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/infowindow_subdescription"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxEms="17"
            android:text="@string/infoWindowAddress"
            android:textColor="@color/black"
            android:textSize="12sp"
            android:visibility="gone" />
    </LinearLayout>

    <com.mapbox.mapboxsdk.annotations.InfoWindowTipView
        android:id="@+id/infowindow_tipview"
        android:layout_width="@dimen/infowindow_tipview_width"
        android:layout_height="8dp"
        android:layout_below="@+id/infowindow_content" />

</merge>