대화 상자에서 제목의 글꼴과 색을 변경하고 글꼴, 크기 및 색상을 변경하고 싶습니다. 어떻게해야합니까? 여기 대화 상자에서 제목 텍스트의 색과 글꼴을 변경하십시오.
내 코드는
,ivworknggroup.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
final Dialog dialog = new Dialog(Ourwork.this);
dialog.setContentView(R.layout.nggroup);
dialog.setTitle("N.G.GROUP");
TextView tvnggroup1 = (TextView) dialog.findViewById(R.id.tvnggroup1);
TextView tvnggroup2 =(TextView)dialog.findViewById(R.id.tvnggroup2);
Typeface typeFace1 = Typeface.createFromAsset(getAssets(),"fonts/antennalight.ttf");
tvnggroup1.setTypeface(typeFace1);
Typeface typeFace = Typeface.createFromAsset(getAssets(),"fonts/antennabold.ttf");
tvnggroup2.setTypeface(typeFace);
tvnggroup2.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.nggroupindia.com/"));
startActivity(browserIntent);
}
});
dialog.show();
}
});
어느 한 나를 도울 수 있습니까? 감사합니다.
내가 글꼴과 색상을 변경하려는 SDK 폴더에 alert_dialog.xml에서 발견 식별자 & android.R.id.title 제목이 아니라 메시지 !!!!! "N.G.GROUP"내 게시물에 그것을 참조하십시오 – akky777
확인 업데이트 ... –
그것은 작동하지 않습니다 ... – akky777