- ApplicationのonCreateで"AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)"を追加
- android:srcをapp:srcCompatに変更する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class OnScrollListener extends RecyclerView.OnScrollListener { | |
| private LinearLayoutManager mLayoutManager; | |
| private int mVisibleThreshold = 2; | |
| private int mPreviousItemCount = 0; | |
| private boolean mLoading = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.sample.view; | |
| import android.app.AlertDialog; | |
| import android.app.Dialog; | |
| import android.content.DialogInterface; | |
| import android.os.Bundle; | |
| import android.support.annotation.NonNull; | |
| import android.support.v4.app.DialogFragment; | |
| import android.util.DisplayMetrics; | |
| import android.util.Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentPagerAdapter; | |
| import android.view.ViewGroup; | |
| public class PagerAdapter extends FragmentPagerAdapter { | |
| private Context mContext; |
- Style guide
https://github.com/styleguide/ruby/classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |