2012-04-07 1 views
4

ICS-Devices의 대화 상자에 사용자 정의 색상을 사용하고 싶습니다. 기본 색상은 파란색 (이미지 참조)입니다.이를 어떻게 내 앱 색상 구성에 맞는 색상으로 설정할 수 있습니까? 예 : 빨강?Android ICS 대화명 제목 색상

Example dialog

답변

-1

이 작업을 시도 할 수 있습니다 :

AlertDialog alert = builder.create(); 
alert.show(); 
alert.getListView().setBackgroundColor(Color.RED); //This is for Color 
alert.setCancelable(true); 
+0

이 배경색을 설정합니다. OP는 제목 색상을 변경하려고합니다. –

0

이 시도 :

alert.setTitle(Html.fromHtml("<font color='#FF0000'>User Agent</font>"));