display info bubble
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_bg_gps.jpg
Normal file
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_bg_gps.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_speed.png
Normal file
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_speed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_street.png
Normal file
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_street.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_time.png
Normal file
BIN
libSafeMobile/src/main/res/drawable-xhdpi/l_time.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
140
libSafeMobile/src/main/res/layout/map_marker_info_bubble.xml
Normal file
140
libSafeMobile/src/main/res/layout/map_marker_info_bubble.xml
Normal file
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
Copyright (C) 2012 The Android Open Source Project
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:background="@drawable/custom_info_bubble"
|
||||
android:paddingLeft="7dp"
|
||||
android:paddingRight="7dp"
|
||||
android:paddingTop="9dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/containerTop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/l_bg_gps"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvUnitName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif-smallcaps"
|
||||
android:maxLines="1"
|
||||
android:paddingTop="5dp"
|
||||
tools:text="Linux 9910"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvGPSLocation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif-smallcaps"
|
||||
android:maxLines="1"
|
||||
tools:text="[44.41857,26.09585]"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="10sp"
|
||||
tools:ignore="SmallSp" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="225dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:id="@+id/rlMapInfoBubbleInfo">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/time"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/l_time"
|
||||
android:layout_marginEnd="5dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTimeAgo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/time"
|
||||
android:layout_alignTop="@+id/time"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_toEndOf="@+id/time"
|
||||
android:layout_toRightOf="@+id/time"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
tools:text="a year ago [01:05:01]"
|
||||
android:textColor="#ff000000"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_below="@+id/time"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/l_speed" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSpeed"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/speed"
|
||||
android:layout_alignTop="@+id/speed"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_toRightOf="@+id/speed"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
tools:text="24 kph"
|
||||
android:textColor="#ff000000"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/streetView"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_below="@+id/speed"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/l_street"
|
||||
android:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvStreetView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/streetView"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_toRightOf="@+id/streetView"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="5"
|
||||
tools:text="3601 E Algonquin Rd., Suite 800 Rolling Meadows, IL 60008"
|
||||
android:textColor="#ff000000"
|
||||
android:textSize="10sp"
|
||||
android:visibility="visible" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
5
libSafeMobile/src/main/res/values/color.xml
Normal file
5
libSafeMobile/src/main/res/values/color.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="black">#000000</color>
|
||||
</resources>
|
Reference in New Issue
Block a user