ScalableLayout is a new layout that helps you keep a consistent UI across any screen size and any layout size.

ScalableLayout can be usable in replace of Layouts (i.e. FrameLayout, LinearLayout, etc.) and does the work of scaling all of the child views correctly for you.

UI Widgets like TextView or Imageview get relative (x,y) coordinates and relative (width, height) values from the ScalableLayout.

ScalableLayout then places and resizes the widgets according to these values.

You can use ScalableLayout by importing just one java file.

You can use ScalableLayout with either Java or XML in your project.

ScalableLayout is used on the EverySing Karaoke app, which was awarded in the Google Play App Awards 2013.

The library is pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.

Leave a Reply