Correct colored status bar implementation for Lollipop, updated status bar colors in some activities to be darker than toolbar color (e.g. tag editor), added elevation to some views, etc. Getting KitKat support again for this colored UI will also come back soon with SystemBarTInt.
This commit is contained in:
parent
0f60a54d50
commit
3028b96634
22 changed files with 323 additions and 193 deletions
|
|
@ -9,6 +9,7 @@ import android.graphics.PorterDuff;
|
|||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.DrawableRes;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
|
|
@ -18,6 +19,9 @@ import android.view.inputmethod.InputMethodManager;
|
|||
|
||||
import com.kabouzeid.gramophone.R;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
|
|
@ -201,4 +205,23 @@ public class Util {
|
|||
}
|
||||
return drawable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of {@param set}. Used only for debugging purposes.
|
||||
*/
|
||||
@NonNull
|
||||
public static String setToString(@NonNull Set<String> set) {
|
||||
Iterator<String> i = set.iterator();
|
||||
if (!i.hasNext()) {
|
||||
return "[]";
|
||||
}
|
||||
StringBuilder sb = new StringBuilder().append('[');
|
||||
while (true) {
|
||||
sb.append(i.next());
|
||||
if (!i.hasNext()) {
|
||||
return sb.append(']').toString();
|
||||
}
|
||||
sb.append(", ");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue