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
#!/bin/sh | |
# License for any modification to the original (linked below): | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Sebastiano Poggi wrote this file. As long as you retain | |
# this notice you can do whatever you want with this stuff. If we meet some day, | |
# and you think this stuff is worth it, you can buy us a beer in return. | |
# | |
# Based on http://bit.ly/295BHLx |
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
import java.util.List; | |
import android.database.Cursor; | |
import android.os.Build; | |
import android.support.v4.widget.CursorAdapter; | |
import android.view.View; | |
import android.widget.AbsListView; | |
import android.widget.Adapter; | |
import android.widget.AdapterView; | |
import android.widget.AdapterViewAnimator; |
package com.ics.rxsamples | |
import android.app.Fragment; | |
import java.util.concurrent.TimeUnit; | |
import rx.Observable; | |
import rx.Subscription; | |
import rx.android.schedulers.AndroidSchedulers; | |
import rx.functions.Action1; | |
import rx.functions.Func1; | |
import rx.subjects.PublishSubject; |
package com.cinemagraph; | |
import android.graphics.Matrix; | |
import android.support.v4.view.ViewPager; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.FrameLayout; | |
import android.widget.ImageView; | |
import android.widget.RelativeLayout; |
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 - Nathan Barraille | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
// You can place it in the root build.gradle | |
allprojects { | |
tasks.withType(JavaForkOptions) { | |
// Forked processes like GradleWorkerMain for tests won't steal focus! | |
jvmArgs '-Djava.awt.headless=true' | |
} | |
} |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.novoda.espresso"> | |
<!-- For espresso testing purposes, this is removed in live builds, but not in dev builds --> | |
<uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> | |
<!-- ... --> | |
public class ErrorLabelLayout extends LinearLayout implements ViewGroup.OnHierarchyChangeListener { | |
private static final int ERROR_LABEL_TEXT_SIZE = 12; | |
private static final int ERROR_LABEL_PADDING = 4; | |
private TextView mErrorLabel; | |
private Drawable mDrawable; | |
private int mErrorColor; | |
public ErrorLabelLayout(Context context) { |