Skip to content

Instantly share code, notes, and snippets.

View mauriciogior's full-sized avatar

Maurício Giordano mauriciogior

View GitHub Profile
@mauriciogior
mauriciogior / gist:527570bab1ae55d7aa98
Last active August 29, 2015 14:13
ImageView with background fill

Example

Screenshot

There is no support for horizontal fill, just vertical.

public class ImageViewWithFill extends ImageView {

    private final int fillColor = 0xff66ffcc; // fill color
@mauriciogior
mauriciogior / LinkedInActivity.java
Last active December 19, 2018 06:41
SignIn with LinkedIn Android (retrieving email address)
import com.google.code.linkedinapi.client.LinkedInApiClient;
import com.google.code.linkedinapi.client.LinkedInApiClientFactory;
import com.google.code.linkedinapi.client.enumeration.ProfileField;
import com.google.code.linkedinapi.client.oauth.LinkedInAccessToken;
import com.google.code.linkedinapi.client.oauth.LinkedInOAuthService;
import com.google.code.linkedinapi.client.oauth.LinkedInRequestToken;
import com.google.code.linkedinapi.schema.Person;
/* DON'T FORGET TO PUT THIS ON YOUR MANIFEST:
<activity