slanecek slanecek - 5 months ago 31
Android Question

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

Answer

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.

Comments