This file contains hidden or 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
package com.codinginflow.circulardeterminateprogressbar | |
import androidx.appcompat.app.AppCompatActivity | |
import android.os.Bundle | |
import kotlinx.android.synthetic.main.activity_main.* | |
class MainActivity : AppCompatActivity() { | |
private var progr = 0 | |
override fun onCreate(savedInstanceState: Bundle?) { |
This file contains hidden or 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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
This file contains hidden or 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
<?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> | |
<solid android:color="#3700B3"/> | |
<corners android:radius="20dp"/> | |
<size android:width="200dp" android:height="2dp"/> | |
</shape> | |
</item> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@drawable/tab_indicator_selected" | |
android:state_selected="true"/> | |
<item android:drawable="@drawable/tab_indicator_default"/> | |
</selector> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- tab indicator dot style using the ring shape, design as you wish--> | |
<item> | |
<shape | |
android:innerRadius="0dp" | |
android:shape="ring" | |
android:thickness="10dp" | |
android:useLevel="false"> | |
<solid android:color="#000000"/> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android" > | |
<!-- provide the drawables for this to work--> | |
<item android:state_checked="true" android:drawable="@drawable/checked_shape" /> | |
<item android:state_pressed="true" android:drawable="@drawable/checked_shape" /> | |
<item android:state_pressed="false" android:drawable="@drawable/unchecked_shape" /> | |
</selector> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="oval" android:thickness="5dp" | |
android:useLevel="false"> | |
<size android:height="100dp" android:width="100dp"/> | |
<solid android:color="#ff91a4"/> | |
<stroke android:color="#FFFFFF" android:width="2dp"/> | |
<padding android:right="10dp" android:left="10dp" android:bottom="10dp" android:top="10dp"/> | |
</shape> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="oval" | |
android:thickness="5dp" | |
android:useLevel="false"> | |
<stroke android:color="#8cff91a4" android:width="10dp"/> | |
<solid android:color="#80000000"/> | |
<size android:width="100dp" android:height="100dp"/> | |
<padding android:right="10dp" android:left="10dp" android:bottom="10dp" android:top="10dp"/> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape | |
android:innerRadius="50dp" | |
android:shape="ring" | |
android:useLevel="false"> | |
<gradient | |
android:type="linear" |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- redesign with your own drawables to fit your taste--> | |
<item> | |
<shape | |
android:shape="oval"> | |
<!-- replace with your own colors--> | |
<gradient | |
android:type="linear" | |
android:angle="45" |
NewerOlder