I have a HorizontalScrollView and a Button in my project. I want this >>> when Button clicked the HorizontalScrollView don't scroll. Realy user can fix the view.
I use this code but it is not working.
Button btn_s = (Button) findViewById(R.id.button999);
final HorizontalScrollView h_scroll = (HorizontalScrollView) findViewById(R.id.horizontalScrollView1);
btn_s.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
h_scroll.setVisibility(0);
}
})