This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| import android.graphics.*; | |
| import com.squareup.picasso.Transformation; | |
| /** | |
| * Transforms an image into a circle representation. Such as a avatar. | |
| */ | |
| public class CircularTransformation implements Transformation | |
| { | |
| int radius = 10; |
| public static class HideExtraOnScroll extends RecyclerView.OnScrollListener{ | |
| final static Interpolator ACCELERATE = new AccelerateInterpolator(); | |
| final static Interpolator DECELERATE = new DecelerateInterpolator(); | |
| WeakReference<View> mTarget; | |
| HideExtraOnScrollHelper mScrollHelper; | |
| boolean isExtraObjectsOutside; |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| public class ErrorLabelLayout extends LinearLayout implements ViewGroup.OnHierarchyChangeListener { | |
| private static final int ERROR_LABEL_TEXT_SIZE = 12; | |
| private static final int ERROR_LABEL_PADDING = 4; | |
| private TextView mErrorLabel; | |
| private Drawable mDrawable; | |
| private int mErrorColor; | |
| public ErrorLabelLayout(Context context) { |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| /* | |
| * Copyright (C) 2015 Jake Wharton | |
| * | |
| * 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 |
| public abstract class BaseStatelessBlackBoxEspressoTest<T extends Activity> extends ActivityInstrumentationTestCase2<T> { | |
| private SystemAnimations mSystemAnimations; | |
| public BaseStatelessBlackBoxEspressoTest(Class clazz) { | |
| super(clazz); | |
| } | |
| @Override | |
| protected void setUp() throws Exception { |
| ===== Results of comparing two JARs ===== | |
| Generated by @ https://github.com/JustinAngel/compareJars | |
| Showing API additions only. Removed APIs aren't shown. | |
| Comparing 3479 classes from C:\Program Files (x86)\Android\sdk\platforms\android-MNC\android.jar | |
| To 3683 classes from C:\Program Files (x86)\Android\sdk\platforms\android-22\android.jar | |
| public static final class android.Manifest$permission extends Object { |
| // ==UserScript== | |
| // @name Translate Amazon | |
| // @namespace http://your.homepage/ | |
| // @version 0.1 | |
| // @description Translate the Amazon service names into plain English. See https://www.expeditedssl.com/aws-in-plain-english | |
| // @author @ideasasylum | |
| // @match https://*.console.aws.amazon.com/console/home?* | |
| // @grant none | |
| // ==/UserScript== |