Skip to content

Instantly share code, notes, and snippets.

@anistn
anistn / AdaptedLinearLayout.java
Created June 5, 2018 11:17
AdaptedLinearLayout to draw linearLayout using Adapter.
/**
* <p> LinearLayout generate its child content based on Adapter. This is intended to be used to
* generate dynamic content inside a scrollable content that not support nested scroll.
* <p>
* created on 13/10/2016
*
* @author anisbennsir
* @version 1.0
*/
@anistn
anistn / README.md
Created June 24, 2016 09:32 — forked from gabrielemariotti/README.md
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
package com.feizan.android.snowball.ui.imageview;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.RelativeLayout;
/**