From 453aa28380b688a75f6ef184d92f532eeb4ea97f Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 27 May 2022 15:25:59 +0300 Subject: [PATCH] Add required resources. --- .../src/main/res/values/styles_location.xml | 22 +++++++++++++++++++ vector/sampledata/live_location_users.json | 14 ++++++++++++ .../bg_live_location_users_bottom_sheet.xml | 8 +++++++ .../res/drawable/ic_bottom_sheet_handle.xml | 6 +++++ vector/src/main/res/values/strings.xml | 2 ++ 5 files changed, 52 insertions(+) create mode 100644 vector/sampledata/live_location_users.json create mode 100644 vector/src/main/res/drawable/bg_live_location_users_bottom_sheet.xml create mode 100644 vector/src/main/res/drawable/ic_bottom_sheet_handle.xml diff --git a/library/ui-styles/src/main/res/values/styles_location.xml b/library/ui-styles/src/main/res/values/styles_location.xml index 7571265241..9d9fc862f6 100644 --- a/library/ui-styles/src/main/res/values/styles_location.xml +++ b/library/ui-styles/src/main/res/values/styles_location.xml @@ -18,4 +18,26 @@ center + + + + + + + + diff --git a/vector/sampledata/live_location_users.json b/vector/sampledata/live_location_users.json new file mode 100644 index 0000000000..58d0fb5fa1 --- /dev/null +++ b/vector/sampledata/live_location_users.json @@ -0,0 +1,14 @@ +{ + "data": [ + { + "displayName": "Amandine", + "remainingTime": "9min left", + "lastUpdatedAt": "Updated 12min ago" + }, + { + "displayName": "You", + "remainingTime": "19min left", + "lastUpdatedAt": "Updated 1min ago" + } + ] +} diff --git a/vector/src/main/res/drawable/bg_live_location_users_bottom_sheet.xml b/vector/src/main/res/drawable/bg_live_location_users_bottom_sheet.xml new file mode 100644 index 0000000000..e6012ebe42 --- /dev/null +++ b/vector/src/main/res/drawable/bg_live_location_users_bottom_sheet.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/vector/src/main/res/drawable/ic_bottom_sheet_handle.xml b/vector/src/main/res/drawable/ic_bottom_sheet_handle.xml new file mode 100644 index 0000000000..fe3c93497b --- /dev/null +++ b/vector/src/main/res/drawable/ic_bottom_sheet_handle.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/vector/src/main/res/values/strings.xml b/vector/src/main/res/values/strings.xml index 63d4730dc5..c5bdb5694b 100644 --- a/vector/src/main/res/values/strings.xml +++ b/vector/src/main/res/values/strings.xml @@ -3037,6 +3037,8 @@ Location sharing is in progress Enable Live Location Sharing Temporary implementation: locations persist in room history + Stop sharing + Updated %1$s ago Show Message bubbles