Created
April 11, 2018 14:29
-
-
Save hasankucuk/78d22635ea834615d6c1a949b75a9c43 to your computer and use it in GitHub Desktop.
Android - RoundCornerProgressBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layout >>> TextProgressBar>>> style="?android:attr/progressBarStyleHorizontal" | |
<?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> | |
<corners android:radius="8dp"/> | |
<solid android:color="@color/progresGrey"/> | |
</shape> | |
</item> | |
<item android:id="@android:id/progress" | |
android:top="1dp" | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp"> | |
<scale android:scaleWidth="100%"> | |
<shape> | |
<corners android:radius="8dp"/> | |
<solid android:color="@color/progresGreen"/> | |
</shape> | |
</scale> | |
</item> | |
</layer-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment