I have btn_hide button in my code.This button appear and disappear by click of a button(btn_main) as below code.
I want to implement to disappear btn_hide when page scrolling and touching any point of the page too.
Please help me.
btn_hide.setVisibility(rootView.GONE); btn_main.setOnClickListener(new onClickListner(){ @Override public void onClick(View v) { if(btn_hide.getVisibility()==rootView.GONE){ btn_hide.setVisibility(rootView.VISIBLE); }else{ btn_hide.setVisibility(rootView.GONE); } } });