I am new to android.I want to move my position of the android ICS status bar say 50 dp up from the bottom of the screen.(ie.layout_marginBottom=50dp).Where to do the modifications in the framework to get this done?
Thanks,
This is my solution:
For this after some digging into the StatusBar.java code,I have found the solution as follows:
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
height,
WindowManager.LayoutParams.TYPE_STATUS_BAR,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
| WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
PixelFormat.RGB_565);
//Line to be added
lp.y = 50;
Thanks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.