Convert 32dp to pixels
Resources r = getResources();
float pixels = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 32, r.getDisplayMetrics());
private class FetchContacts extends AsyncTask<Void, Void, ArrayList<Contact>> { | |
private final String DISPLAY_NAME = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB ? | |
ContactsContract.Contacts.DISPLAY_NAME_PRIMARY : ContactsContract.Contacts.DISPLAY_NAME; | |
private final String FILTER = DISPLAY_NAME + " NOT LIKE '%@%'"; | |
private final String ORDER = String.format("%1$s COLLATE NOCASE", DISPLAY_NAME); | |
@SuppressLint("InlinedApi") |
// notice the callback here
git.getFeed(new Callback<String>() {
@Override
public void success(String result, Response response) {
Log.d("success" , "Data received: " + result);
}
@Override
public void failure(RetrofitError error) {
# project gradle.properties by srayhunter@github | |
# run the daemon on builds | |
org.gradle.daemon=true | |
org.gradle.jvmargs=-Djava.awt.headless=true -Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_checked="true"> | |
<shape> | |
<solid android:color="@android:color/white"/> | |
<corners android:radius="5dp"/> | |
</shape> | |
</item> | |
<item android:drawable="@drawable/vector"/> | |
</layer-list> |
100% — FF | |
95% — F2 | |
90% — E6 | |
85% — D9 | |
80% — CC | |
75% — BF | |
70% — B3 | |
65% — A6 | |
60% — 99 | |
55% — 8C |
I hereby claim:
To claim this, I am signing this object:
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist