Integer.toHexString(getResources().getColor(R.color.highlight_color) & 0x00ffffff);
htmlでカラー置き換えなどの時はalphaが効かないのでbit演算の論理積で必要な桁だけ取得する
import java.util.List; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.content.pm.ResolveInfo; | |
import android.net.Uri; | |
public class Util { |
$ adb shell am start -n com.mochico.app/.TestActivity |
keytool -list -v -keystore ~/.android/debug.keystore -storepass android -keypass android |
<?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> |
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); |
import android.util.Log; | |
public class Utils { | |
/** デバッグログ切替 */ | |
public static final boolean isLogging = true; | |
/** | |
* Logメソッドを切り換えられるdebugLog | |
* @param logVal |
Integer.toHexString(getResources().getColor(R.color.highlight_color) & 0x00ffffff);
htmlでカラー置き換えなどの時はalphaが効かないのでbit演算の論理積で必要な桁だけ取得する
Android Architecture Components 勉強会 #3
https://gdg-tokyo.connpass.com/event/79370/
[ | |
"あけび", | |
"アサイー", | |
"アセロラ", | |
"アボカド", | |
"あんず", | |
"いちご", | |
"いちじく", | |
"いよかん", | |
"梅", |