横から失礼します。
中谷と申します。
Preferenceの文字色を変更したいということでしょうか。
私の場合ですが、各Preference(SwitchPreferenceやCheckBoxPreferenceなど)を継承してonBindView内で下記のように実装しています。
(この方法は同じタイプのPreferenceで文字色などを統一したいなどであれば使えると思います)
@Override
protected void onBindView(View view) {
View vSummary = view.findViewById(android.R.id.summary);
View vTitle = view.findViewById(android.R.id.title);
if(vSummary != null )
((TextView)vSummary).setTextColor(カラー);
if(vTitle != null && textColor != null)
((TextView)vTitle).setTextColor(カラー);
super.onBindView(view);
}
ほかにも一項目だけの変更であれば、下記のような方法もあります
http://starzero.hatenablog.com/entry/20110329/13013981132013年1月29日火曜日 20時44分04秒 UTC+9 mai: