the simple switch button Step 1. Add the JitPack repository to your build file allprojects { repositories { ... maven { url 'https://www.jitpack.io' } } } Step 2. Add the dependency dependencies { compile 'com.github.libq:switch:1.0.0' }