DayNightSwitch

General

Category
Free
Tag
Checkboxes
License
N/A
Min SDK
9 (Android 2.3–2.3.2 Gingerbread)
Registered
Jul 16, 2017
Favorites
4
Link
https://github.com/Mahfa/DayNightSwitch
See also
CheckView
SwitchButton
Android-SwitchIcon
FunSwitch
Toggle

Additional

Language
Java
Version
1.2.1 (Jul 22, 2017)
Created
Jul 16, 2017
Updated
Jul 22, 2017 (Retired)
Owner
Mahdi Fallahi (Mahfa)
Contributor
Mahdi Fallahi (Mahfa)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertising

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.2'
 }

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"/>