Android Architecture Components 勉強会 #3
https://gdg-tokyo.connpass.com/event/79370/
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"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#fff"> | |
<android.support.constraint.Guideline | |
android:id="@+id/vertical_center_guideline" | |
android:layout_width="wrap_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
[ | |
"あけび", | |
"アサイー", | |
"アセロラ", | |
"アボカド", | |
"あんず", | |
"いちご", | |
"いちじく", | |
"いよかん", | |
"梅", |
Integer.toHexString(getResources().getColor(R.color.highlight_color) & 0x00ffffff);
htmlでカラー置き換えなどの時はalphaが効かないのでbit演算の論理積で必要な桁だけ取得する
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.util.Log; | |
public class Utils { | |
/** デバッグログ切替 */ | |
public static final boolean isLogging = true; | |
/** | |
* Logメソッドを切り換えられるdebugLog | |
* @param logVal |
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 class MyJsonObjectRequest extends JsonObjectRequest { | |
private MyJsonObjectRequest(int method, String url, | |
JSONObject jsonRequest, Listener<JSONObject> listener, | |
ErrorListener errorListener) { | |
super(method, url, jsonRequest, listener, errorListener); | |
} | |
public MyJsonObjectRequest(String url, JSONObject jsonRequest, | |
Listener<JSONObject> listener, ErrorListener errorListener) { | |
super(url, jsonRequest, listener, errorListener); |
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"?> | |
<resources xmlns:android="http://schemas.android.com/apk/res/android"> | |
<style name="Theme.MyDialog" parent="android:style/Theme.Dialog"> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowBackground">@android:color/transparent</item> | |
</style> | |
</resources> |
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
keytool -list -v -keystore ~/.android/debug.keystore -storepass android -keypass android |
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
$ adb shell am start -n com.mochico.app/.TestActivity |
NewerOlder