Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Uzias uziassantosferreira

🏠
Working from home
Block or report user

Report or block uziassantosferreira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidwhitman
davidwhitman / Preferences.kt
Last active Sep 10, 2019
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.