Skip to content

Instantly share code, notes, and snippets.

🇮🇳
Fenscode

Fenil Patel Fenscode

🇮🇳
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
Fenscode / AndroidUsefulLinksResources.md
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.
View AndroidUsefulLinksResources.md

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.

Reference:

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