From c1b7d0ae8cdfc0f0dddb5c2bb45c8239ffc6a264 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 15 Apr 2015 17:23:27 -0700 Subject: Move call log actions into expandable view. This isn't the prettiest thing ever, but with this the "framework" of all of the changes for the new visual style of the call logs is in place. From here on out, the remainder of tasks should be unblocked and relatively independent. + Rename ...ItemViews to ...ItemViewHolder. This probably wasn't completely necessary, but is more proper given the new architecture. + ViewHolder is now officially where most of the independent UI logic for a single call log list item should live. This changelist moves further in that direction by storing references and helpers in it, to lessen what must be passed in from the adapter. + Split out the call action from the rest of the actions, since it has a special treatment on the card. + Convert text action buttons into a vertical stack. + Consolidate action stylings into a single style, for simplicity. + Miscellaneous style and string changes to put things in a better state. This included tweaking some of the (ripple) backgrounds. + Update tests, according to changes. Bug: 19372817 Change-Id: Ic923c0bcbbc1c153952131d0c772df9e9589fb03 --- res/drawable/call_log_background.xml | 18 ---- res/layout/call_log_list_item.xml | 24 ++--- res/layout/call_log_list_item_actions.xml | 145 ++++++++++-------------------- res/values/dimens.xml | 6 +- res/values/strings.xml | 43 +++------ res/values/styles.xml | 13 +++ 6 files changed, 90 insertions(+), 159 deletions(-) delete mode 100644 res/drawable/call_log_background.xml (limited to 'res') diff --git a/res/drawable/call_log_background.xml b/res/drawable/call_log_background.xml deleted file mode 100644 index 1b3dbc979..000000000 --- a/res/drawable/call_log_background.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - \ No newline at end of file diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index 9ea3db8d0..7a826d9f5 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -44,15 +44,13 @@ android:layout_height="wrap_content" android:layout_margin="4dp" android:baselineAligned="false" - android:orientation="vertical" - android:gravity="center_vertical" card_view:cardCornerRadius="4dp" card_view:cardBackgroundColor="@color/background_dialer_call_log_list_item"> - - - + + + diff --git a/res/layout/call_log_list_item_actions.xml b/res/layout/call_log_list_item_actions.xml index 1280089f5..8ef92bf1a 100644 --- a/res/layout/call_log_list_item_actions.xml +++ b/res/layout/call_log_list_item_actions.xml @@ -14,100 +14,53 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License --> - - + + + - - - - - - - + android:layout_height="1dp" + android:layout_weight="1" + android:background="#eeeeee" /> + + + + + + + + + + diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 0902cb70d..502b21a59 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -99,14 +99,14 @@ 16dp 3dp - - 8dp + 48dp + 24dp 64dp - 16sp + 14sp 14sp 12sp diff --git a/res/values/strings.xml b/res/values/strings.xml index 4c4921d31..4ee5b45c8 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -539,30 +539,10 @@ [CHAR LIMIT=21] --> ALL CONTACTS - - CALL BACK - - - CALL - - - REDIAL - - - VIDEO CALL + [CHAR LIMIT=50] --> + Video call LISTEN - - DETAILS + the call log entry. [CHAR LIMIT=50] --> + View details on ^1 - + Call + + - Call back ^1 + Call ^1 - REPORT + Report diff --git a/res/values/styles.xml b/res/values/styles.xml index 8bd5f9d8e..cfb2480c8 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -158,6 +158,19 @@ always + +