Skip to content

Instantly share code, notes, and snippets.

View jasonsparc's full-sized avatar
🤖

Jason jasonsparc

🤖
View GitHub Profile

The Material Components Library introduced with the 1.2.0-alpha03 the new ShapeableImageView.

In your layout you can use:

  <com.google.android.material.imageview.ShapeableImageView
    android:id="@+id/image_view"
    app:srcCompat="@drawable/..." />
@jasonsparc
jasonsparc / SimpleCursorLoader.java
Last active August 29, 2015 14:27 — forked from casidiablo/SimpleCursorLoader.java
Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview
/*
* Copyright 2012 CodeSlap - Cristian Castiblanco
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software