|
|
@ -15,8 +15,10 @@ class ATEPreferenceCategory(context: Context, attrs: AttributeSet) : |
|
|
|
super.onBindViewHolder(holder) |
|
|
|
super.onBindViewHolder(holder) |
|
|
|
holder?.let { |
|
|
|
holder?.let { |
|
|
|
val view = it.findViewById(android.R.id.title) |
|
|
|
val view = it.findViewById(android.R.id.title) |
|
|
|
if (view is TextView) { |
|
|
|
if (!view.isInEditMode) { |
|
|
|
view.setTextColor(context.accentColor)//设置title文本的颜色 |
|
|
|
if (view is TextView) { |
|
|
|
|
|
|
|
view.setTextColor(context.accentColor)//设置title文本的颜色 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|