Bước 1: Tạo drawable file để tùy biến màu sắc, hình dạng thanh trượt Tạo một file custom_seekbar.xml trong thư mục drawable với nội dung như sau: <? xml version= "1.0" encoding= "utf-8" ?> <layer-list xmlns: android = "http://schemas.android.com/apk/res/android" > <item android :id= "@android:id/background" > <shape android :shape= "rectangle" > <corners android :radius= "14dp" /> <gradient android :angle= "270" android :endColor= "@color/volume_seed_back" android :startColor= "@color/volume_seed_back" /> </shape> </item> <item android :id= "@android:id/secondaryProgress" > <clip> <shape android :shape= "rectangle" > <corners android :radius= "14dp"...
Nhận xét
Đăng nhận xét