difference between switch and switchcompat in android?
问题 Can someone please explain the real difference between Switch and SwitchCompat .Can I use both as toggle button. can both support lower versions of android. thanks in advance 回答1: As beardedbeast already mentioned in comment, these widgets differ from each other only by the supported API level. You can use both of them for the same purpose but not simultaneously to avoid unnecessary complication. As for known issues when using Compat widgets, there is an answer from developers.blogspot: You