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
| using System; | |
| using OpenTK; | |
| using OpenTK.Graphics; | |
| using OpenTK.Graphics.ES20; | |
| using OpenTK.Platform; | |
| using OpenTK.Platform.Android; | |
| using Android.Views; | |
| using Android.Content; |
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
| # This is a monkeyrunner jython script that opens a connection to an Android | |
| # device and starts camera app and makes photos by touching the camerabutton. | |
| # | |
| # See http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html | |
| # | |
| # usage: monkeyrunner photo_monkey.py | |
| # | |
| # Imports the monkeyrunner modules used by this program | |
| from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice |
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
| /** | |
| * Logging Heap Info for Android | |
| * @source <a href="http://stackoverflow.com/a/8018476/918211">StackOverflow Thread</a> | |
| */ | |
| public static void logHeap(Class clazz) { | |
| final String APP = "MyApp"; | |
| Double allocated = new Double(Debug.getNativeHeapAllocatedSize())/1048576d; | |
| Double available = new Double(Debug.getNativeHeapSize())/1048576.0d; | |
| Double free = new Double(Debug.getNativeHeapFreeSize())/1048576.0d; | |
| DecimalFormat df = new DecimalFormat(); |
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.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.Matrix; | |
| import android.graphics.Paint; | |
| import android.graphics.PorterDuff.Mode; | |
| import android.graphics.PorterDuffXfermode; | |
| import android.graphics.Shader.TileMode; | |
| import android.util.AttributeSet; |
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.yelp.android.ui.widgets; | |
| import com.yelp.android.R; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.PorterDuffXfermode; |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <gradient | |
| android:angle="90" | |
| android:startColor="#b30e13" | |
| android:endColor="#f5343b" | |
| /> |
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
| gen/ | |
| bin/ | |
| .classpath | |
| .project |
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 static void logHeap(Class clazz) { | |
| Double allocated = new Double(Debug.getNativeHeapAllocatedSize())/new Double((1048576)); | |
| Double available = new Double(Debug.getNativeHeapSize())/1048576.0; | |
| Double free = new Double(Debug.getNativeHeapFreeSize())/1048576.0; | |
| DecimalFormat df = new DecimalFormat(); | |
| df.setMaximumFractionDigits(2); | |
| df.setMinimumFractionDigits(2); | |
| String APP = "Bitmap"; | |
| Log.d(APP, "debug. ================================="); |
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
| -optimizationpasses 5 | |
| -dontusemixedcaseclassnames | |
| -dontskipnonpubliclibraryclasses | |
| -dontpreverify | |
| -verbose | |
| -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | |
| -ignorewarnings | |
| -renamesourcefileattribute SourceFile | |
| -keepattributes SourceFile,LineNumberTable,*Annotation*,Signature |
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.support.v4.app; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.view.ContextMenu; | |
| import android.view.ContextMenu.ContextMenuInfo; | |
| import android.view.Gravity; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.View.OnCreateContextMenuListener; |