To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
OkHttpClient okHttpClient = new OkHttpClient(); | |
try { | |
int cacheSize = 10 * 1024 * 1024 // 10 MiB | |
Cache cache = new Cache(getCacheDir(), cacheSize); | |
okHttpClient.setCache(cache); | |
} catch (IOException e) { | |
Log.e(TAG, "Could not set cache", e); | |
} | |
// Forces cache. Used for cache connection |
@Override | |
public void onStart() { | |
super.onStart(); | |
ObjectAnimator objectAnimator = ObjectAnimator.ofFloat(new PagerHintMovement(-10), "progress", -1f, 1f); | |
objectAnimator.setInterpolator(new AccelerateInterpolator()); | |
objectAnimator.setDuration(500); | |
objectAnimator.setRepeatCount(3); | |
objectAnimator.setRepeatMode(ValueAnimator.REVERSE); | |
objectAnimator.addListener(new Animator.AnimatorListener() { |