Massive clean up of attrs, colors and styles. Also icon and divider colors matching better the guidelines now.
This commit is contained in:
parent
060c8867ea
commit
7fd4226685
94 changed files with 160 additions and 233 deletions
|
|
@ -48,7 +48,7 @@ public class PlayingQueueAdapter extends ArrayAdapter<Song> {
|
|||
if (MusicPlayerRemote.getPosition() == position) {
|
||||
int iconPadding = activity.getResources().getDimensionPixelSize(R.dimen.list_item_image_icon_padding);
|
||||
playingIndicator.setPadding(iconPadding, iconPadding, iconPadding, iconPadding);
|
||||
playingIndicator.setImageDrawable(Util.getTintedDrawable(getContext(), R.drawable.ic_volume_up_white_24dp, DialogUtils.resolveColor(getContext(), R.attr.themed_drawable_color)));
|
||||
playingIndicator.setImageDrawable(Util.getTintedDrawable(getContext(), R.drawable.ic_volume_up_white_24dp, DialogUtils.resolveColor(getContext(), android.R.attr.textColorSecondary)));
|
||||
playingIndicator.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
playingIndicator.setVisibility(View.GONE);
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public class PlaylistAdapter extends AbsMultiSelectAdapter<PlaylistAdapter.ViewH
|
|||
holder.image.setImageDrawable(Util.getTintedDrawable(
|
||||
activity,
|
||||
getIconRes(playlist),
|
||||
ColorUtil.resolveColor(activity, R.attr.themed_drawable_color)
|
||||
ColorUtil.resolveColor(activity, android.R.attr.textColorSecondary)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
@ -172,7 +172,7 @@ public class PlaylistAdapter extends AbsMultiSelectAdapter<PlaylistAdapter.ViewH
|
|||
if (shortSeparator != null) {
|
||||
shortSeparator.setVisibility(View.GONE);
|
||||
}
|
||||
itemView.setBackgroundColor(ColorUtil.resolveColor(activity, R.attr.card_color));
|
||||
itemView.setBackgroundColor(ColorUtil.resolveColor(activity, R.attr.cardBackgroundColor));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
itemView.setElevation(activity.getResources().getDimensionPixelSize(R.dimen.card_elevation));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ import java.util.ArrayList;
|
|||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.ButterKnife;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
|
|
@ -143,14 +141,16 @@ public class SearchAdapter extends RecyclerView.Adapter<SearchAdapter.ViewHolder
|
|||
public class ViewHolder extends MediaEntryViewHolder {
|
||||
public ViewHolder(@NonNull View itemView, int itemViewType) {
|
||||
super(itemView);
|
||||
ButterKnife.bind(this, itemView);
|
||||
itemView.setOnLongClickListener(null);
|
||||
|
||||
if (itemViewType != HEADER) {
|
||||
itemView.setBackgroundColor(ColorUtil.resolveColor(activity, R.attr.card_color));
|
||||
itemView.setBackgroundColor(ColorUtil.resolveColor(activity, R.attr.cardBackgroundColor));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
itemView.setElevation(activity.getResources().getDimensionPixelSize(R.dimen.card_elevation));
|
||||
}
|
||||
if (shortSeparator != null) {
|
||||
shortSeparator.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (menu != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue