diff options
author | Andrew Lee <anwlee@google.com> | 2015-10-21 01:27:04 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-10-21 01:27:04 -0700 |
commit | d625d28ec6cf22c128d0ef0b8e64a9fff4b64aec (patch) | |
tree | 107564f429b2d5211cca417d1dba9f5ee5f077c2 /res/drawable | |
parent | 9af1b36e999036f4045b07285962cfdb7bfbcca7 (diff) | |
download | android_packages_apps_Dialer-d625d28ec6cf22c128d0ef0b8e64a9fff4b64aec.tar.gz android_packages_apps_Dialer-d625d28ec6cf22c128d0ef0b8e64a9fff4b64aec.tar.bz2 android_packages_apps_Dialer-d625d28ec6cf22c128d0ef0b8e64a9fff4b64aec.zip |
Fix scrolling in blocked numbers list.
+ Add elements as header, so they scroll with the list.
+ Shuffle around some layouts to make this work correctly.
+ Replace default ListView divider with custom drawable, to achieve
the desired effect of removing the divider on the first list item.
+ Override BlockedNumberAdapter to never report itself as empty.
Otherwise, the header will disappear.
+ Tweak some padding.
Bug: 25134186
Change-Id: I07711437fea2d3042d3987983667ab5316d51fcc
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/blocked_number_item_background.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/res/drawable/blocked_number_item_background.xml b/res/drawable/blocked_number_item_background.xml new file mode 100644 index 000000000..acfea20b8 --- /dev/null +++ b/res/drawable/blocked_number_item_background.xml @@ -0,0 +1,29 @@ +<?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. +--> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <shape android:shape="rectangle"> + <solid android:color="@color/divider_line_color" /> + </shape> + </item> + <item android:bottom="1dp"> + <shape android:shape="rectangle"> + <solid android:color="@android:color/white" /> + </shape> + </item> +</layer-list> |