-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
click on ActionItem sometimes cause popup window transparent #3
Comments
I´ve the same problem, I appreciate any help. |
I also have the exact same problem. |
I think that is a cyanogen problem (in my case) because this behavior is the same in the system app's popupwindow |
The problem is this line in PopupWindows.java: Remove the if/else clause completely and change it to: It's OK to set a null background on PopupWindow. And it fixes this issue :-) |
if you will remove mWindow.setBackgroundDrawable(new BitmapDrawable()); then once the QuickAction gets open and if you try to click on some other part of the screen then it will not get closed automatically. so mWindow.setBackgroundDrawable(null); wont be the solution |
sunloverz wrote solution (if you can call it like this) in NewQuickAction project discussions. It works with NewQuickAction3D. public void dismiss() {
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
// Will be called after 1 ms
mWindow.dismiss();
}
}, 1);
} Works for me. |
when ActionItem has onclick effect like action_item_btn.xml and quickAction dismissed,
it sometimes cause popupwindow has transparent rectangle.
like below:
https://docs.google.com/leaf?id=0BwrpgpmcQWZXMTI0NzExZWUtMmNlMS00MzBhLWEzODAtYTgwZDk3N2NlYTVl&hl=zh_TW
The text was updated successfully, but these errors were encountered: