Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hadiidbouk authored Oct 18, 2017
1 parent bb9743a commit 5747850
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,29 @@ compile 'com.github.hadiidbouk:ChartProgressBar:1.0.1'

1. Add `ChartProgressBar` to your layout :

Don't forget to add the namespace on the root tag ```xmlns:app="http://schemas.android.com/apk/lib/com.hadiidbouk.charts"```
Don't forget to add the namespace on the root tag ```xmlns:hd="http://schemas.android.com/apk/lib/com.hadiidbouk.charts"```
```xml
<com.hadiidbouk.charts.ChartProgressBar
android:id="@+id/ChartProgressBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:gravity="center"
app:hdBarCanBeClick="true"
app:hdBarHeight="170dp"
app:hdBarWidth="16dp"
app:hdBarRadius="10dp"
app:hdMaxValue="10"
app:hdEmptyColor="@color/empty"
app:hdProgressColor="@color/progress"
app:hdProgressClickColor="@color/progress_click"
app:hdPinBackgroundColor="@color/pin_background"
app:hdPinTextColor="@color/pin_text"
app:hdPinPadding="3dp"
app:hdBarTitleColor="@color/bar_title_color"
app:hdBarTitleTxtSize="12sp"
app:hdPinTxtSize="17sp"
app:hdPinMarginTop="10dp"/>
hd:hdBarCanBeClick="true"
hd:hdBarHeight="170dp"
hd:hdBarWidth="16dp"
hd:hdBarRadius="10dp"
hd:hdMaxValue="10"
hd:hdEmptyColor="@color/empty"
hd:hdProgressColor="@color/progress"
hd:hdProgressClickColor="@color/progress_click"
hd:hdPinBackgroundColor="@color/pin_background"
hd:hdPinTextColor="@color/pin_text"
hd:hdPinPadding="3dp"
hd:hdBarTitleColor="@color/bar_title_color"
hd:hdBarTitleTxtSize="12sp"
hd:hdPinTxtSize="17sp"
hd:hdPinMarginTop="10dp"/>
```

2. Add your Data to the chart :
Expand Down

0 comments on commit 5747850

Please sign in to comment.