android - Remove bottom black panel which is shown in 540*960 devices -
i facing issue in 540*960 devices in bottom of phone showing 1 black panel.. how can remove it.. device lava xolo having resolution of 540*960.. suggestion ? here screenshot of phone
thank in advance..
there no way complete rid of system bar, starting api level 11, can use setsystemuivisibillity
call hide system bar. when this, bar hidden default shown when user touches along lower edge of screen. code this:
view screen = findviewbyid(r.id.main_activity_layout); screen.setsystemuivisibility(view.system_ui_flag_low_profile);
you can register listener when user touches along bottom edge of screen , system bar shown/hidden, somethin glike this:
screen.setonsystemuivisibilitychangelistener(new view.onsystemuivisibilitychangelistener () { @override public void onsystemuivisibilitychange(int visibility) { if ((visibility == view.system_ui_flag_visible)) { //user touched screen , bar shown //do need in case } else { //touch event "expired" , bar hidden again //do need in case } } });
note must specify target sdk in android manifest code work. , minimum version must @ least 11:
<uses-sdk android:minsdkversion="11" android:targetsdkversion="at_least_11" android:maxsdkversion="at_least_targetsdkversion" />
Comments
Post a Comment