Clean ups.
This commit is contained in:
parent
9c98fc1cf6
commit
14516092f5
30 changed files with 133 additions and 164 deletions
|
|
@ -109,7 +109,7 @@ public class PlaylistAdapter extends AbsMultiSelectAdapter<PlaylistAdapter.ViewH
|
||||||
holder.image.setImageDrawable(Util.getTintedDrawable(
|
holder.image.setImageDrawable(Util.getTintedDrawable(
|
||||||
activity,
|
activity,
|
||||||
getIconRes(playlist),
|
getIconRes(playlist),
|
||||||
ATHUtil.resolveColor(activity, R.attr.icon_color, ThemeStore.textColorSecondary(activity))
|
ATHUtil.resolveColor(activity, R.attr.iconColor, ThemeStore.textColorSecondary(activity))
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ public class AlbumAdapter extends AbsMultiSelectAdapter<AlbumAdapter.ViewHolder,
|
||||||
@Override
|
@Override
|
||||||
public void onLoadCleared(Drawable placeholder) {
|
public void onLoadCleared(Drawable placeholder) {
|
||||||
super.onLoadCleared(placeholder);
|
super.onLoadCleared(placeholder);
|
||||||
setColors(getDefaultBarColor(), holder);
|
setColors(getDefaultFooterColor(), holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ public class ArtistAdapter extends AbsMultiSelectAdapter<ArtistAdapter.ViewHolde
|
||||||
@Override
|
@Override
|
||||||
public void onLoadCleared(Drawable placeholder) {
|
public void onLoadCleared(Drawable placeholder) {
|
||||||
super.onLoadCleared(placeholder);
|
super.onLoadCleared(placeholder);
|
||||||
setColors(getDefaultBarColor(), holder);
|
setColors(getDefaultFooterColor(), holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ public class SongAdapter extends AbsMultiSelectAdapter<SongAdapter.ViewHolder, S
|
||||||
@Override
|
@Override
|
||||||
public void onLoadCleared(Drawable placeholder) {
|
public void onLoadCleared(Drawable placeholder) {
|
||||||
super.onLoadCleared(placeholder);
|
super.onLoadCleared(placeholder);
|
||||||
setColors(getDefaultBarColor(), holder);
|
setColors(getDefaultFooterColor(), holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -18,17 +18,17 @@ public abstract class PhonographColoredTarget extends BitmapPaletteTarget {
|
||||||
@Override
|
@Override
|
||||||
public void onLoadFailed(Exception e, Drawable errorDrawable) {
|
public void onLoadFailed(Exception e, Drawable errorDrawable) {
|
||||||
super.onLoadFailed(e, errorDrawable);
|
super.onLoadFailed(e, errorDrawable);
|
||||||
onColorReady(getDefaultBarColor());
|
onColorReady(getDefaultFooterColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
||||||
super.onResourceReady(resource, glideAnimation);
|
super.onResourceReady(resource, glideAnimation);
|
||||||
onColorReady(PhonographColorUtil.getColor(resource.getPalette(), getDefaultBarColor()));
|
onColorReady(PhonographColorUtil.getColor(resource.getPalette(), getDefaultFooterColor()));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getDefaultBarColor() {
|
protected int getDefaultFooterColor() {
|
||||||
return ATHUtil.resolveColor(getView().getContext(), R.attr.default_bar_color);
|
return ATHUtil.resolveColor(getView().getContext(), R.attr.defaultFooterColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void onColorReady(int color);
|
public abstract void onColorReady(int color);
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,11 @@ import android.support.v7.widget.AppCompatButton;
|
||||||
import android.support.v7.widget.Toolbar;
|
import android.support.v7.widget.Toolbar;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.afollestad.materialdialogs.internal.ThemeSingleton;
|
import com.afollestad.materialdialogs.internal.ThemeSingleton;
|
||||||
import com.kabouzeid.appthemehelper.ThemeStore;
|
import com.kabouzeid.appthemehelper.ThemeStore;
|
||||||
import com.kabouzeid.appthemehelper.util.ATHUtil;
|
|
||||||
import com.kabouzeid.gramophone.R;
|
import com.kabouzeid.gramophone.R;
|
||||||
import com.kabouzeid.gramophone.dialogs.ChangelogDialog;
|
import com.kabouzeid.gramophone.dialogs.ChangelogDialog;
|
||||||
import com.kabouzeid.gramophone.dialogs.DonationDialog;
|
import com.kabouzeid.gramophone.dialogs.DonationDialog;
|
||||||
|
|
@ -94,35 +92,6 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
@Bind(R.id.aleksandar_tesic_google_plus)
|
@Bind(R.id.aleksandar_tesic_google_plus)
|
||||||
AppCompatButton aleksandarTesicGooglePlus;
|
AppCompatButton aleksandarTesicGooglePlus;
|
||||||
|
|
||||||
@Bind(R.id.icon_info)
|
|
||||||
ImageView iconInfo;
|
|
||||||
@Bind(R.id.icon_changelog)
|
|
||||||
ImageView iconChangelog;
|
|
||||||
@Bind(R.id.icon_intro)
|
|
||||||
ImageView iconIntro;
|
|
||||||
@Bind(R.id.icon_licenses)
|
|
||||||
ImageView iconLicenses;
|
|
||||||
@Bind(R.id.icon_bug_report)
|
|
||||||
ImageView iconBugReport;
|
|
||||||
@Bind(R.id.icon_google_plus_community)
|
|
||||||
ImageView iconGooglePlusCommunity;
|
|
||||||
@Bind(R.id.icon_flag)
|
|
||||||
ImageView iconFlag;
|
|
||||||
@Bind(R.id.icon_rate)
|
|
||||||
ImageView iconRate;
|
|
||||||
@Bind(R.id.icon_donate)
|
|
||||||
ImageView iconDonate;
|
|
||||||
@Bind(R.id.icon_author)
|
|
||||||
ImageView iconAuthor;
|
|
||||||
@Bind(R.id.icon_google_plus)
|
|
||||||
ImageView iconGooglePlus;
|
|
||||||
@Bind(R.id.icon_twitter)
|
|
||||||
ImageView iconTwitter;
|
|
||||||
@Bind(R.id.icon_github)
|
|
||||||
ImageView iconGithub;
|
|
||||||
@Bind(R.id.icon_website)
|
|
||||||
ImageView iconWebsite;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
@ -140,7 +109,6 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
private void setUpViews() {
|
private void setUpViews() {
|
||||||
setUpToolbar();
|
setUpToolbar();
|
||||||
setUpAppVersion();
|
setUpAppVersion();
|
||||||
setUpIconTint();
|
|
||||||
setUpOnClickListeners();
|
setUpOnClickListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -176,24 +144,6 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
aleksandarTesicGooglePlus.setOnClickListener(this);
|
aleksandarTesicGooglePlus.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpIconTint() {
|
|
||||||
int iconColor = ATHUtil.resolveColor(this, R.attr.icon_color, ThemeStore.textColorSecondary(this));
|
|
||||||
iconInfo.setColorFilter(iconColor);
|
|
||||||
iconChangelog.setColorFilter(iconColor);
|
|
||||||
iconIntro.setColorFilter(iconColor);
|
|
||||||
iconLicenses.setColorFilter(iconColor);
|
|
||||||
iconBugReport.setColorFilter(iconColor);
|
|
||||||
iconGooglePlusCommunity.setColorFilter(iconColor);
|
|
||||||
iconFlag.setColorFilter(iconColor);
|
|
||||||
iconRate.setColorFilter(iconColor);
|
|
||||||
iconDonate.setColorFilter(iconColor);
|
|
||||||
iconAuthor.setColorFilter(iconColor);
|
|
||||||
iconGooglePlus.setColorFilter(iconColor);
|
|
||||||
iconTwitter.setColorFilter(iconColor);
|
|
||||||
iconGithub.setColorFilter(iconColor);
|
|
||||||
iconWebsite.setColorFilter(iconColor);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
|
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
|
||||||
if (item.getItemId() == android.R.id.home) {
|
if (item.getItemId() == android.R.id.home) {
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ public class AlbumDetailActivity extends AbsSlidingMusicPanelActivity implements
|
||||||
|
|
||||||
private void setUpObservableListViewParams() {
|
private void setUpObservableListViewParams() {
|
||||||
albumArtViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height);
|
albumArtViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height);
|
||||||
toolbarColor = DialogUtils.resolveColor(this, R.attr.default_bar_color);
|
toolbarColor = DialogUtils.resolveColor(this, R.attr.defaultFooterColor);
|
||||||
int toolbarHeight = Util.getActionBarSize(this);
|
int toolbarHeight = Util.getActionBarSize(this);
|
||||||
titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height);
|
titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height);
|
||||||
headerOffset = toolbarHeight;
|
headerOffset = toolbarHeight;
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
|
||||||
|
|
||||||
private void setUpObservableListViewParams() {
|
private void setUpObservableListViewParams() {
|
||||||
artistImageViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height);
|
artistImageViewHeight = getResources().getDimensionPixelSize(R.dimen.header_image_height);
|
||||||
toolbarColor = DialogUtils.resolveColor(this, R.attr.default_bar_color);
|
toolbarColor = DialogUtils.resolveColor(this, R.attr.defaultFooterColor);
|
||||||
int toolbarHeight = Util.getActionBarSize(this);
|
int toolbarHeight = Util.getActionBarSize(this);
|
||||||
titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height);
|
titleViewHeight = getResources().getDimensionPixelSize(R.dimen.title_view_height);
|
||||||
headerOffset = toolbarHeight;
|
headerOffset = toolbarHeight;
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity
|
||||||
navigationView.setCheckedItem(R.id.nav_library);
|
navigationView.setCheckedItem(R.id.nav_library);
|
||||||
|
|
||||||
int accentColor = ThemeStore.accentColor(this);
|
int accentColor = ThemeStore.accentColor(this);
|
||||||
NavigationViewUtil.setItemIconColors(navigationView, ATHUtil.resolveColor(this, R.attr.icon_color, ThemeStore.textColorSecondary(this)), accentColor);
|
NavigationViewUtil.setItemIconColors(navigationView, ATHUtil.resolveColor(this, R.attr.iconColor, ThemeStore.textColorSecondary(this)), accentColor);
|
||||||
NavigationViewUtil.setItemTextColors(navigationView, ThemeStore.textColorPrimary(this), accentColor);
|
NavigationViewUtil.setItemTextColors(navigationView, ThemeStore.textColorPrimary(this), accentColor);
|
||||||
|
|
||||||
navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
|
navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ public class AlbumTagEditorActivity extends AbsTagEditorActivity implements Text
|
||||||
@Override
|
@Override
|
||||||
protected void loadCurrentImage() {
|
protected void loadCurrentImage() {
|
||||||
Bitmap bitmap = getAlbumArt();
|
Bitmap bitmap = getAlbumArt();
|
||||||
setImageBitmap(bitmap, PhonographColorUtil.getColor(PhonographColorUtil.generatePalette(bitmap), ATHUtil.resolveColor(this, R.attr.default_bar_color)));
|
setImageBitmap(bitmap, PhonographColorUtil.getColor(PhonographColorUtil.generatePalette(bitmap), ATHUtil.resolveColor(this, R.attr.defaultFooterColor)));
|
||||||
deleteAlbumArt = false;
|
deleteAlbumArt = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,7 +131,7 @@ public class AlbumTagEditorActivity extends AbsTagEditorActivity implements Text
|
||||||
@Override
|
@Override
|
||||||
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
||||||
albumArtBitmap = getResizedAlbumCover(resource.getBitmap(), 2048);
|
albumArtBitmap = getResizedAlbumCover(resource.getBitmap(), 2048);
|
||||||
setImageBitmap(albumArtBitmap, PhonographColorUtil.getColor(resource.getPalette(), ATHUtil.resolveColor(AlbumTagEditorActivity.this, R.attr.default_bar_color)));
|
setImageBitmap(albumArtBitmap, PhonographColorUtil.getColor(resource.getPalette(), ATHUtil.resolveColor(AlbumTagEditorActivity.this, R.attr.defaultFooterColor)));
|
||||||
deleteAlbumArt = false;
|
deleteAlbumArt = false;
|
||||||
dataChanged();
|
dataChanged();
|
||||||
setResult(RESULT_OK);
|
setResult(RESULT_OK);
|
||||||
|
|
@ -162,7 +162,7 @@ public class AlbumTagEditorActivity extends AbsTagEditorActivity implements Text
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void deleteImage() {
|
protected void deleteImage() {
|
||||||
setImageBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.default_album_art), ATHUtil.resolveColor(this, R.attr.default_bar_color));
|
setImageBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.default_album_art), ATHUtil.resolveColor(this, R.attr.defaultFooterColor));
|
||||||
deleteAlbumArt = true;
|
deleteAlbumArt = true;
|
||||||
dataChanged();
|
dataChanged();
|
||||||
}
|
}
|
||||||
|
|
@ -228,7 +228,7 @@ public class AlbumTagEditorActivity extends AbsTagEditorActivity implements Text
|
||||||
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
public void onResourceReady(BitmapPaletteWrapper resource, GlideAnimation<? super BitmapPaletteWrapper> glideAnimation) {
|
||||||
PhonographColorUtil.getColor(resource.getPalette(), Color.TRANSPARENT);
|
PhonographColorUtil.getColor(resource.getPalette(), Color.TRANSPARENT);
|
||||||
albumArtBitmap = getResizedAlbumCover(resource.getBitmap(), 2048);
|
albumArtBitmap = getResizedAlbumCover(resource.getBitmap(), 2048);
|
||||||
setImageBitmap(albumArtBitmap, PhonographColorUtil.getColor(resource.getPalette(), ATHUtil.resolveColor(AlbumTagEditorActivity.this, R.attr.default_bar_color)));
|
setImageBitmap(albumArtBitmap, PhonographColorUtil.getColor(resource.getPalette(), ATHUtil.resolveColor(AlbumTagEditorActivity.this, R.attr.defaultFooterColor)));
|
||||||
deleteAlbumArt = false;
|
deleteAlbumArt = false;
|
||||||
dataChanged();
|
dataChanged();
|
||||||
setResult(RESULT_OK);
|
setResult(RESULT_OK);
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,12 @@ import android.widget.TextView;
|
||||||
|
|
||||||
import com.kabouzeid.appthemehelper.ThemeStore;
|
import com.kabouzeid.appthemehelper.ThemeStore;
|
||||||
import com.kabouzeid.appthemehelper.util.ATHUtil;
|
import com.kabouzeid.appthemehelper.util.ATHUtil;
|
||||||
import com.kabouzeid.appthemehelper.util.ColorUtil;
|
|
||||||
import com.kabouzeid.appthemehelper.util.MaterialValueHelper;
|
|
||||||
import com.kabouzeid.gramophone.R;
|
import com.kabouzeid.gramophone.R;
|
||||||
import com.kabouzeid.gramophone.helper.MusicPlayerRemote;
|
import com.kabouzeid.gramophone.helper.MusicPlayerRemote;
|
||||||
import com.kabouzeid.gramophone.helper.MusicProgressViewUpdateHelper;
|
import com.kabouzeid.gramophone.helper.MusicProgressViewUpdateHelper;
|
||||||
import com.kabouzeid.gramophone.helper.PlayPauseButtonOnClickHandler;
|
import com.kabouzeid.gramophone.helper.PlayPauseButtonOnClickHandler;
|
||||||
import com.kabouzeid.gramophone.interfaces.MusicServiceEventListener;
|
import com.kabouzeid.gramophone.interfaces.MusicServiceEventListener;
|
||||||
import com.kabouzeid.gramophone.ui.activities.base.AbsMusicServiceActivity;
|
import com.kabouzeid.gramophone.ui.activities.base.AbsMusicServiceActivity;
|
||||||
import com.kabouzeid.gramophone.util.Util;
|
|
||||||
import com.kabouzeid.gramophone.views.PlayPauseDrawable;
|
import com.kabouzeid.gramophone.views.PlayPauseDrawable;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.Bind;
|
||||||
|
|
@ -97,24 +94,14 @@ public class MiniPlayerFragment extends Fragment implements MusicServiceEventLis
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpMiniPlayer() {
|
private void setUpMiniPlayer() {
|
||||||
setMiniPlayerColor(ATHUtil.resolveColor(activity, R.attr.cardBackgroundColor));
|
|
||||||
miniPlayerImage.setImageDrawable(Util.getTintedDrawable(activity, R.drawable.ic_keyboard_arrow_up_white_24dp,
|
|
||||||
ATHUtil.resolveColor(activity, R.attr.icon_color, ThemeStore.textColorSecondary(getActivity()))));
|
|
||||||
setUpPlayPauseButton();
|
setUpPlayPauseButton();
|
||||||
|
|
||||||
progressBar.setProgressTintList(ColorStateList.valueOf(ThemeStore.accentColor(activity)));
|
progressBar.setProgressTintList(ColorStateList.valueOf(ThemeStore.accentColor(activity)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMiniPlayerColor(int color) {
|
|
||||||
if (getView() == null) return;
|
|
||||||
getView().setBackgroundColor(color);
|
|
||||||
miniPlayerTitle.setTextColor(MaterialValueHelper.getPrimaryTextColor(activity, ColorUtil.isColorLight(color)));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setUpPlayPauseButton() {
|
private void setUpPlayPauseButton() {
|
||||||
updatePlayPauseDrawableState(false);
|
updatePlayPauseDrawableState(false);
|
||||||
miniPlayerPlayPauseButton.setImageDrawable(miniPlayerPlayPauseDrawable);
|
miniPlayerPlayPauseButton.setImageDrawable(miniPlayerPlayPauseDrawable);
|
||||||
miniPlayerPlayPauseButton.setColorFilter(ATHUtil.resolveColor(activity, R.attr.icon_color, ThemeStore.textColorSecondary(getActivity())), PorterDuff.Mode.SRC_IN);
|
miniPlayerPlayPauseButton.setColorFilter(ATHUtil.resolveColor(activity, R.attr.iconColor, ThemeStore.textColorSecondary(getActivity())), PorterDuff.Mode.SRC_IN);
|
||||||
miniPlayerPlayPauseButton.setOnClickListener(new PlayPauseButtonOnClickHandler());
|
miniPlayerPlayPauseButton.setOnClickListener(new PlayPauseButtonOnClickHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -385,7 +385,7 @@ public class PlayerFragment extends AbsPlayerFragment implements PlayerAlbumCove
|
||||||
currentSongViewHolder.separator.setVisibility(View.VISIBLE);
|
currentSongViewHolder.separator.setVisibility(View.VISIBLE);
|
||||||
currentSongViewHolder.shortSeparator.setVisibility(View.GONE);
|
currentSongViewHolder.shortSeparator.setVisibility(View.GONE);
|
||||||
currentSongViewHolder.image.setScaleType(ImageView.ScaleType.CENTER);
|
currentSongViewHolder.image.setScaleType(ImageView.ScaleType.CENTER);
|
||||||
currentSongViewHolder.image.setImageDrawable(Util.getTintedDrawable(fragment.getActivity(), R.drawable.ic_volume_up_white_24dp, ATHUtil.resolveColor(fragment.getActivity(), R.attr.icon_color, ThemeStore.textColorSecondary(fragment.getActivity()))));
|
currentSongViewHolder.image.setImageDrawable(Util.getTintedDrawable(fragment.getActivity(), R.drawable.ic_volume_up_white_24dp, ATHUtil.resolveColor(fragment.getActivity(), R.attr.iconColor, ThemeStore.textColorSecondary(fragment.getActivity()))));
|
||||||
currentSongViewHolder.itemView.setOnClickListener(new View.OnClickListener() {
|
currentSongViewHolder.itemView.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/title_view_height"
|
android:layout_height="@dimen/title_view_height"
|
||||||
android:height="@dimen/title_view_height"
|
android:height="@dimen/title_view_height"
|
||||||
android:background="?default_bar_color"
|
android:background="?attr/defaultFooterColor"
|
||||||
android:elevation="@dimen/toolbar_elevation"
|
android:elevation="@dimen/toolbar_elevation"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/title_view_height"
|
android:layout_height="@dimen/title_view_height"
|
||||||
android:height="@dimen/title_view_height"
|
android:height="@dimen/title_view_height"
|
||||||
android:background="?default_bar_color"
|
android:background="?attr/defaultFooterColor"
|
||||||
android:elevation="@dimen/toolbar_elevation"
|
android:elevation="@dimen/toolbar_elevation"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginTop="-8dp"
|
android:layout_marginTop="-8dp"
|
||||||
android:background="?divider_color" />
|
android:background="?attr/dividerColor" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -54,7 +54,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_info_outline_white_24dp"
|
android:src="@drawable/ic_info_outline_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -86,7 +88,7 @@
|
||||||
android:id="@+id/changelog"
|
android:id="@+id/changelog"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -99,7 +101,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_history_white_24dp"
|
android:src="@drawable/ic_history_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
@ -117,7 +121,7 @@
|
||||||
android:id="@+id/intro"
|
android:id="@+id/intro"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -130,7 +134,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_book_open_variant_white_24dp"
|
android:src="@drawable/ic_book_open_variant_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
@ -148,7 +154,7 @@
|
||||||
android:id="@+id/licenses"
|
android:id="@+id/licenses"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -161,7 +167,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_description_white_24dp"
|
android:src="@drawable/ic_description_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -42,7 +42,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_person_white_24dp"
|
android:src="@drawable/ic_person_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -72,7 +74,7 @@
|
||||||
android:id="@+id/add_to_google_plus_circles"
|
android:id="@+id/add_to_google_plus_circles"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -85,7 +87,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_google_circles_white_24dp"
|
android:src="@drawable/ic_google_circles_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
@ -103,7 +107,7 @@
|
||||||
android:id="@+id/follow_on_twitter"
|
android:id="@+id/follow_on_twitter"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -116,7 +120,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_twitter_box_white_24dp"
|
android:src="@drawable/ic_twitter_box_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
@ -134,7 +140,7 @@
|
||||||
android:id="@+id/fork_on_git_hub"
|
android:id="@+id/fork_on_git_hub"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -147,7 +153,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_github_circle_white_24dp"
|
android:src="@drawable/ic_github_circle_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
@ -165,7 +173,7 @@
|
||||||
android:id="@+id/visit_website"
|
android:id="@+id/visit_website"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -178,7 +186,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_web_white_24dp"
|
android:src="@drawable/ic_web_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
android:id="@+id/report_bugs"
|
android:id="@+id/report_bugs"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -43,7 +43,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_bug_report_white_24dp"
|
android:src="@drawable/ic_bug_report_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -73,7 +75,7 @@
|
||||||
android:id="@+id/join_google_plus_community"
|
android:id="@+id/join_google_plus_community"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -86,7 +88,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_google_circles_communities_white_24dp"
|
android:src="@drawable/ic_google_circles_communities_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -116,7 +120,7 @@
|
||||||
android:id="@+id/translate"
|
android:id="@+id/translate"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -129,7 +133,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_flag_white_24dp"
|
android:src="@drawable/ic_flag_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -159,7 +165,7 @@
|
||||||
android:id="@+id/rate_on_google_play"
|
android:id="@+id/rate_on_google_play"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -172,7 +178,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_play_shopping_bag_white_24dp"
|
android:src="@drawable/ic_play_shopping_bag_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -202,7 +210,7 @@
|
||||||
android:id="@+id/donate"
|
android:id="@+id/donate"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
|
@ -215,7 +223,9 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:src="@drawable/ic_attach_money_white_24dp"
|
android:src="@drawable/ic_attach_money_white_24dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
android:layout_height="@dimen/mini_player_height"
|
android:layout_height="@dimen/mini_player_height"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
|
android:background="?cardBackgroundColor"
|
||||||
android:transitionName="@string/transition_mini_player"
|
android:transitionName="@string/transition_mini_player"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="UnusedAttribute">
|
||||||
|
|
||||||
|
|
@ -23,6 +24,9 @@
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/ic_keyboard_arrow_up_white_24dp"
|
||||||
|
android:tint="?attr/iconColor"
|
||||||
|
android:tintMode="src_in"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
android:layout_marginRight="-8dp"
|
android:layout_marginRight="-8dp"
|
||||||
android:layout_toLeftOf="@+id/dummy_fab"
|
android:layout_toLeftOf="@+id/dummy_fab"
|
||||||
android:layout_toStartOf="@+id/dummy_fab"
|
android:layout_toStartOf="@+id/dummy_fab"
|
||||||
android:background="?round_selector"
|
android:background="?attr/roundSelector"
|
||||||
android:padding="22dp"
|
android:padding="22dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_skip_previous_white_36dp" />
|
android:src="@drawable/ic_skip_previous_white_36dp" />
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
android:layout_marginStart="-8dp"
|
android:layout_marginStart="-8dp"
|
||||||
android:layout_toEndOf="@+id/dummy_fab"
|
android:layout_toEndOf="@+id/dummy_fab"
|
||||||
android:layout_toRightOf="@+id/dummy_fab"
|
android:layout_toRightOf="@+id/dummy_fab"
|
||||||
android:background="?round_selector"
|
android:background="?attr/roundSelector"
|
||||||
android:padding="22dp"
|
android:padding="22dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_skip_next_white_36dp" />
|
android:src="@drawable/ic_skip_next_white_36dp" />
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:background="?round_selector"
|
android:background="?attr/roundSelector"
|
||||||
android:padding="22dp"
|
android:padding="22dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_repeat_white_36dp" />
|
android:src="@drawable/ic_repeat_white_36dp" />
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:background="?round_selector"
|
android:background="?attr/roundSelector"
|
||||||
android:padding="22dp"
|
android:padding="22dp"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_shuffle_white_36dp" />
|
android:src="@drawable/ic_shuffle_white_36dp" />
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?rect_selector"
|
android:background="?attr/rectSelector"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingBottom="@dimen/md_simplelistitem_padding_top"
|
android:paddingBottom="@dimen/md_simplelistitem_padding_top"
|
||||||
android:paddingEnd="@dimen/md_dialog_frame_margin"
|
android:paddingEnd="@dimen/md_dialog_frame_margin"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="2dp"
|
android:layout_margin="2dp"
|
||||||
android:foreground="?rect_selector">
|
android:foreground="?attr/rectSelector">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
android:layout_height="148dp"
|
android:layout_height="148dp"
|
||||||
android:layout_marginEnd="8dp"
|
android:layout_marginEnd="8dp"
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="8dp"
|
||||||
android:foreground="?rect_selector"
|
android:foreground="?attr/rectSelector"
|
||||||
app:cardBackgroundColor="?cardBackgroundColor">
|
app:cardBackgroundColor="?cardBackgroundColor">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="72dp"
|
android:layout_height="72dp"
|
||||||
android:foreground="?rect_selector"
|
android:foreground="?attr/rectSelector"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="UnusedAttribute">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
android:layout_marginLeft="-8dp"
|
android:layout_marginLeft="-8dp"
|
||||||
android:layout_marginStart="-8dp"
|
android:layout_marginStart="-8dp"
|
||||||
android:src="@drawable/ic_drag_vertical_white_24dp"
|
android:src="@drawable/ic_drag_vertical_white_24dp"
|
||||||
android:tint="?icon_color"
|
android:tint="?attr/iconColor"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:tintMode="src_in"
|
android:tintMode="src_in"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:background="?divider_color"
|
android:background="?attr/dividerColor"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
|
@ -107,6 +107,6 @@
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:layout_marginLeft="72dp"
|
android:layout_marginLeft="72dp"
|
||||||
android:layout_marginStart="72dp"
|
android:layout_marginStart="72dp"
|
||||||
android:background="?divider_color" />
|
android:background="?attr/dividerColor" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="64dp"
|
android:layout_height="64dp"
|
||||||
android:foreground="?rect_selector"
|
android:foreground="?attr/rectSelector"
|
||||||
tools:ignore="UnusedAttribute">
|
tools:ignore="UnusedAttribute">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
android:layout_marginLeft="-8dp"
|
android:layout_marginLeft="-8dp"
|
||||||
android:layout_marginStart="-8dp"
|
android:layout_marginStart="-8dp"
|
||||||
android:src="@drawable/ic_drag_vertical_white_24dp"
|
android:src="@drawable/ic_drag_vertical_white_24dp"
|
||||||
android:tint="?icon_color"
|
android:tint="?attr/iconColor"
|
||||||
android:tintMode="src_in"
|
android:tintMode="src_in"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:background="?divider_color"
|
android:background="?attr/dividerColor"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
|
@ -92,6 +92,6 @@
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:layout_marginLeft="72dp"
|
android:layout_marginLeft="72dp"
|
||||||
android:layout_marginStart="72dp"
|
android:layout_marginStart="72dp"
|
||||||
android:background="?divider_color" />
|
android:background="?attr/dividerColor" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:foreground="?rect_selector">
|
android:foreground="?attr/rectSelector">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image"
|
android:id="@+id/image"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Theme.Phonograph" parent="Theme.Phonograph.Base">
|
<style name="Theme.Phonograph" parent="Theme.Phonograph.Base">
|
||||||
<item name="round_selector">@drawable/round_ripple_selector</item>
|
<item name="roundSelector">@drawable/round_ripple_selector</item>
|
||||||
<item name="rect_selector">@drawable/rect_ripple_selector_dark</item>
|
<item name="rectSelector">@drawable/rect_ripple_selector_dark</item>
|
||||||
|
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Phonograph.Light" parent="Theme.Phonograph.Base.Light">
|
<style name="Theme.Phonograph.Light" parent="Theme.Phonograph.Base.Light">
|
||||||
<item name="round_selector">@drawable/round_ripple_selector</item>
|
<item name="roundSelector">@drawable/round_ripple_selector</item>
|
||||||
<item name="rect_selector">@drawable/rect_ripple_selector</item>
|
<item name="rectSelector">@drawable/rect_ripple_selector</item>
|
||||||
|
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
|
||||||
|
|
@ -19,8 +19,8 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Phonograph.Black" parent="Theme.Phonograph.Base.Black">
|
<style name="Theme.Phonograph.Black" parent="Theme.Phonograph.Base.Black">
|
||||||
<item name="round_selector">@drawable/round_ripple_selector</item>
|
<item name="roundSelector">@drawable/round_ripple_selector</item>
|
||||||
<item name="rect_selector">@drawable/rect_ripple_selector_dark</item>
|
<item name="rectSelector">@drawable/rect_ripple_selector_dark</item>
|
||||||
|
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
|
|
||||||
|
|
@ -45,8 +45,4 @@
|
||||||
<item name="android:progressBackgroundTint">@android:color/transparent</item>
|
<item name="android:progressBackgroundTint">@android:color/transparent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="OverFlowButton" parent="OverFlowButtonParent">
|
|
||||||
<item name="android:tintMode">src_in</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
@ -1,16 +1,14 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<attr name="music_controller_container_color" format="color" />
|
<attr name="roundSelector" format="reference" />
|
||||||
|
<attr name="rectSelector" format="reference" />
|
||||||
|
|
||||||
<attr name="round_selector" format="reference" />
|
<attr name="defaultFooterColor" format="color" />
|
||||||
<attr name="rect_selector" format="reference" />
|
|
||||||
|
|
||||||
<attr name="default_bar_color" format="color" />
|
|
||||||
|
|
||||||
<attr name="toolbarPopupTheme" format="reference" />
|
<attr name="toolbarPopupTheme" format="reference" />
|
||||||
|
|
||||||
<attr name="icon_color" format="color" />
|
<attr name="iconColor" format="color" />
|
||||||
<attr name="divider_color" format="color" />
|
<attr name="dividerColor" format="color" />
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
@ -10,14 +10,24 @@
|
||||||
|
|
||||||
<style name="Theme.Phonograph.Notification.Title" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />
|
<style name="Theme.Phonograph.Notification.Title" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />
|
||||||
|
|
||||||
<style name="OverFlowButton" parent="OverFlowButtonParent" />
|
<style name="OverFlowButton">
|
||||||
|
<item name="srcCompat">@drawable/abc_ic_menu_overflow_material</item>
|
||||||
|
<item name="android:tint">?attr/iconColor</item>
|
||||||
|
<item name="android:tintMode" tools:ignore="NewApi">src_in</item>
|
||||||
|
<item name="android:layout_margin">8dp</item>
|
||||||
|
<item name="android:layout_width">48dp</item>
|
||||||
|
<item name="android:layout_height">48dp</item>
|
||||||
|
<item name="android:scaleType">center</item>
|
||||||
|
<item name="android:background">?attr/roundSelector</item>
|
||||||
|
<item name="android:focusableInTouchMode">false</item>
|
||||||
|
<item name="android:focusable">false</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="PlayingIndicator">
|
<style name="PlayingIndicator">
|
||||||
<item name="android:layout_width">36dp</item>
|
<item name="android:layout_width">36dp</item>
|
||||||
<item name="android:layout_height">36dp</item>
|
<item name="android:layout_height">36dp</item>
|
||||||
<item name="android:padding">8dp</item>
|
<item name="android:padding">8dp</item>
|
||||||
<item name="android:layout_gravity">center</item>
|
<item name="android:layout_gravity">center</item>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="PlayPauseFab" parent="PlayPauseFabParent" />
|
<style name="PlayPauseFab" parent="PlayPauseFabParent" />
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,15 @@
|
||||||
|
|
||||||
<item name="md_dark_theme">true</item>
|
<item name="md_dark_theme">true</item>
|
||||||
|
|
||||||
<item name="music_controller_container_color">@color/cardview_dark_background</item>
|
<item name="roundSelector">@drawable/round_selector_dark</item>
|
||||||
|
<item name="rectSelector">@drawable/rect_selector_dark</item>
|
||||||
<item name="round_selector">@drawable/round_selector_dark</item>
|
|
||||||
<item name="rect_selector">@drawable/rect_selector_dark</item>
|
|
||||||
|
|
||||||
<item name="cardBackgroundColor">@color/grey_800</item>
|
<item name="cardBackgroundColor">@color/grey_800</item>
|
||||||
|
|
||||||
<item name="default_bar_color">@color/grey_900</item>
|
<item name="defaultFooterColor">@color/grey_900</item>
|
||||||
|
|
||||||
<item name="divider_color">@color/md_divider_white</item>
|
<item name="dividerColor">@color/md_divider_white</item>
|
||||||
<item name="icon_color">@color/ate_secondary_text_dark</item>
|
<item name="iconColor">@color/ate_secondary_text_dark</item>
|
||||||
|
|
||||||
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat</item>
|
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat</item>
|
||||||
|
|
||||||
|
|
@ -38,17 +36,15 @@
|
||||||
|
|
||||||
<item name="md_dark_theme">false</item>
|
<item name="md_dark_theme">false</item>
|
||||||
|
|
||||||
<item name="music_controller_container_color">@color/cardview_light_background</item>
|
<item name="roundSelector">@drawable/round_selector</item>
|
||||||
|
<item name="rectSelector">@drawable/rect_selector</item>
|
||||||
<item name="round_selector">@drawable/round_selector</item>
|
|
||||||
<item name="rect_selector">@drawable/rect_selector</item>
|
|
||||||
|
|
||||||
<item name="cardBackgroundColor">@color/white</item>
|
<item name="cardBackgroundColor">@color/white</item>
|
||||||
|
|
||||||
<item name="default_bar_color">@color/grey_300</item>
|
<item name="defaultFooterColor">@color/grey_300</item>
|
||||||
|
|
||||||
<item name="divider_color">@color/md_divider_black</item>
|
<item name="dividerColor">@color/md_divider_black</item>
|
||||||
<item name="icon_color">@color/ate_secondary_text_light</item>
|
<item name="iconColor">@color/ate_secondary_text_light</item>
|
||||||
|
|
||||||
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat.Light</item>
|
<item name="toolbarPopupTheme">@style/ThemeOverlay.AppCompat.Light</item>
|
||||||
|
|
||||||
|
|
@ -63,8 +59,8 @@
|
||||||
|
|
||||||
<style name="Theme.Phonograph.Base.Black" parent="@style/Theme.Phonograph.Base">
|
<style name="Theme.Phonograph.Base.Black" parent="@style/Theme.Phonograph.Base">
|
||||||
<item name="android:windowBackground">@android:color/black</item>
|
<item name="android:windowBackground">@android:color/black</item>
|
||||||
<item name="divider_color">#18FFFFFF</item>
|
<item name="dividerColor">#18FFFFFF</item>
|
||||||
<item name="default_bar_color">@color/grey_800</item>
|
<item name="defaultFooterColor">@color/grey_800</item>
|
||||||
<item name="cardBackgroundColor">@color/grey_900</item>
|
<item name="cardBackgroundColor">@color/grey_900</item>
|
||||||
<item name="md_background_color">@color/grey_900</item>
|
<item name="md_background_color">@color/grey_900</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -90,13 +86,13 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="OverFlowButtonParent">
|
<style name="OverFlowButtonParent">
|
||||||
<item name="android:tint">?icon_color</item>
|
<item name="android:tint">?attr/iconColor</item>
|
||||||
<item name="srcCompat">@drawable/abc_ic_menu_overflow_material</item>
|
<item name="srcCompat">@drawable/abc_ic_menu_overflow_material</item>
|
||||||
<item name="android:layout_margin">8dp</item>
|
<item name="android:layout_margin">8dp</item>
|
||||||
<item name="android:layout_width">48dp</item>
|
<item name="android:layout_width">48dp</item>
|
||||||
<item name="android:layout_height">48dp</item>
|
<item name="android:layout_height">48dp</item>
|
||||||
<item name="android:scaleType">center</item>
|
<item name="android:scaleType">center</item>
|
||||||
<item name="android:background">?round_selector</item>
|
<item name="android:background">?attr/roundSelector</item>
|
||||||
<item name="android:focusableInTouchMode">false</item>
|
<item name="android:focusableInTouchMode">false</item>
|
||||||
<item name="android:focusable">false</item>
|
<item name="android:focusable">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue