- ★ 推荐 网易开源镜像站: http://mirrors.163.com/
- 搜索开源镜像: http://mirrors.sohu.com/
- 北京交通大学: http://mirror.bjtu.edu.cn/cn/ <教育网荐>
- 兰州大学: http://mirror.lzu.edu.cn/ <西北高校FTP搜索引擎>
- 厦门大学: http://mirrors.xmu.edu.cn/
- 上海交通大学: http://ftp.sjtu.edu.cn/
- 清华大学: http://mirrors.tuna.tsinghua.edu.cn/
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
/** | |
* 短小精干的<strong>ListView</strong>下拉刷新和加载更多组件 | |
* | |
* <p><strong>变更说明:</strong> | |
* <br> | |
* 默认如果设置了{@link OnRefreshListener}接口和{@link OnLoadMoreListener}接口, | |
* 则打开下拉刷新和加载更多功能。 | |
* <br> | |
* 若设置监听器为null,抛出异常。 | |
* <br> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]" -f account_1
Option_L to Control_L use Karabiner
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
OkHttpClient okHttpClient = new OkHttpClient(); | |
okHttpClient.interceptors().add(mRefreshAndRetryInterceptor); | |
mRestAdapter = new RestAdapter.Builder() | |
... | |
.setClient(new OkClient(okHttpClient)) | |
.build(); | |
private final Interceptor mRefreshAndRetryInterceptor = new Interceptor() { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
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 java.util.ArrayList; | |
import java.util.List; | |
import uk.co.ribot.easyadapter.BaseEasyRecyclerAdapter; | |
import uk.co.ribot.easyadapter.ItemViewHolder; | |
public class BaseFilterableEasyRecyclerAdapter<T> extends BaseEasyRecyclerAdapter<T> | |
{ |
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.app.Activity; | |
import android.content.pm.PackageManager; | |
import android.support.v4.app.ActivityCompat; | |
import android.support.v4.content.ContextCompat; | |
import android.util.Log; | |
/** | |
* 检查权限工具类 | |
* Created by johnwatson on 11/17/15. | |
*/ |
OlderNewer