확장 된 DialogPreference에서 사용자 정의 스타일을 어떻게 설정할 수 있습니까? 대화 상자 환경 설정의 사용자 정의보기
public class AboutDialog extends DialogPreference {
public AboutDialog(Context oContext, AttributeSet attrs)
{
super(oContext,attrs);
//there is no such a thing like setBackground(int res_id)...
}
}
및 XML
<com.pak1.pak.About
android:key="key" android:title="@string/preferences_about"
android:dialogTitle="@string/preferences_about_title"
android:dialogIcon="@drawable/app_icon" android:negativeButtonText="@null"
android:positiveButtonText="@string/ok" />
또는 예에
는 버튼의 특성을 변화시킬 수있다?하나의 확인 버튼이 있는데, 예를 들어이 '확인'버튼의 색상을 변경하고 싶습니다. 어떻게해야합니까?