Taimur Butt Taimur Butt - 1 year ago 79
Android Question

Android click Highlight issue: After updating to Android studio 2.2 preview 3

I am having this weird issue, for android OS below lollipop. When i click on Toolbar option menu or navigation drawer etc i am getting weird black edges as a highlight. Please see attached pic as an example

enter image description here

here is my theme for this activity (using AppCompactActivity as Base Activity)

<style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>


Answer Source

Found the issue, after the update my Android Plugin for Gradle was also updated to 2.2.0 alpha-3 but i changed it back to

classpath 'com.android.tools.build:gradle:2.1.0'  // stable version. 

With this minor tweak now this issue is resolved.

Note: You can either just wait for stable 2.2.0 version or try the next update.