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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape | |
android:shape="rectangle"> | |
<solid android:color="#ffcccccc"/> | |
</shape> | |
</item> | |
<item android:drawable="@drawable/highlight_and_shadow"/> | |
</layer-list> |
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
<html> | |
<head> | |
<style> body { font-family: sans-serif; } | |
div { background-color: #eeeeee; padding: 1em; white-space: pre-wrap; font-family: monospace } | |
</style> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
</head> | |
<body> | |
<h3><a href="http://jakewharton.github.io/butterknife/">Butter Knife</a></h3> |
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
// AndroidManifest.xml に <uses-permission android:name="android.permission.WRITE_SETTINGS"/> を書くこと | |
final int brightness = 128; // 0-255 の範囲で明るさを指定する | |
// バックライトの明るさの設定方法は、普通のAndroid端末と同じ | |
Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, brightness); | |
// Samsung Gear Live の設定画面では5段階(括弧の中は設定画面で選択した場合の値) | |
// 5(255): 255-230 |
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
// Google Plus | |
compile "com.google.android.gms:play-services-plus:6.5.+" | |
// Google Account Login | |
compile "com.google.android.gms:play-services-identity:6.5.+" | |
// Google Activity Recognition | |
compile "com.google.android.gms:play-services-location:6.5.+" | |
// Google App Indexing | |
compile "com.google.android.gms:play-services-appindexing:6.5.+" | |
// Google Cast | |
compile "com.google.android.gms:play-services-cast:6.5.+" |
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
-Xms2048m | |
-Xmx2048m | |
-XX:MaxPermSize=768m | |
-XX:ReservedCodeCacheSize=256m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops |
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
import android.content.Context; | |
import java.io.File; | |
import io.realm.Realm; | |
import io.realm.RealmMigration; | |
import io.realm.exceptions.RealmMigrationNeededException; | |
public class RealmUtils { | |
Applicati |
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
$ diff -Nur 22.1.0 22.1.1 | |
diff -Nur 22.1.0/android/support/v4/view/LayoutInflaterCompatHC.java 22.1.1/android/support/v4/view/LayoutInflaterCompatHC.java | |
--- 22.1.0/android/support/v4/view/LayoutInflaterCompatHC.java 2015-04-20 18:55:38.000000000 +0900 | |
+++ 22.1.1/android/support/v4/view/LayoutInflaterCompatHC.java 2015-04-23 18:58:12.000000000 +0900 | |
@@ -49,7 +49,16 @@ | |
final LayoutInflater.Factory2 factory2 = factory != null | |
? new FactoryWrapperHC(factory) : null; | |
inflater.setFactory2(factory2); | |
- forceSetFactory2(inflater, factory2); | |
+ |
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
repositories { | |
maven { | |
url 'https://github.com/zaki50/bundles_maven_repo/raw/master/maven_repo' | |
} | |
} | |
dependencies { | |
compile 'com.neenbedankt.bundles:bundles:1.0.3' | |
compile 'com.neenbedankt.bundles:frozen:1.0.3' |
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.example; | |
import android.support.annotation.IntDef; | |
import android.util.SparseArray; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import static com.example.Size.ValidSize.SIZE_L; | |
import static com.example.Size.ValidSize.SIZE_M; |
OlderNewer