Original solution sacrifices new api lint check.
Here my solution:
int minSdk = hasProperty('minSdk') ? minSdk.toInteger() : 16
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
| 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; |
Original solution sacrifices new api lint check.
Here my solution:
int minSdk = hasProperty('minSdk') ? minSdk.toInteger() : 16
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
[Android Transition Framework][transition-framework] can be used for three main things:
| public Bitmap getScreenshotFromRecyclerView(RecyclerView view) { | |
| RecyclerView.Adapter adapter = view.getAdapter(); | |
| Bitmap bigBitmap = null; | |
| if (adapter != null) { | |
| int size = adapter.getItemCount(); | |
| int height = 0; | |
| Paint paint = new Paint(); | |
| int iHeight = 0; | |
| final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| public class AccountAuthenticator extends AbstractAccountAuthenticator { | |
| private final Context context; | |
| @Inject @ClientId String clientId; | |
| @Inject @ClientSecret String clientSecret; | |
| @Inject ApiService apiService; | |
| public AccountAuthenticator(Context context) { | |
| super(context); |