SwitchCompat draws extra lines

Yesterday, I switched to Android Studio 2.2 Preview 1, and I noticed that there are some extra lines around all the SwitchCompat views, and they look warped.

His style simply contains the width / height parameters and the vertical center, that's all. The version of the Appcompat library is 23.4.0.

Lines

+7
android android-studio
source share
2 answers

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

from

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

and SwitchCompat will continue to work even with support version 23.4.0.

+5
source share

All Articles