Android - how to scale a view by a % of the display size?
I am working with Android studio and kotlin. My app has a HorizontalScrollView, which contains a LinearLayout with up to an infinite amount of strip_view.xml layouts (1 strip for each audio channel). My goal is to make each strip exactly 1/8th of match_parent wide so I can display exactly 8 strips at a time at all times while being able to scroll.
This is how the main layout and the strip layout currently look (to be expanded obviously but only the outer containers are relevant for this...