I have a small problem with multiple SurfaceViews in a LinearLayout. How can I resize(shrink) one of the views so that it doesn’t create a black space next to it, meaning the neighbour view is being moved next to the resized view. Any ideas?
Thanks!
I have a small problem with multiple SurfaceViews in a LinearLayout . How can
Share
For this purpose, you might be better off using a RelativeLayout.
With a LinearLayout, everything is linearly drawn.
This means that you can only draw things vertically or horizontally, and you have to declare a new Layout inside of that layout in order to change that.
Try reading about RelativeLayout, and post back here if you need additional help. I’ll make sure to get back to you if you don’t understand 🙂
Hope this helps!