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
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); |
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
private static int blendColors(int from, int to, float ratio) { | |
final float inverseRation = 1f - ratio; | |
final float r = Color.red(from) * ratio + Color.red(to) * inverseRation; | |
final float g = Color.green(from) * ratio + Color.green(to) * inverseRation; | |
final float b = Color.blue(from) * ratio + Color.blue(to) * inverseRation; | |
return Color.rgb((int) r, (int) g, (int) b); | |
} |
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
if (BuildConfig.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
"@style/Widget.AppCompat.Button.Colored" |
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
ViewCompat.setNestedScrollingEnabled(listView, true); |
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 String getKeyHash(final Context context) { | |
PackageInfo packageInfo = getPackageInfo(context, PackageManager.GET_SIGNATURES); | |
if (packageInfo == null) | |
return null; | |
for (Signature signature : packageInfo.signatures) { | |
try { | |
MessageDigest md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); | |
return Base64.encodeToString(md.digest(), Base64.NO_WRAP); |
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
<item name="elevation">0dp</item> |