This is a list of Jetbrains IDE shortcuts I use everyday.
Comments welcome! Tell me your favorites.
| import android.content.Context | |
| import android.content.SharedPreferences | |
| import kotlin.reflect.KProperty | |
| /** | |
| * Represents a single [SharedPreferences] file. | |
| * | |
| * Usage: | |
| * | |
| * ```kotlin | 
| package com.mindorks.snaphelperexample.ui.common; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.LinearSnapHelper; | |
| import android.support.v7.widget.OrientationHelper; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.View; | 
| package com.liberorignanese.android.gist; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.text.style.ReplacementSpan; | |
| /** | |
| * Created by Libero Rignanese. | |
| */ | 
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <Button | |
| android:id="@+id/target" | |
| android:layout_width="wrap_content" | 
| ArrayList<WeakReference<ContentObserver>> observers = new ArrayList<WeakReference<ContentObserver>>(); | |
| public void loadCursor(final BetterCursorAdapter adapter, final Uri uri, final String[] projection, final String selection, final String[] selectionArgs, final String sortOrder) { | |
| final FutureCallback<BetterCursorAdapter> callback = new FutureCallback<BetterCursorAdapter>() { | |
| @Override | |
| public void onCompleted(Exception e, BetterCursorAdapter result) { | |
| if (e != null) | |
| return; | |
| View view = getView(); | |
| if (view == null) | 
| public class ArcToBezier { | |
| /** | |
| * Usage: | |
| * | |
| * javac ArcToBezier.java | |
| * java ArcToBezier x0 y0 x1 x2 rx ry theta large-arc-flag sweep-flag | |
| * | |
| * where (x0, y0) are the starting points of the arc, and the rest of the | |
| * arguments correspond to the values in the elliptical arc curve command: | 
| package com.xwray.vectorbinding; | |
| import android.databinding.BindingAdapter; | |
| import android.databinding.DataBindingUtil; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.support.graphics.drawable.VectorDrawableCompat; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.widget.TextView; |