summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/v_location_button.xml
blob: 8aaf497807be131ba846c8362134dea1f0c38f33 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_gravity="center_vertical"
    android:layout_height="match_parent"
    android:padding="@dimen/stdpadding"
    android:background="@drawable/cust_button_light_rect"
    >

    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/world_icn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/text_location"
        android:layout_alignBottom="@+id/text_location"
        android:scaleType="fitCenter"
        android:src="@drawable/ic_web"
        android:layout_gravity="center"
        app:tint="@color/colorLocationButtonTint"
        />
    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/recommended_icn"
        android:scaleType="fitCenter"
        android:layout_marginRight="-13dp"
        android:layout_marginEnd="-13dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@id/text_location"
        android:layout_alignBottom="@+id/text_location"
        android:layout_toEndOf="@id/world_icn"
        android:layout_toRightOf="@id/world_icn"
        android:src="@drawable/ic_lightning_bolt"
        app:tint="@color/colorLocationButtonTint"

        android:visibility="gone"
        tools:visibility="visible"
        />
    <androidx.appcompat.widget.AppCompatTextView
        android:id="@+id/text_location"
        android:paddingStart="@dimen/stdpadding"
        android:paddingLeft="@dimen/stdpadding"
        android:paddingEnd="@dimen/stdpadding"
        android:paddingRight="@dimen/stdpadding"
        android:maxLines="1"
        android:ellipsize="end"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        app:autoSizeTextType="uniform"
        android:gravity="center_vertical"
        app:autoSizeMinTextSize="15sp"
        app:autoSizeMaxTextSize="24sp"
        android:layout_toEndOf="@id/recommended_icn"
        android:layout_toRightOf="@+id/recommended_icn"
        android:layout_toLeftOf="@+id/bridge_icn"
        android:layout_toStartOf="@+id/bridge_icn"
        android:layout_gravity="center_vertical"
        android:layout_centerInParent="true"
        android:textAppearance="@style/TextAppearance.AppCompat.Large"
        android:textStyle="bold"
        android:textColor="@color/white"
        tools:text="Seattle along message"
        />

    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/bridge_icn"

        android:paddingStart="@dimen/compact_padding"
        android:paddingLeft="@dimen/compact_padding"
        android:paddingRight="@dimen/compact_padding"
        android:paddingEnd="@dimen/compact_padding"
        android:scaleType="fitCenter"
        android:layout_width="48dp"
        android:layout_height="wrap_content"
        android:layout_alignTop="@id/text_location"
        android:layout_alignBottom="@+id/text_location"
        android:layout_toStartOf="@id/load_indicator"
        android:layout_toLeftOf="@id/load_indicator"
        android:src="@drawable/ic_bridge_36"
        android:visibility="gone"
        tools:visibility="visible"
        app:tint="@color/colorLocationButtonTint"
        />

    <se.leap.bitmaskclient.base.views.LocationIndicator
        android:id="@+id/load_indicator"
        android:layout_marginBottom="4dp"
        android:layout_width="48dp"
        android:layout_height="40dp"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:paddingTop="@dimen/stdpadding"
        android:paddingBottom="@dimen/stdpadding"
        android:visibility="visible"
        android:layout_gravity="center_vertical"
        app:tint="@color/colorLocationButtonTintTransparent"
        />



</RelativeLayout>