Skip to content

Commit a32eff1

Browse files
authored
Update README.md
1 parent 4132ea5 commit a32eff1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
# Android-BackgroundChart
2+
3+
![screenshot](https://github.com/JastAir/Android-BackgroundChart/raw/master/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202019-03-08%20%D0%B2%2019.32.03.png)
4+
5+
It's are simple chart for background your activity or fragment. You can choose colors with gradient for display your chart the most customize or choose what kind you chart need is now, simple lines or bezier.
6+
Best it usage and good luck ;)
7+
8+
9+
# How use
10+
11+
<com.fdev.backgroundchart.GradientChart
12+
android:id="@+id/gradientChart"
13+
android:layout_width="0dp"
14+
android:layout_height="0dp"
15+
app:layout_constraintBottom_toBottomOf="parent"
16+
app:layout_constraintEnd_toEndOf="parent"
17+
app:layout_constraintStart_toStartOf="parent"
18+
app:layout_constraintTop_toTopOf="parent"
19+
app:plusColorStart="#2196F3"
20+
app:plusColorEnd="#90CAF9"
21+
app:minusColorStart="#90CAF9"
22+
app:minusColorEnd="#90CAF9"
23+
app:zoom="10"
24+
app:isBezier="true"/>
25+
26+
**And for appent your data just write for example**
27+
28+
gradientChart.chartValues = arrayOf(
29+
10f, 30f, 25f, 32f, 13f, 5f, 18f, 36f, 20f, 30f, 28f, 27f, 29f
30+
)

0 commit comments

Comments
 (0)