Skip to content

Instantly share code, notes, and snippets.

🚀
Hard work

Uzias uziassantosferreira

🚀
Hard work
View GitHub Profile
@davidwhitman
davidwhitman / Preferences.kt
Last active Jun 10, 2020
Android SharedPreferences helper class for Kotlin. Easy-to-use delegated properties, automatic database creation, and listening for property changes.
View Preferences.kt
import android.content.Context
import android.content.SharedPreferences
import kotlin.reflect.KProperty
/**
* Represents a single [SharedPreferences] file.
*
* Usage:
*
* ```kotlin
@vijaysharm
vijaysharm / WeekPager.java
Last active Jan 21, 2016
A Calendar View pager
View WeekPager.java
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.support.annotation.ColorRes;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
You can’t perform that action at this time.