Skip to content

Instantly share code, notes, and snippets.

View markshiz's full-sized avatar

Mark Schisler markshiz

View GitHub Profile
@markshiz
markshiz / CacheTest.java
Last active May 5, 2018 02:34 — forked from swankjesse/RetrofitCachingExample.java
Demonstrate HTTP caching with OkHttp 2.5.0 and Retrofit 1.9.0.
/*
* Copyright (C) 2013 Square, Inc.
*
* 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
import android.content.Context;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.TextView;
import com.github.jobs.BuildConfig;
import java.util.ArrayList;
import java.util.List;