I am trying to set an offset to the window created by the activity ..
I am doing something like this ..

public void onCreate(Bundle savedInstanceState) {

   .....
   Window w = this.getWindow();
   w.setGravity(Gravity.BOTTOM); // window.lp says default gravity
ignores x and y values
   WindowManager.LayoutParams lp = w.getAttributes();
   lp.y =100; // initial value is 0
   w.setAttributes(lp);
  ...
}

Now I am expecting the the window to be anchored at (x=0,y=100), but
the activity takes the full screen, what am i missing here ?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to