Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SwitchCompat draws additional lines

Yesterday I had switched to Android Studio 2.2 Preview 1 and I noticed that there were some additional lines around alls SwitchCompat views and they look deformated.

Its style just contains width/height params and vertical center, that's all. Appcompat library version is 23.4.0.

Lines

like image 635
slanecek Avatar asked May 22 '16 20:05

slanecek


1 Answers

I have found source of problem - it is android gradle plugin, go to root build.gradle file and replace classpath 'com.android.tools.build:gradle:2.2.0-alpha1'

with

classpath 'com.android.tools.build:gradle:2.1.0'

and SwitchCompat will work as before even with 23.4.0 support library version.

like image 141
curioushikhov Avatar answered Nov 04 '22 18:11

curioushikhov