Added material template

This commit is contained in:
h4h13 2018-07-30 00:38:12 +05:30
parent 42765fd652
commit 210feb7aec

View file

@ -2,33 +2,32 @@ package code.name.monkey.retromusic.ui.fragments;
import android.support.annotation.DrawableRes; import android.support.annotation.DrawableRes;
import android.support.annotation.StringRes; import android.support.annotation.StringRes;
import code.name.monkey.retromusic.R; import code.name.monkey.retromusic.R;
public enum NowPlayingScreen { public enum NowPlayingScreen {
NORMAL(R.string.normal, R.drawable.np_normal, 0), NORMAL(R.string.normal, R.drawable.np_normal, 0),
FLAT(R.string.flat, R.drawable.np_flat, 1), FLAT(R.string.flat, R.drawable.np_flat, 1),
FULL(R.string.full, R.drawable.np_full, 2), FULL(R.string.full, R.drawable.np_full, 2),
PLAIN(R.string.plain, R.drawable.np_plain, 3), PLAIN(R.string.plain, R.drawable.np_plain, 3),
BLUR(R.string.blur, R.drawable.np_blur, 4), BLUR(R.string.blur, R.drawable.np_blur, 4),
COLOR(R.string.color, R.drawable.np_color, 5), COLOR(R.string.color, R.drawable.np_color, 5),
CARD(R.string.card, R.drawable.np_card, 6), CARD(R.string.card, R.drawable.np_card, 6),
TINY(R.string.tiny, R.drawable.np_tiny, 7), TINY(R.string.tiny, R.drawable.np_tiny, 7),
SIMPLE(R.string.simple, R.drawable.np_simple, 8), SIMPLE(R.string.simple, R.drawable.np_simple, 8),
BLUR_CARD(R.string.blur_card, R.drawable.np_blur_card, 9), BLUR_CARD(R.string.blur_card, R.drawable.np_blur_card, 9),
ADAPTIVE(R.string.adaptive, R.drawable.np_adaptive, 10), ADAPTIVE(R.string.adaptive, R.drawable.np_adaptive, 10),
MATERIAL(R.string.material, R.drawable.np_normal, 11); MATERIAL(R.string.material, R.drawable.np_material, 11);
@StringRes @StringRes
public final int titleRes; public final int titleRes;
@DrawableRes @DrawableRes
public final int drawableResId; public final int drawableResId;
public final int id; public final int id;
NowPlayingScreen(@StringRes int titleRes, @DrawableRes int drawableResId, int id) { NowPlayingScreen(@StringRes int titleRes, @DrawableRes int drawableResId, int id) {
this.titleRes = titleRes; this.titleRes = titleRes;
this.drawableResId = drawableResId; this.drawableResId = drawableResId;
this.id = id; this.id = id;
} }
} }