These layouts provide a simple undo bar with Material Design.
This gist does not contain any Android L API.
undobar with action | undobar mobile |
---|---|
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 | |
60% — 99 | |
55% — 8C |
echo "y" | android update sdk --no-ui; echo "yes" | apm upgrade; softwareupdate -i -a; brew update; brew upgrade; brew cleanup; brew cask cleanup; npm update npm -g; npm update -g; gem update |
#!/usr/bin/python | |
# License for any modification to the original (linked below): | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# Sebastiano Poggi and Daniele Conti wrote this file. As long as you retain | |
# this notice you can do whatever you want with this stuff. If we meet some day, | |
# and you think this stuff is worth it, you can buy us a beer in return. | |
import argparse, sys, subprocess, tempfile |
@Singleton | |
@Provides | |
CustomRequestInterceptor provideRequestInterceptor(final Application application, SharedPreferencesCookieStore cookieStore) { | |
return new CustomRequestInterceptor(application, cookieStore); | |
} | |
@Singleton | |
@Provides | |
RestAdapter provideRestAdapter(Client client, DynamicEndpoint endpoint, | |
Converter converter, |
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Add this as a debug manifest so the permissions won't be required by your production app --> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | |
</manifest> |
public class EventBus { | |
private static final Handler mainThread = new Handler(Looper.getMainLooper()); | |
private static EventBus mInstance; | |
private final Bus mBus; | |
@DebugLog | |
private EventBus() { | |
// Don't let this class get instantiated directly. | |
mBus = new Bus(); |
var paperHandler = function(event) { | |
if(!event.target.value) { | |
value = event.target.checked; | |
} else { | |
value = event.target.value; | |
} | |
$scope.$apply(function() { | |
$scope.workOrder[event.target.getAttribute("ng-model")] = value; | |
}); |
It is a simple gist to realize the UI ANIMATION IN PHOTOSHOP – TUTORIAL #1 provided by Taylor Ling .
Due to shadow and Z-animation, this code can work only on L-devices.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.