diff options
author | zachh <zachh@google.com> | 2017-08-25 12:19:07 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-30 16:26:55 -0700 |
commit | 51f2b28ae6a45f57f94e5c9a66081a10aebc8349 (patch) | |
tree | 51f16d3431b9e7aeeed3719303b00fca20cb7d88 /java/com/android/dialer/calllog/ui/res/values | |
parent | 73f450c63cae19c7e0404fcddbc8db55a1aa5fba (diff) |
Added partial UI to new call log.
UI notes:
-Updated view holder to show number and basic secondary text
-Updated adapter to divide "Today" and "Older" entries
-Photo is just an anonymous avatar for now
-Clicking anywhere is a no-op
Other things done in this CL:
-Plumbed a few more columns through the call log framework
-Tweaked some column names in the data model (contract)
-Cleaned up some existing tests and added some new ones
Screenshot:
https://screenshot.googleplex.com/DiMscW47AYb
This is the complete spec I am working from:
https://screenshot.googleplex.com/XLquTek1oHk
Bug: 34672501
Test: existing and new
Change-Id: Ice0e538e23e59b7d752f47125a5f9da96bf91430
PiperOrigin-RevId: 166508997
Diffstat (limited to 'java/com/android/dialer/calllog/ui/res/values')
3 files changed, 88 insertions, 0 deletions
diff --git a/java/com/android/dialer/calllog/ui/res/values/dimens.xml b/java/com/android/dialer/calllog/ui/res/values/dimens.xml new file mode 100644 index 000000000..bfb4c99d7 --- /dev/null +++ b/java/com/android/dialer/calllog/ui/res/values/dimens.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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 + --> +<resources> + + <!-- call log entries --> + <dimen name="call_log_entry_top_margin">6dp</dimen> + <dimen name="call_log_entry_padding_bottom_end">16dp</dimen> + <dimen name="call_log_entry_padding_top_start">12dp</dimen> + <dimen name="call_log_entry_photo_size">48dp</dimen> + <dimen name="call_log_entry_photo_padding">4dp</dimen> + <dimen name="call_log_entry_photo_text_margin">8dp</dimen> + <dimen name="call_log_entry_menu_button_size">48dp</dimen> + +</resources> diff --git a/java/com/android/dialer/calllog/ui/res/values/strings.xml b/java/com/android/dialer/calllog/ui/res/values/strings.xml new file mode 100644 index 000000000..9b044ca08 --- /dev/null +++ b/java/com/android/dialer/calllog/ui/res/values/strings.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2017 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 + --> + +<resources> + + <!-- Text to show in call log for a video call. [CHAR LIMIT=16] --> + <string name="new_call_log_video">Video</string> + + <!-- String used to display calls from unknown numbers in the call log. [CHAR LIMIT=30] --> + <string name="new_call_log_unknown">Unknown</string> + + <!-- Header in call log to group calls from the current day. [CHAR LIMIT=30] --> + <string name="new_call_log_header_today">Today</string> + + <!-- Header in call log to group calls from before the current day. [CHAR LIMIT=30] --> + <string name="new_call_log_header_older">Older</string> + +</resources>
\ No newline at end of file diff --git a/java/com/android/dialer/calllog/ui/res/values/styles.xml b/java/com/android/dialer/calllog/ui/res/values/styles.xml new file mode 100644 index 000000000..23cb93e1a --- /dev/null +++ b/java/com/android/dialer/calllog/ui/res/values/styles.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 + --> +<resources> + + <style name="primary_textview_new_call"> + <item name="android:fontFamily">sans-serif-medium</item> + </style> + + <style name="secondary_textview_new_call"> + <item name="android:textColor">@color/missed_call</item> + <item name="android:fontFamily">sans-serif-medium</item> + </style> + +</resources>
\ No newline at end of file |