Skip to content

Instantly share code, notes, and snippets.

why is this a feature?

Marcin Robaczyński scana

why is this a feature?
View GitHub Profile
neworld /
Last active Aug 23, 2019
How to make faster Android build without sacrificing new api lint check

Original solution sacrifices new api lint check.

Here my solution:

int minSdk = hasProperty('minSdk') ? minSdk.toInteger() : 16

apply plugin: ''

android {
    compileSdkVersion 23
MarsVard / README
Last active Jun 22, 2020
android drawable to imitate google cards.
put card.xml in your drawables directory, put colors.xml in your values directory or add the colors to your colors.xml file.
set the background of a view to card,
as you can see in card.xml the drawable handles the card margin, so you don't have to add a margin to your view
``` xml
arriolac /
Last active Apr 25, 2020
Custom Android ImageView for top-crop scaling of the contained drawable.
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.ImageView;
* Created by chris on 7/27/16.
You can’t perform that action at this time.