My app have the following layout\[code\]LinearLayout View1 View2 ScrollView LinearLayout View3 optView1 optView2\[/code\]The idea is:
- If the screen is big enough to show the elements without make scroll=> Perfect
- If the screen size is smaller and the scroll is enabled, but hiding the optView2 the scroll disapears=> optView2.setVisibility(View.GONE);
- If the screen is small and even hiding the optView2 the scroll is enabled => leave all the elements visible