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
| html, body { | |
| margin:0; | |
| padding:0; | |
| height:100%; | |
| } | |
| html { | |
| background:-webkit-linear-gradient(left, #000, #fff); | |
| background: -moz-linear-gradient(left, #000, #fff); | |
| background: -o-linear-gradient(left, #000, #fff); |
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
| /** | |
| * Launch an activity. | |
| * @param context The context to use. Usually your Application or Activity object. | |
| * @param packageName The name of the package that the component exists in. Can not be null. | |
| * @param className The name of the class inside of pkg that implements the component. Can not be null. | |
| * @see {ANDROID_SDK}/samples/android-{VERSION}/Home/src/com/example/android/home/Home.java | |
| */ | |
| private void launch(Context context, String packageName, String className) { | |
| if (context == null || packageName == null || className == null) | |
| return; |
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
| // Fullscreen sketch example under multi-screen environment | |
| // @see http://processing.org/discourse/beta/num_1185318989.html | |
| import java.awt.*; | |
| static final int PREFERRED_GRAPHICS_DEVICE_INDEX = 1; //< This value represents the target monitor. | |
| Rectangle monitorBounds = new Rectangle(); | |
| public void init() { |
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
| //{ Locate follows into your class | |
| public static class ApplicationInfo { | |
| public String label; | |
| public String name; | |
| public String packageName; | |
| public Drawable icon; | |
| @Override | |
| public String toString() { | |
| return "label:" + label + " name:" + name + " packageName:" |
NewerOlder