This file contains 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
/* | |
* Copyright 2013 Square Inc. | |
* | |
* 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 |
This file contains 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 roboguice.astroboy; | |
import android.content.Context; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; | |
import com.google.inject.internal.Nullable; | |
import roboguice.inject.InjectView; |
This file contains 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 String getPropSystem(String key) throws IOException { | |
BufferedReader bis = null; | |
try { | |
Process ifc = Runtime.getRuntime().exec("getprop " + key); | |
bis = new BufferedReader(new InputStreamReader(ifc.getInputStream())); | |
return bis.readLine(); | |
} finally { | |
bis.close(); | |
} | |
} |
This file contains 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 uk.ac.brookes.arnaudbos.luscinia.widget; | |
import uk.ac.brookes.arnaudbos.luscinia.R; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.view.LayoutInflater; | |
import android.widget.ImageView; | |
import android.widget.RelativeLayout; | |
import android.widget.TextView; |
This file contains 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 interface ScrollViewListener | |
{ | |
void onScrollChanged(SynchronizerScrollView scrollView, int x, int y, int oldx, int oldy); | |
} |
This file contains 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.webile.OrientationDemo; | |
import java.io.BufferedInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import android.app.Activity; |
This file contains 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 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 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 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
/* | |
* ref | |
* http://www.mkyong.com/android/android-gridview-example/ | |
* http://blog.fujiu.jp/2011/11/android.html | |
* http://d.hatena.ne.jp/xuwei/20120316/1331868246 | |
* http://stackoverflow.com/questions/5730240/android-get-bounding-rectangle-of-a-view | |
*/ | |
OlderNewer