Skip to content

Commit e23da6b

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 9937b26 + ef88d18 commit e23da6b

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ clockwidget with real time and animation
33

44
you can easily edit source code based on your requirment please look at clockview.java it easy to customize
55

6-
<image src=https://user-images.githubusercontent.com/20221469/58963056-1cedc980-87ca-11e9-9134-eb03611694e3.gif
6+
<image src=/clockk.gif
77
width=225 height=400>
88

99
**note:** use only square view
@@ -13,13 +13,30 @@ you can easily edit source code based on your requirment please look at clockvie
1313
<com.clock.clockviewlib.ClockView
1414
android:layout_width="350dp"
1515
android:layout_height="350dp"
16+
app:backimage="#fff"
17+
app:removeborder="false"
18+
app:hourcolor="#000"
19+
app:mincolor="#000"
20+
app:seccolor="#FF0000"
21+
app:txtcolor="#000"
22+
app:dotcolor="#000"
1623
app:layout_constraintBottom_toBottomOf="parent"
1724
app:layout_constraintEnd_toEndOf="parent"
1825
app:layout_constraintStart_toStartOf="parent"
1926
app:layout_constraintTop_toTopOf="parent" />
2027

2128
```
2229

30+
```java
31+
ClockView clockView=findViewById(R.id.clockView);
32+
clockView.setbackImageResource(R.mipmap.pexelsmip);//set background image resource or color resource
33+
clockView.setborder(true);//add or remove outline border
34+
clockView.setHourcolor(Color.WHITE);//hour needle color change
35+
clockView.setMincolor(Color.WHITE);//min needle color change
36+
clockView.setSeccolor(Color.RED);//sec needle color change
37+
clockView.setTextcolor(Color.WHITE);//dot and next color change
38+
39+
```
2340

2441
## Developer
2542
jignesh khunt

clockk.gif

3.03 MB
Loading

0 commit comments

Comments
 (0)