Made a huge progress with new playing screen. Almost done now.
This commit is contained in:
parent
60bdc1819e
commit
c5ebe5a64c
8 changed files with 133 additions and 40 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue