summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2015-03-02 14:52:47 -0800
committerRaj Yengisetty <rajesh@cyngn.com>2015-03-06 15:37:44 -0800
commit369851799cfc890ddbc8af777f7f662f6304dd65 (patch)
tree40aa4284aea51e593243cea0b40c9e33e1b79815 /res
parentf4784dd14191cbc433becaa651b2a92fa5950f47 (diff)
downloadandroid_packages_apps_Trebuchet-369851799cfc890ddbc8af777f7f662f6304dd65.tar.gz
android_packages_apps_Trebuchet-369851799cfc890ddbc8af777f7f662f6304dd65.tar.bz2
android_packages_apps_Trebuchet-369851799cfc890ddbc8af777f7f662f6304dd65.zip
App drawer smooth scrolling
Also fixes searchbar visibility when dragging icons from app drawer Change-Id: I418dc3210a95cc57c81979452def8240c27d2214
Diffstat (limited to 'res')
-rw-r--r--res/layout/app_drawer_container.xml2
-rw-r--r--res/layout/app_drawer_item.xml4
-rw-r--r--res/layout/scrub_layout.xml2
-rw-r--r--res/values/dimens.xml1
4 files changed, 4 insertions, 5 deletions
diff --git a/res/layout/app_drawer_container.xml b/res/layout/app_drawer_container.xml
index 3706e448d..f5db08ce1 100644
--- a/res/layout/app_drawer_container.xml
+++ b/res/layout/app_drawer_container.xml
@@ -42,6 +42,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
+ android:paddingBottom="@dimen/scrubber_height"
android:overScrollMode="never"/>
</FrameLayout>
@@ -63,6 +64,7 @@
android:id="@+id/app_drawer_scrubber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:clickable="true"
android:layout_gravity="bottom"/>
</FrameLayout>
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml
index e2d105f5a..08043eb1f 100644
--- a/res/layout/app_drawer_item.xml
+++ b/res/layout/app_drawer_item.xml
@@ -44,8 +44,4 @@
android:layout_height="wrap_content"
android:orientation="horizontal" />
</LinearLayout>
- <Space android:id="@+id/spacer"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:visibility="gone" />
</LinearLayout>
diff --git a/res/layout/scrub_layout.xml b/res/layout/scrub_layout.xml
index 4b10e45d7..90a9d094d 100644
--- a/res/layout/scrub_layout.xml
+++ b/res/layout/scrub_layout.xml
@@ -27,7 +27,7 @@
android:layout_width="match_parent"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
- android:layout_height="48dp">
+ android:layout_height="@dimen/scrubber_height">
<SeekBar
android:id="@+id/scrubber"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 7ceaf8bd5..91bfaef29 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -120,6 +120,7 @@
<dimen name="grid_custom_text">50dp</dimen>
<dimen name="scrubber_bottom_padding">30dp</dimen>
+ <dimen name="scrubber_height">48dp</dimen>
<!-- Vertical app drawer padding -->
<dimen name="vertical_app_drawer_icon_padding">5px</dimen>