diff options
author | Winson Chung <winsonc@google.com> | 2015-03-16 12:39:05 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-03-16 15:20:39 -0700 |
commit | aa2ab254ea6b59dfe4183015e76c31262036282d (patch) | |
tree | 0ac41102ab8c93ec32ab7088c34085c418f05e64 /res/drawable | |
parent | c13b994c04b0945f25dad6487fa3151fc5153164 (diff) | |
download | android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.tar.gz android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.tar.bz2 android_packages_apps_Trebuchet-aa2ab254ea6b59dfe4183015e76c31262036282d.zip |
Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.
Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/apps_list_bg.xml | 9 | ||||
-rw-r--r-- | res/drawable/apps_list_bg_inset.xml | 23 | ||||
-rw-r--r-- | res/drawable/apps_list_fastscroll_bg.xml | 9 | ||||
-rw-r--r-- | res/drawable/apps_list_scrollbar_thumb.xml | 2 | ||||
-rw-r--r-- | res/drawable/apps_reveal_bg.xml | 20 | ||||
-rw-r--r-- | res/drawable/apps_reveal_bg_inset.xml | 21 |
6 files changed, 75 insertions, 9 deletions
diff --git a/res/drawable/apps_list_bg.xml b/res/drawable/apps_list_bg.xml index 61f1c083a..64177c16b 100644 --- a/res/drawable/apps_list_bg.xml +++ b/res/drawable/apps_list_bg.xml @@ -14,8 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> -<shape xmlns:android="http://schemas.android.com/apk/res/android" - android:shape="rectangle"> - <solid android:color="#ffffff" /> - <corners android:radius="3dp" /> -</shape>
\ No newline at end of file +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/apps_list_bg_inset" + android:insetLeft="@dimen/apps_container_inset" + android:insetRight="@dimen/apps_container_inset" />
\ No newline at end of file diff --git a/res/drawable/apps_list_bg_inset.xml b/res/drawable/apps_list_bg_inset.xml new file mode 100644 index 000000000..5ea78952f --- /dev/null +++ b/res/drawable/apps_list_bg_inset.xml @@ -0,0 +1,23 @@ +<?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. +--> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="#ffffff" /> + <corners + android:bottomLeftRadius="3dp" + android:bottomRightRadius="3dp" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/apps_list_fastscroll_bg.xml b/res/drawable/apps_list_fastscroll_bg.xml index 4ec18488b..780d3b0c3 100644 --- a/res/drawable/apps_list_fastscroll_bg.xml +++ b/res/drawable/apps_list_fastscroll_bg.xml @@ -18,7 +18,10 @@ android:shape="rectangle"> <solid android:color="@color/apps_view_scrollbar_thumb_color" /> <size - android:width="48dp" - android:height="48dp" /> - <corners android:radius="4dp" /> + android:width="64dp" + android:height="64dp" /> + <corners + android:topLeftRadius="64dp" + android:topRightRadius="64dp" + android:bottomLeftRadius="64dp" /> </shape>
\ No newline at end of file diff --git a/res/drawable/apps_list_scrollbar_thumb.xml b/res/drawable/apps_list_scrollbar_thumb.xml index ddd65b231..59383a5bb 100644 --- a/res/drawable/apps_list_scrollbar_thumb.xml +++ b/res/drawable/apps_list_scrollbar_thumb.xml @@ -17,5 +17,5 @@ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/apps_view_scrollbar_thumb_color" /> - <size android:width="4dp"/> + <size android:width="@dimen/apps_view_fast_scroll_bar_size" /> </shape>
\ No newline at end of file diff --git a/res/drawable/apps_reveal_bg.xml b/res/drawable/apps_reveal_bg.xml new file mode 100644 index 000000000..47c608f85 --- /dev/null +++ b/res/drawable/apps_reveal_bg.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. +--> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/apps_reveal_bg_inset" + android:insetLeft="@dimen/apps_container_inset" + android:insetRight="@dimen/apps_container_inset" />
\ No newline at end of file diff --git a/res/drawable/apps_reveal_bg_inset.xml b/res/drawable/apps_reveal_bg_inset.xml new file mode 100644 index 000000000..61f1c083a --- /dev/null +++ b/res/drawable/apps_reveal_bg_inset.xml @@ -0,0 +1,21 @@ +<?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. +--> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="#ffffff" /> + <corners android:radius="3dp" /> +</shape>
\ No newline at end of file |