Skip to content

huteri/analogclock

Repository files navigation

Simple Analog Clock

Simple analog clock with beautiful interface and a feature to add data inside it

image

Setup

Add this to your root build.gradle file

allprojects {
	repositories {
        maven { url "https://jitpack.io" }
    }
}

Then, add the library to your module build.gradle

dependencies {
    implementation 'com.github.huteri:analogclock:x.x.x'
}

Usage

Add the view in xml

<me.huteri.analogclock.AnalogClockView
        android:id="@+id/analogClockView"
        android:layout_width="350dp"
        android:layout_height="350dp"
        android:layout_centerHorizontal="true"
        android:padding="24dp" />

See MainActivity.java for more details

Developer Note

I made an article about how I create this if you like to know.

http://huteri.me/2018/03/19/learning-custom-views-in-android/

License

Copyright 2018 Huteri Manza

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Simple Analog Clock with Clickable Data

Resources

Stars

Watchers

Forks

Packages

No packages published