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
| if (Build.VERSION.SDK_INT == Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { | |
| menu = new MenuWrapper(menu) { | |
| private MenuItem fix(MenuItem item) { | |
| try { | |
| Field f = item.getClass().getDeclaredField("mEmulateProviderVisibilityOverride"); | |
| f.setAccessible(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
| <!-- You can change the parent around to whatever you normally use --> | |
| <style name="DebugColors" parent="Theme.AppCompat"> | |
| <!-- System colors --> | |
| <item name="android:windowBackground">@color/__debugWindowBackground</item> | |
| <item name="android:colorPressedHighlight">#FF4400</item> | |
| <item name="android:colorLongPressedHighlight">#FF0044</item> | |
| <item name="android:colorFocusedHighlight">#44FF00</item> | |
| <item name="android:colorActivatedHighlight">#00FF44</item> |
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.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import org.jetbrains.annotations.NotNull; | |
| import org.jetbrains.annotations.Nullable; | |
| public class EmptyRecyclerView extends RecyclerView { | |
| @Nullable View emptyView; |
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
| public class ViewMatchers | |
| { | |
| @SuppressWarnings("unchecked") | |
| public static Matcher<View> withRecyclerView(@IdRes int viewId) | |
| { | |
| return allOf(isAssignableFrom(RecyclerView.class), withId(viewId)); | |
| } | |
| @SuppressWarnings("unchecked") | |
| public static ViewInteraction onRecyclerItemView(@IdRes int identifyingView, Matcher<View> identifyingMatcher, Matcher<View> childMatcher) |
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
| dependencies { | |
| compile 'com.android.support:appcompat-v7:21.+' | |
| compile 'com.wrapp.floatlabelededittext:library:0.0.5' | |
| } |
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 android.app; | |
| import android.content.Context; | |
| import android.graphics.Matrix; | |
| import android.graphics.Rect; | |
| import android.graphics.RectF; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.Parcelable; | |
| import android.os.ResultReceiver; |
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.trello.core.rx; | |
| import rx.Observable; | |
| import rx.Subscriber; | |
| /** | |
| * Passes control to another Observable if the source observable does not emit any items. | |
| * | |
| * Handy if you've a CacheObservable that does a cheap lookup and a DoHardWorkObservable that does the | |
| * hard work and you want to only do the hard work if CacheObservable is empty. |
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
| private ObjectAnimator animateRegularProgress(int finalProgress) { | |
| ObjectAnimator animation = ObjectAnimator.ofInt(regularProgressBar, PROPERTY_NAME, 0, finalProgress); | |
| animation.setDuration(ANIM_PROGRESS); | |
| animation.setInterpolator(new LinearInterpolator()); | |
| return animation; | |
| } | |
| private void animateTextProgress(float end, float total, ObjectAnimator barAnimationToCoupleTo) { |
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
| var Ix = require('ix'), | |
| Rx = require('rx'), | |
| Enumerable = Ix.Enumerable, | |
| Enumerator = Ix.Enumerator, | |
| Observable = Rx.Observable; | |
| Observable.permute = function(root, hasPermutation, resultSelector) { | |
| return Observable | |
| .returnValue({ value: root, depth: -1 }) | |
| .expandRecursive(function(wrapper) { |
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
| apply plugin: "sonar-runner" | |
| sonarRunner { | |
| sonarProperties { | |
| // connectivity | |
| property "sonar.host.url", "http://your.server/sonar" | |
| property "sonar.jdbc.url", "jdbc:mysql://..." | |
| property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver" | |
| property "sonar.jdbc.username", "..." | |
| // project configuration |