Yes you can try by removing border.And set requestWindowFeature(Window.FEATURE_NO_TITLE);
And make sure that you are using a different class for dialog by extending it.fix the height and with for your dialog and then try
But as you said it looks different in only Motorola device.Then its difficult to tell what's going wrong.
The important thing i want to share with you.I was developing application for Motorola milestone.After completing it i installed in Tablet.Then dialog size changes and its appearance too.
And this was not only with custom dialog but Progress Dialog in which no properties was set, changes.Hope you got my point.Finally i want to say dialog behave sometimes unexpectedly.
Edited
Create a dialog class and its layout
public class DisplayDialog extends Dialog implements {
private ImageButton cancel,submit;
private Context context;
private ProgressDialog pd;
public DisplayDialog(Context c) {
super(c, R.style.Theme_Dialog_Translucent);
context = c;
}
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setCanceledOnTouchOutside(false);
setContentView(R.layout.dialog);
email_id = (EditText) findViewById(R.id.email_id);
cancel = (ImageButton) findViewById(R.id.btn_cancel);
cancel.setOnClickListener(this);
}
}
Then from activity just make its object and call it where ever you want
DisplayDialog dd=new DisplayDialog(this);
dd.show()