Skip to content

Instantly share code, notes, and snippets.

View romtsn's full-sized avatar

Roman Zavarnitsyn romtsn

View GitHub Profile
public void russian(View v) {
/* page1.setVisibility(View.INVISIBLE);
page2.setVisibility(View.INVISIBLE);
page3.setVisibility(View.INVISIBLE);
page4.setVisibility(View.VISIBLE);*/
page1=null;
page2=null;
page3=null;
/*
* Copyright (C) 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.eftimoff.empty;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.RectF;
import android.os.Handler;
import android.util.AttributeSet;
public class CurrentListRecyclerAdapter extends RecyclerView.Adapter<CurrentListRecyclerAdapter.ViewHolder> {
protected ArrayList<Order> dataset;
private ViewHolder.ViewHolderClickListener mListener;
public CurrentListRecyclerAdapter(ViewHolder.ViewHolderClickListener listener) {
super();
mListener = listener;
dataset = new ArrayList<>();
}
@romtsn
romtsn / FavoritesFragment
Last active August 29, 2015 14:25
Code example
package com.stylezappmen.android.fragments;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View parent = inflater.inflate(R.layout.your_fragment_layout, container, false);
new LoadTask().execute();
return parent;
}