commit | 47a66b12ec49179a09642bf48a0d2bd49d9f3458 | [log] [tgz] |
---|---|---|
author | Tadashi G. Takaoka <takaoka@google.com> | Wed May 01 13:13:21 2013 +0900 |
committer | Tadashi G. Takaoka <takaoka@google.com> | Wed May 01 14:02:18 2013 +0900 |
tree | bee2508043a1dbf019bec2e949cbfd5561a22439 | |
parent | 7b2114a4283ccd90a937b14145c11125824cd1bd [diff] |
Override View.drawableStateChanged to detect state_pressed Unlike on JB, View.setPressed(boolean) is never called when the view is pressed on ICS. To detect a pressed state of the view, we need to override View.drawableStateChanged() and check the drawable state contains state_pressed. Bug: 8159728 Change-Id: I481051364d6f3d1370742723c3ce19d898ea5463