i want to allign my dialog title name in center istead of corner please help... i want to do this programmatically.....
here is my code
ivworkhnsafal.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.hnsafal);
dialog.setTitle("HN SAFAL");
TextView tvhnsafal1 = (TextView) dialog.findViewById(R.id.tvhnsafal1);
TextView tvhnsafal2 =(TextView)findViewById(R.id.tvhnsafal2);
dialog.show();
}
});