diff options
author | Patrick Dubroy <dubroy@google.com> | 2011-05-04 16:19:22 -0700 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2011-05-05 14:49:20 -0700 |
commit | e0a799a2ac1ca78e30fbac9e4e12a063425c08d3 (patch) | |
tree | 2c9b15f937b7c3b3db2bba4cf3df5a54838bbe69 /core/java/android/widget/AbsoluteLayout.java | |
parent | a0449f03eb12462189f7a75f55e4751e1e2bcbcd (diff) | |
download | frameworks_base-e0a799a2ac1ca78e30fbac9e4e12a063425c08d3.zip frameworks_base-e0a799a2ac1ca78e30fbac9e4e12a063425c08d3.tar.gz frameworks_base-e0a799a2ac1ca78e30fbac9e4e12a063425c08d3.tar.bz2 |
Only delay pressed feedback for Views inside a scrolling parent
Add a method on ViewGroup to determine whether it supports scrolling.
This allows us to show the pressed feedback immediately in many cases,
improving responsiveness of buttons, etc.
This patch also lengthens the timeout in order to reduce flashes
when the user is scrolling.
Change-Id: Ieb91ae7a1f8e8f7e87448f2a730381a53947996f
Diffstat (limited to 'core/java/android/widget/AbsoluteLayout.java')
-rw-r--r-- | core/java/android/widget/AbsoluteLayout.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/AbsoluteLayout.java b/core/java/android/widget/AbsoluteLayout.java index ac82af7..7df6aab 100644 --- a/core/java/android/widget/AbsoluteLayout.java +++ b/core/java/android/widget/AbsoluteLayout.java @@ -141,6 +141,11 @@ public class AbsoluteLayout extends ViewGroup { return new LayoutParams(p); } + @Override + public boolean shouldDelayChildPressedState() { + return false; + } + /** * Per-child layout information associated with AbsoluteLayout. * See |