summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorYvonne Wong <ywong@cyngn.com>2016-05-11 14:02:12 -0700
committerStephen Bird <sbird@cyngn.com>2016-09-13 15:07:21 -0700
commit1a3b89e56b63270c0394f5b50cd4ce3081c1f7ee (patch)
tree381c5a92a0f438e1ec69ab5726cd7cd1bebb5bdb /res/drawable
parent2bb428b3a4319a20a52c9c6fa27308501858d3f0 (diff)
downloadpackages_apps_Messaging-1a3b89e56b63270c0394f5b50cd4ce3081c1f7ee.tar.gz
packages_apps_Messaging-1a3b89e56b63270c0394f5b50cd4ce3081c1f7ee.tar.bz2
packages_apps_Messaging-1a3b89e56b63270c0394f5b50cd4ce3081c1f7ee.zip
Add maps preview for addresses and integrate ridesharing request into Messaging
- Uses the first map link found in a message to get a static map view - The static map view is shown as a preview and can be clicked to go into the default maps app - Clicking on request ride will lead the user to RideCoreUI with pickup location prefilled based on the address in the map link - Clicking on the directions button will lead the user to google maps's navigation - Display placeholder background when map is loading or offline with no cached image - Use RoundedCornerTransformation to transform the map into a bitmap with rounded corners - Show brand bitmap from ridesharing services if an active provider is chosen, otherwise display the generic ridesharing icon Change-Id: I8e74c6d9beeaa58f01f0a51e5a831c6697c890ea Issue-Id: RIDE-75, RIDE-76, RIDE-77
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/directions_button_background.xml6
-rw-r--r--res/drawable/ic_generic_transport_icon.xml32
-rwxr-xr-xres/drawable/ic_get_directions.xml7
-rw-r--r--res/drawable/maps_button_container_background.xml6
-rw-r--r--res/drawable/request_ride_button_background.xml6
5 files changed, 57 insertions, 0 deletions
diff --git a/res/drawable/directions_button_background.xml b/res/drawable/directions_button_background.xml
new file mode 100644
index 0000000..a40b30f
--- /dev/null
+++ b/res/drawable/directions_button_background.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <corners android:bottomRightRadius="2dp" android:topRightRadius="2dp" />
+ <solid android:color="@color/white_54" />
+</shape> \ No newline at end of file
diff --git a/res/drawable/ic_generic_transport_icon.xml b/res/drawable/ic_generic_transport_icon.xml
new file mode 100644
index 0000000..7bd5e2e
--- /dev/null
+++ b/res/drawable/ic_generic_transport_icon.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2016 The CyanogenMod 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.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <path
+ android:fillColor="#000000"
+ android:pathData="M18.9,6c-0.2-0.6-0.8-1-1.4-1h-11C5.8,5,5.3,5.4,5.1,6L3,12v8c0,0.5,0.5,1,1,1h1c0.6,0,1-0.5,1-1v-1h12v1c0,0.5,0.5,1,1,1h1
+c0.5,0,1-0.5,1-1v-8L18.9,6z
+M6.5,16C5.7,16,5,15.3,5,14.5S5.7,13,6.5,13S8,13.7,8,14.5S7.3,16,6.5,16z M17.5,16
+c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S18.3,16,17.5,16z
+M5,11l1.5-4.5h11L19,11H5z M11,9.5
+c0,0.8-0.7,1.5-1.5,1.5S8,10.3,8,9.5S8.7,8,9.5,8S11,8.7,11,9.5z
+M16,9.5c0,0.8-0.7,1.5-1.5,1.5S13,10.3,13,9.5S13.7,8,14.5,8 S16,8.7,16,9.5z" />
+</vector> \ No newline at end of file
diff --git a/res/drawable/ic_get_directions.xml b/res/drawable/ic_get_directions.xml
new file mode 100755
index 0000000..46c6fb6
--- /dev/null
+++ b/res/drawable/ic_get_directions.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="#000000" android:fillAlpha=".54" android:pathData="M14,14.5V12H10V15H8V11A1,1 0 0,1 9,10H14V7.5L17.5,11M21.71,11.29L12.71,2.29H12.7C12.31,1.9 11.68,1.9 11.29,2.29L2.29,11.29C1.9,11.68 1.9,12.32 2.29,12.71L11.29,21.71C11.68,22.09 12.31,22.1 12.71,21.71L21.71,12.71C22.1,12.32 22.1,11.68 21.71,11.29Z" />
+</vector> \ No newline at end of file
diff --git a/res/drawable/maps_button_container_background.xml b/res/drawable/maps_button_container_background.xml
new file mode 100644
index 0000000..6e3a3a1
--- /dev/null
+++ b/res/drawable/maps_button_container_background.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <corners android:radius="2dp" />
+ <solid android:color="@android:color/transparent" />
+</shape> \ No newline at end of file
diff --git a/res/drawable/request_ride_button_background.xml b/res/drawable/request_ride_button_background.xml
new file mode 100644
index 0000000..ff3ba2e
--- /dev/null
+++ b/res/drawable/request_ride_button_background.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <corners android:bottomLeftRadius="2dp" android:topLeftRadius="2dp" />
+ <solid android:color="@color/white_54" />
+</shape> \ No newline at end of file