it seem like split actionbar for me, when i onClick or onTouch the screen the top and bottom menu will hide it with slide effect. This behavior also similar to facebook app and whatapp when view single image.
how can i do it? please help.
it seem like split actionbar for me, when i onClick or onTouch the screen the top and bottom menu will hide it with slide effect. This behavior also similar to facebook app and whatapp when view single image.
how can i do it? please help.
To achieve this you need to use GestureListerner in android. For scroll up and down.
please use below link and modify code according to your need.
try this, may be it help you.
public void onClick(View v) {
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH ){
imgDisplay.setSystemUiVisibility( View.SYSTEM_UI_FLAG_HIDE_NAVIGATION );
}
else if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB )
imgDisplay.setSystemUiVisibility( View.STATUS_BAR_HIDDEN );
else{}
}