0

I have a long scroll view where it contains Text views,edit texts,radio buttons,check boxes,Sliders etc.. I want to show the preview of the scroll view and the contents whatever the user had entered and which should be non editable. Is there any possibility in android that we can do this?.

I have two suggestions 1.Disabling the scroll view from entering inputs and 2.Showing the preview of the scroll view.

is there any possibilities of these two or else some other methods to achieve this in android.

need help, thanks in advance..

Asif Sb
  • 785
  • 9
  • 38

1 Answers1

0

This method helped to disable the views.

private static void setViewAndChildrenEnabled(View view, boolean enabled) {
view.setEnabled(enabled);
if (view instanceof ViewGroup) {
    ViewGroup viewGroup = (ViewGroup) view;
    for (int i = 0; i < viewGroup.getChildCount(); i++) {
        View child = viewGroup.getChildAt(i);
        setViewAndChildrenEnabled(child, enabled);
    }
}

}

hope this will help some one else.check this

Community
  • 1
  • 1
Asif Sb
  • 785
  • 9
  • 38