I made a sample of the new percent support library. You can check official docs reference here and here. This library provide percentage based layouts, horizontal and vertical at the same time.