My app creates most of its UI at runtime depending on the user's saved document. It contains GridLayouts and because we don't know their size, they are contained within HorizontalScrollViews. It also has multiple pages, so this is all within a ViewPager. The HorizontalScrollViews inside the ViewPager have caused a few issues but work mostly OK.
One of the data elements is displayed as a ToggleButton. I'd much rather use the Switch for this but I've found that any Switch ending up inside a HorizontalScrollView ceases to work i.e. it cannot be moved from one position to another. Having the switch inside the ViewPager doesn't seem to matter.
So my question is, how can I include working Switches within a HorizontalScrollView? Is this even possible?