summaryrefslogtreecommitdiffstats
path: root/res/drawable/request_ride_button_background.xml
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/request_ride_button_background.xml
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/request_ride_button_background.xml')
-rw-r--r--res/drawable/request_ride_button_background.xml6
1 files changed, 6 insertions, 0 deletions
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