[android-developers] HoneyComb VolumePanel customization issue
hi,
i am trying to customize VolumePanel UI in honeycomb but i am not able
to make the volumepanel bottom of screen.
i changed following code snippet in VolumePanel.java to make the
dialog bottom of screen
// Change some window properties
Window window = mDialog.getWindow();
//window.setGravity(Gravity.TOP);
window.setGravity(Gravity.BOTTOM);
WindowManager.LayoutParams lp = window.getAttributes();
lp.token = null;
lp.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
window.setAttributes(lp);
window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
i changed setGravity to bottom but still dialog(contains custom
layout) not coming to bottom.it is displaying somewhat middle only ?
am missing anything?
I also tried to show a toast from volume panel that also not showing
in bottom ?
Please help ...........
Thanks and regards
Mansoor V.M
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home