Skip to content

naseemakhtar994/DayNightSwitch

 
 

Repository files navigation

DayNightSwitch

A cute day night switch for android

Inspired from this gif : https://www.uplabs.com/posts/on-off-switch-7af29fd7-131a-4aac-b142-63579710f52f

How to install

Add jitpack in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

	dependencies {
	        compile 'com.github.Mahfa:DayNightSwitch:1.0'
	}

Usage

just add it to your xml layout file

    <com.mahfa.dnswitch.DayNightSwitch
        android:id="@+id/day_night_switch"
        android:layout_width="76dp"
        android:layout_height="40dp"
        android:layout_gravity="center"/>

About

a cute day night switch for android

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%