|
@@ -95,6 +95,7 @@ public class HomeHotMusicSheetItemView extends FrameLayout {
|
|
mTvUploadAuthor.setText(String.format("上传者:%s", data.addName));
|
|
mTvUploadAuthor.setText(String.format("上传者:%s", data.addName));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
mLlMusicSubject.removeAllViews();
|
|
mLlMusicSubject.removeAllViews();
|
|
if (!TextUtils.isEmpty(data.subjectNames)) {
|
|
if (!TextUtils.isEmpty(data.subjectNames)) {
|
|
String[] split = data.subjectNames.split(",");
|
|
String[] split = data.subjectNames.split(",");
|
|
@@ -105,6 +106,9 @@ public class HomeHotMusicSheetItemView extends FrameLayout {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //精品曲目标记
|
|
|
|
+ mIvGoodTag.setVisibility(TextUtils.equals(data.exquisiteFlag, "1") ? View.VISIBLE : View.GONE);
|
|
|
|
+
|
|
if (TextUtils.equals(data.chargeType, CHARGE_TYPE_FREE)) {
|
|
if (TextUtils.equals(data.chargeType, CHARGE_TYPE_FREE)) {
|
|
mTvTag.setText("免费");
|
|
mTvTag.setText("免费");
|
|
mTvTag.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_01b84f));
|
|
mTvTag.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_01b84f));
|
|
@@ -122,8 +126,6 @@ public class HomeHotMusicSheetItemView extends FrameLayout {
|
|
mTvTag.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_3591ce));
|
|
mTvTag.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_3591ce));
|
|
mTvTag.setBackgroundResource(R.drawable.shape_3591ce_border);
|
|
mTvTag.setBackgroundResource(R.drawable.shape_3591ce_border);
|
|
}
|
|
}
|
|
- //精品曲目标记
|
|
|
|
- mIvGoodTag.setVisibility(TextUtils.equals(data.exquisiteFlag, "1") ? View.VISIBLE : View.GONE);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void createSubjectView(String text) {
|
|
private void createSubjectView(String text) {
|