Skip to content

Commit 2547af9

Browse files
authored
Update README.md
1 parent 8386130 commit 2547af9

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

README.md

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Library name (Jetpack library)
2+
# RingPI (Jetpack library)
33
<p align="left">
44
<a href="#"><img alt="Languages-Kotlin" src="https://img.shields.io/badge/Language-Kotlin-1DA1F2?style=flat-square&logo=kotlin"></a>
55
<a href="#"><img alt="Version" src="https://jitpack.io/v/ErrorxCode/ExpandableCard.svg"></a>
@@ -8,11 +8,18 @@
88
<a href="#"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/ErrorxCode/ExpandableCard?style=social"></a>
99
</p>
1010

11-
> "Quote of the library"
11+
> "A beautiful way of displaying progress or quota"
12+
13+
This library provides 2 amazing progress indicator which you can use in your application with just 1 line of code.
14+
15+
16+
Full ring indicator | Half ring indicator
17+
:-------------------------:|:-------------------------:
18+
![image](https://github.com/user-attachments/assets/0d51e9cc-b400-4e0f-8d3b-03b07d5bfdec) | ![image](https://github.com/user-attachments/assets/e9f83422-d4d8-4c1d-a470-765a0aaca1da)
19+
20+
1221

13-
This library provides an amazing Expandable card compose which you can use to show simple information or can put your own compose inside it.
1422

15-
![images of the library](https://github.com/user-attachments/assets/d3f05920-a9ad-4977-a338-c765116a2248)
1623

1724
## Implementation
1825

@@ -33,35 +40,22 @@ Add it in your root build.gradle at the end of repositories:
3340
**Step 2**. Add the dependency
3441

3542
dependencies {
36-
implementation 'com.github.ErrorxCode:ExpandableCard:Tag'
43+
implementation 'com.github.ErrorxCode:RingPI-compose:Tag'
3744
}
3845

39-
[![](https://jitpack.io/v/ErrorxCode/ExpandableCard.svg)](https://jitpack.io/#ErrorxCode/ExpandableCard)
46+
[![](https://jitpack.io/v/ErrorxCode/RingPI-compose.svg)](https://jitpack.io/#ErrorxCode/RingPI-compose)
4047

4148

4249
## Usage/Examples
4350

44-
#### ExpandableCard
45-
```kotlin
46-
ExpandableCard("A beautiful landscape") {
47-
Image(
48-
painter = painterResource(R.drawable.img), contentDescription = "",
49-
contentScale = ContentScale.FillWidth,
50-
modifier = Modifier.fillMaxWidth()
51-
)
52-
}
53-
```
54-
55-
#### SimpleInfo card
5651
```kotlin
57-
SimpleInfoCard(
58-
"About Jetpack compose",
59-
"Jetpack Compose is Android’s......."
60-
true,
61-
"View more",
62-
{
63-
println("View more clicked!")
64-
})
52+
RingProgressIndicator(
53+
radius = 200,
54+
colors = listOf(Color.Red,Color.Blue,Color.Green), // If you only want one color then pass the same color in the list.
55+
txtColor = Color.Black, //options, if not stated will use gradient color
56+
progress = 85,
57+
isHalfRing = true // false for the full circular ring
58+
)
6559
```
6660

6761

@@ -70,6 +64,6 @@ SimpleInfoCard(
7064

7165
Contributions are always welcome!
7266

73-
What you can do is you can add more customization options to it. You can anytime contact me on [instagram](https://instagram.com/x0.rahil) for any kind of help.
67+
What you can do is add more customization options to it. You can contact me anytime on [instagram](https://instagram.com/x0.rahil) for any help.
7468

7569

0 commit comments

Comments
 (0)