2016-04-02 23 views

cevap

0

Sen x, iletişim y pozisyonu ayarlamak gerekir:

AlertDialog.Builder builder = new AlertDialog.Builder (this); 

//set your builder 
AlertDialog dialog = builder.Create(); 
dialog.Window.Attributes.X = 34; 
dialog.Window.Attributes.Y = 17; 
0
AlertDialog.Builder builder = new AlertDialog.Builder(this); 

AlertDialog dialog = builder.create(); 
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 
WindowManager.LayoutParams wmlp = dialog.getWindow().getAttributes(); 

wmlp.gravity = Gravity.TOP pozisyonunu değiştirmek için | Gravity.LEFT; wmlp.x = 100; // x konumu enter code here wmlp.y = 100; // y pozisyonu

dialog.show();

İlgili konular