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 moe.banana.jsonapi2; | |
| import com.squareup.moshi.JsonAdapter; | |
| import com.squareup.moshi.Moshi; | |
| import com.squareup.moshi.Types; | |
| import java.io.IOException; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Array; | |
| import java.lang.reflect.ParameterizedType; |
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
| public class ClickToSelectEditText<T extends Listable> extends AppCompactEditText { | |
| List<T> mItems; | |
| String[] mListableItems; | |
| CharSequence mHint; | |
| OnItemSelectedListener<T> onItemSelectedListener; | |
| public ClickToSelectEditText(Context context) { | |
| super(context); |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * 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 |
| package com.yourco.yourapp; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; |
| #! /usr/bin/env python | |
| # Of course, the author does not guarantee safety. | |
| # I did my best by using SQLite's online backup API. | |
| from __future__ import print_function | |
| import sys, ctypes | |
| from ctypes.util import find_library | |
| SQLITE_OK = 0 | |
| SQLITE_ERROR = 1 | |
| SQLITE_BUSY = 5 |