diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-12 12:50:55 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-12 13:39:12 -0700 |
commit | f549abc92a680f31b4b210705e03428aa0d7c040 (patch) | |
tree | 76ffd93cfeb94d1b854ab925ae9a7fbb7d81ad22 /res | |
parent | 7f3e03d5593e8f48c5462f4c385317e42b6ce796 (diff) |
Show icons for call detail actions.
- Remove LinearLayouts and use drawableLeft instead.
+ Up block asset from 18dp to 24dp.
Bug: 24109819
Change-Id: I941520f1b90e6f819c7f94269e395d26c56f5734
Diffstat (limited to 'res')
17 files changed, 115 insertions, 44 deletions
diff --git a/res/drawable-hdpi/ic_block_18dp.png b/res/drawable-hdpi/ic_block_18dp.png Binary files differdeleted file mode 100644 index acab511f6..000000000 --- a/res/drawable-hdpi/ic_block_18dp.png +++ /dev/null diff --git a/res/drawable-xhdpi/ic_block_18dp.png b/res/drawable-hdpi/ic_block_24dp.png Binary files differindex 2ccc89d24..2ccc89d24 100644 --- a/res/drawable-xhdpi/ic_block_18dp.png +++ b/res/drawable-hdpi/ic_block_24dp.png diff --git a/res/drawable-mdpi/ic_block_18dp.png b/res/drawable-mdpi/ic_block_18dp.png Binary files differdeleted file mode 100644 index 45b83facf..000000000 --- a/res/drawable-mdpi/ic_block_18dp.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_block_24dp.png b/res/drawable-mdpi/ic_block_24dp.png Binary files differnew file mode 100644 index 000000000..ec1b33f0e --- /dev/null +++ b/res/drawable-mdpi/ic_block_24dp.png diff --git a/res/drawable-xhdpi/ic_block_24dp.png b/res/drawable-xhdpi/ic_block_24dp.png Binary files differnew file mode 100644 index 000000000..7aba97b65 --- /dev/null +++ b/res/drawable-xhdpi/ic_block_24dp.png diff --git a/res/drawable-xxhdpi/ic_block_18dp.png b/res/drawable-xxhdpi/ic_block_18dp.png Binary files differdeleted file mode 100644 index 1eee12405..000000000 --- a/res/drawable-xxhdpi/ic_block_18dp.png +++ /dev/null diff --git a/res/drawable-xxxhdpi/ic_block_18dp.png b/res/drawable-xxhdpi/ic_block_24dp.png Binary files differindex fddfa54b8..fddfa54b8 100644 --- a/res/drawable-xxxhdpi/ic_block_18dp.png +++ b/res/drawable-xxhdpi/ic_block_24dp.png diff --git a/res/drawable-xxxhdpi/ic_block_24dp.png b/res/drawable-xxxhdpi/ic_block_24dp.png Binary files differnew file mode 100644 index 000000000..0378d1bed --- /dev/null +++ b/res/drawable-xxxhdpi/ic_block_24dp.png diff --git a/res/drawable/blocked_contact.xml b/res/drawable/blocked_contact.xml index 38c0fc92c..2e7343710 100644 --- a/res/drawable/blocked_contact.xml +++ b/res/drawable/blocked_contact.xml @@ -17,11 +17,17 @@ --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> <shape android:shape="oval"> <solid android:color="@color/blocked_contact_background" /> <size android:width="24dp" android:height="24dp" /> </shape> </item> - <item android:drawable="@drawable/ic_block_18dp" android:gravity="center" /> + + <item android:drawable="@drawable/ic_block_24dp" + android:width="18dp" + android:height="18dp" + android:gravity="center" /> + </layer-list> diff --git a/res/drawable/ic_call_detail_block.xml b/res/drawable/ic_call_detail_block.xml new file mode 100644 index 000000000..9ec8e03f5 --- /dev/null +++ b/res/drawable/ic_call_detail_block.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/ic_block_24dp" + android:tint="@color/call_detail_footer_icon_tint" /> diff --git a/res/drawable/ic_call_detail_content_copy.xml b/res/drawable/ic_call_detail_content_copy.xml new file mode 100644 index 000000000..dd604dff7 --- /dev/null +++ b/res/drawable/ic_call_detail_content_copy.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/ic_content_copy_24dp" + android:tint="@color/call_detail_footer_icon_tint" /> diff --git a/res/drawable/ic_call_detail_edit.xml b/res/drawable/ic_call_detail_edit.xml new file mode 100644 index 000000000..e5ad3e59e --- /dev/null +++ b/res/drawable/ic_call_detail_edit.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/ic_create_24dp" + android:tint="@color/call_detail_footer_icon_tint" /> diff --git a/res/drawable/ic_call_detail_report.xml b/res/drawable/ic_call_detail_report.xml new file mode 100644 index 000000000..201ac4cb6 --- /dev/null +++ b/res/drawable/ic_call_detail_report.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2015 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. +--> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/ic_report_24dp" + android:tint="@color/call_detail_footer_icon_tint" /> diff --git a/res/layout/call_detail_footer.xml b/res/layout/call_detail_footer.xml index 7e56c02c2..048f8031b 100644 --- a/res/layout/call_detail_footer.xml +++ b/res/layout/call_detail_footer.xml @@ -23,59 +23,34 @@ android:layout_height="@dimen/divider_line_thickness" android:background="@color/call_log_action_divider" /> - <LinearLayout android:id="@+id/call_detail_action_block" + <TextView android:id="@+id/call_detail_action_block" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" - android:visibility="gone" - style="@style/CallDetailActionItemStyle"> - - <TextView android:id="@+id/call_detail_action_block_text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/action_block_number" /> - - </LinearLayout> + android:text="@string/action_block_number" + android:drawableLeft="@drawable/ic_call_detail_block" + style="@style/CallDetailActionItemStyle" /> - <LinearLayout android:id="@+id/call_detail_action_copy" + <TextView android:id="@+id/call_detail_action_copy" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" - style="@style/CallDetailActionItemStyle"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/action_copy_number_text" /> - - </LinearLayout> + android:text="@string/action_copy_number_text" + android:drawableLeft="@drawable/ic_call_detail_content_copy" + style="@style/CallDetailActionItemStyle" /> - <LinearLayout android:id="@+id/call_detail_action_edit_before_call" + <TextView android:id="@+id/call_detail_action_edit_before_call" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" + android:text="@string/action_edit_number_before_call" + android:drawableLeft="@drawable/ic_call_detail_edit" android:visibility="gone" - style="@style/CallDetailActionItemStyle"> + style="@style/CallDetailActionItemStyle" /> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/action_edit_number_before_call" /> - - </LinearLayout> - - <LinearLayout android:id="@+id/call_detail_action_report" + <TextView android:id="@+id/call_detail_action_report" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal" + android:text="@string/action_report_number" + android:drawableLeft="@drawable/ic_call_detail_report" android:visibility="gone" - style="@style/CallDetailActionItemStyle"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/action_report_number" /> - - </LinearLayout> + style="@style/CallDetailActionItemStyle" /> </LinearLayout> diff --git a/res/values/colors.xml b/res/values/colors.xml index a7044c7cb..d0f7ed000 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -125,4 +125,8 @@ <color name="onboarding_default_dialer_screen_background_color">#e06055</color> <color name="onboarding_permissions_screen_background_color">#689f38</color> + <!-- Grey 700 --> + <color name="call_detail_footer_text_color">#616161</color> + <color name="call_detail_footer_icon_tint">@color/call_detail_footer_text_color</color> + </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 07891f4b4..d3c52a313 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -16,7 +16,7 @@ --> <resources> <dimen name="button_horizontal_padding">16dp</dimen> - <dimen name="divider_line_thickness">2dp</dimen> + <dimen name="divider_line_thickness">1dp</dimen> <!-- Drag to remove view (in dp because it is used in conjunction with a statically @@ -48,8 +48,10 @@ <dimen name="call_detail_header_top_margin">20dp</dimen> <dimen name="call_detail_header_bottom_margin">9dp</dimen> <dimen name="call_detail_elevation">0.5dp</dimen> - <dimen name="call_detail_action_item_padding_horizontal">36dp</dimen> + <dimen name="call_detail_action_item_padding_horizontal">28dp</dimen> <dimen name="call_detail_action_item_padding_vertical">16dp</dimen> + <dimen name="call_detail_action_item_drawable_padding">28dp</dimen> + <dimen name="call_detail_action_item_text_size">16sp</dimen> <dimen name="transcription_top_margin">18dp</dimen> <dimen name="transcription_bottom_margin">18dp</dimen> diff --git a/res/values/styles.xml b/res/values/styles.xml index 7c81e52fb..3d8644281 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -149,10 +149,14 @@ <style name="CallDetailActionItemStyle"> <item name="android:foreground">?android:attr/selectableItemBackground</item> <item name="android:clickable">true</item> + <item name="android:drawablePadding">@dimen/call_detail_action_item_drawable_padding</item> + <item name="android:gravity">center_vertical</item> <item name="android:paddingStart">@dimen/call_detail_action_item_padding_horizontal</item> <item name="android:paddingEnd">@dimen/call_detail_action_item_padding_horizontal</item> <item name="android:paddingTop">@dimen/call_detail_action_item_padding_vertical</item> <item name="android:paddingBottom">@dimen/call_detail_action_item_padding_vertical</item> + <item name="android:textColor">@color/call_detail_footer_text_color</item> + <item name="android:textSize">@dimen/call_detail_action_item_text_size</item> </style> <style name="DialtactsActionBarStyle" |