|
@@ -3,6 +3,7 @@ package com.cooleshow.base.widgets.dialog;
|
|
|
import android.app.Dialog;
|
|
|
import android.content.Context;
|
|
|
import android.graphics.Color;
|
|
|
+import android.graphics.Typeface;
|
|
|
import android.os.Bundle;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.View;
|
|
@@ -85,9 +86,11 @@ public class CommonFilterDialog<T> extends Dialog implements View.OnClickListene
|
|
|
tv_text.setText(text);
|
|
|
if (holder.getLayoutPosition() == selectPos) {
|
|
|
tv_text.setBackgroundResource(R.drawable.shape_f2f2f2_6dp);
|
|
|
+ tv_text.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
|
|
|
tv_text.setTextColor(getContext().getResources().getColor(R.color.color_2dc7aa));
|
|
|
} else {
|
|
|
tv_text.setBackgroundColor(Color.TRANSPARENT);
|
|
|
+ tv_text.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL));
|
|
|
tv_text.setTextColor(getContext().getResources().getColor(R.color.color_333333));
|
|
|
}
|
|
|
}
|