Skip to content

Instantly share code, notes, and snippets.


Fenil Patel Fenscode

Block or report user

Report or block Fenscode

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
Fenscode /
Last active Mar 12, 2019
This gist is just about useful links, docs, blog or resources which are very useful during the write an Application. It makes the development process much easier and fun.

Data Binding

How to Use Data Binding Library with Kotlin – A Step By Step Guide

If you want to use data binding and Kotlin, here are a few things to keep in mind:

Data binding is a support library, so it can be used with all Android platform versions all the way back to Android 2.1 (API level 7+). To use data binding, you need Android Plugin for Gradle 1.5.0-alpha1 or higher. You can see here how to update the Android Plugin for Gradle.


arunkumar9t2 / PreferencesX.kt
Last active Aug 22, 2019
Android PreferenceScreen DSL for using with androidx.preference framework.
View PreferencesX.kt
import android.content.Context
import androidx.annotation.StringRes
import androidx.preference.*
* DSL marker for restricting access scope when [PreferencesBuilder.preference] is nested.
nesquena /
Last active Jan 1, 2020
Snap-to-Center RecyclerView Extension
// From:
public class SnappyRecyclerView extends RecyclerView {
// Use it with a horizontal LinearLayoutManager
// Based on
public SnappyRecyclerView(Context context) {
You can’t perform that action at this time.