I hereby claim:
- I am firsto on github.
- I am first (https://keybase.io/first) on keybase.
- I have a public key ASDgkfUCx3tCc1M5DXoKMaPMOHsKSTFFn_FQvxeZPkE4ZQo
To claim this, I am signing this object:
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import android.graphics.Paint.Style.FILL | |
import android.graphics.Paint.Style.STROKE | |
import android.graphics.Path | |
import android.graphics.Rect | |
import android.util.AttributeSet | |
import android.view.View |
ImageView imgview = (ImageView)findViewById(R.id.imageView_grayscale); | |
imgview.setImageBitmap(bitmap); | |
// Apply grayscale filter | |
ColorMatrix matrix = new ColorMatrix(); | |
matrix.setSaturation(0); | |
ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix); | |
imgview.setColorFilter(filter); |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import gb.sweetlifecl.R; | |
public class OrderListDividerDecorator extends RecyclerView.ItemDecoration { |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParseException; | |
import java.lang.reflect.Type; | |
import java.util.ArrayList; | |
import java.util.Collections; |
import rx.Scheduler; | |
public class SchedulerProvider { | |
private final Scheduler subscribeOn; | |
private final Scheduler observeOn; | |
public SchedulerProvider(Scheduler subscribeOn, Scheduler observeOn) { | |
this.subscribeOn = subscribeOn; | |
this.observeOn = observeOn; |
import com.arellomobile.mvp.MvpPresenter; | |
import com.arellomobile.mvp.MvpView; | |
import gb.sweetlifecl.di.module.SchedulerProvider; | |
import rx.Completable; | |
import rx.Observable; | |
import rx.Single; | |
import rx.Subscription; | |
public abstract class RxPresenter<V extends MvpView> extends MvpPresenter<V> { |
class BuildingImageAdapter extends FastItemAdapter<BuildingImageItem> { | |
@Override | |
public int getAdapterItemCount() { | |
return Integer.MAX_VALUE; | |
} | |
@Override | |
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { | |
position = position % getItemAdapter().getAdapterItems().size(); | |
super.onBindViewHolder(holder, position); |
package ru.firsto.testtesttest.ui.activity.auth; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
/** | |
* @author razor | |
* @created 23.03.17 | |
**/ |
I hereby claim:
To claim this, I am signing this object:
import java.util.Scanner; | |
public class Main{ | |
public static void main(String []args){ | |
Scanner sc = new Scanner(System.in); | |
String mn = sc.nextLine(); |