Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devholic/android-clockview

:alarm_clock: Simple clock view for Android to show time information.
https://github.com/devholic/android-clockview

Last synced: 4 months ago
JSON representation

:alarm_clock: Simple clock view for Android to show time information.

Awesome Lists containing this project

README

        

# ClockView

![SampleScreenshot](https://31.media.tumblr.com/100b0ad24fa7869af91ef1be8babce98/tumblr_inline_nht4j1SFlH1t5gb7q.png)

## How to

Download ClockView and import it to your workspace and add this as a module.

## XML Usage
>```xml
> xmlns:app="http://schemas.android.com/apk/res-auto"
> android:layout_width="96dp"
> android:layout_height="96dp"
> app:clockColor="[color]"
> app:h="[HH]"
> app:m="[mm]"/>
>```

## Java Usage
>```java
> clockview.setClockColor([color]); // Set clock color
> clockview.setHour([HH]); // Set clock hour
> clockview.setMinute([mm]); // Set clock minute
>```