You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
object a<T> { | |
operator fun get(vararg values:T) = values | |
} | |
a[] // empty array | |
a[1, 2, 3] // arrayOf(1,2,3) |
package net.aquadc.flawless.service | |
import android.app.Service | |
import android.content.Context | |
import android.content.Intent | |
import android.content.ServiceConnection | |
import android.os.Binder | |
import android.os.IBinder | |
/** |
package net.aquadc.commonandroid.views | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.graphics.drawable.BitmapDrawable | |
import android.graphics.drawable.ColorDrawable | |
import android.graphics.drawable.Drawable | |
import android.graphics.drawable.TransitionDrawable | |
import android.view.View |
package be.digitalia.common.widgets; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.support.annotation.NonNull; | |
import android.support.v4.util.LongSparseArray; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.view.ActionMode; |
ssh -D 5555 -i ~/.ssh/id_rsa login@servername -N |
You can use this class to realize a simple sectioned grid RecyclerView.Adapter
without changing your code.
The RecyclerView
has to use a GridLayoutManager
.
This is a porting of the class SimpleSectionedListAdapter
provided by Google
If you are looking for a sectioned list RecyclerView.Adapter
you can take a look here
/* | |
* 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 |