Speeding up AllApps click feedback
Change-Id: Ia16845b16d369bea610bb908d9a9f4805d4a1d54
This commit is contained in:
@@ -54,4 +54,17 @@ public class PagedViewIcon extends TextView {
|
||||
setText(info.title);
|
||||
setTag(info);
|
||||
}
|
||||
|
||||
protected void drawableStateChanged() {
|
||||
if (isPressed()) {
|
||||
if (getAlpha() != 0.5f) {
|
||||
setAlpha(0.5f);
|
||||
}
|
||||
} else {
|
||||
if (getAlpha() != 1f) {
|
||||
setAlpha(1f);
|
||||
}
|
||||
}
|
||||
super.drawableStateChanged();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user