はい、border.And を削除して試すことができます。requestWindowFeature(Window.FEATURE_NO_TITLE);
また、ダイアログを拡張して、ダイアログに別のクラスを使用していることを確認してください。.fix the height and with for your dialog and then try
しかし、あなたが言ったように、モトローラのデバイスだけが違うように見えます。それでは、何が問題なのかを判断するのは困難です. 私はあなたと共有したい重要なこと.私はモトローラマイルストーンのアプリケーションを開発していました.それを完成させた後、私はタブレットにインストールしました.それからダイアログのサイズとその外観も変わります. そして、これはカスタム ダイアログだけでなく、プロパティが設定されていないプログレス ダイアログでも同様でした。
編集済み
ダイアログ クラスとそのレイアウトを作成する
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);
}
}
次に、アクティビティからそのオブジェクトを作成し、必要な場所で呼び出すだけです
DisplayDialog dd=new DisplayDialog(this);
dd.show()