android實現switchbutton選擇器效果

網上找了好久,發現switchbutton許多都是自定義的,或者比較麻煩,所以自己在網上找了一種很好用的switchbutton,簡單方便,可以做按鈕監聽並且可以自己定義按鈕的顏色 (1)在builder.gradle中引用第三方的類庫: compile 'com.github.zcweng:switch-button:[email protected]' (2)在xml中可以直接使用switch
相關文章
相關標籤/搜索