Made a huge progress with new playing screen. Almost done now.

This commit is contained in:
Karim Abou Zeid 2015-12-02 23:22:55 +01:00
commit c5ebe5a64c
8 changed files with 133 additions and 40 deletions

View file

@ -89,6 +89,13 @@ public class Util {
return drawable;
}
public static int resolveDimensionPixelSize(@NonNull Context context, @AttrRes int dimenAttr) {
TypedArray a = context.obtainStyledAttributes(new int[]{dimenAttr});
int dimensionPixelSize = a.getDimensionPixelSize(0, 0);
a.recycle();
return dimensionPixelSize;
}
public static Drawable getTintedDrawable(@NonNull Context context, @DrawableRes int drawableResId, int color) {
Drawable drawable = ContextCompat.getDrawable(context, drawableResId);
if (drawable != null) {