问题
After updating to Android Studio 2.2 and Android Plugin to 2.2.0-alpha1, I noticed that when I press a MenuItem, it gets a black border. I presume that this border is caused by a problem with its 9-patch pressed background. Is this a known issue?
This is the pressed state. The default state works fine.
Obs: I am testing on a real device and I had never experienced this issue.
Thank you!
回答1:
Try to change the default android plugin version 2.2 alpha to 2.1 stable.
classpath 'com.android.tools.build:gradle:2.1.0
Update : try latest version ( 2.2 ) when it become stable one
来源:https://stackoverflow.com/questions/37449025/default-pressed-menuitem-with-9-patch-border-after-android-studio-2-2