Skip to content

MaterialPercentDrawer is my own implementation to make use of recent Percent wise layouts like PercentRelativeLayout and PercentFrameLayout in Android.

License

Notifications You must be signed in to change notification settings

evrimulgen/MaterialPercentDrawer

 
 

Repository files navigation

Android Arsenal

MaterialPercentDrawer

Uses

Generally percent layouts can be a efficient way to utilising the screens of different resolutions percent wise in Android. It can be a better approach for using LinearLayout which is specified by weight.

How to use?

To make use of Percent support for your applications. Add the below lines in build.gradle

compile 'com.android.support:percent:23.1.0'

Note: You have to use buildToolsVersion above 23.0.1 to make use of Percent support.

To add width percent wise:

app:layout_widthPercent="70%"

To add height percent wise:

app:layout_heightPercent="30%"

To add margin percent wise:

app:layout_marginPercent="10%"

To add margin left percent wise:

app:layout_marginLeftPercent="10%"

To add margin right percent wise:

app:layout_marginRightPercent="10%"

To add margin top percent wise:

app:layout_marginTopPercent="10%"

To add margin bottom percent wise:

app:layout_marginBottomPercent="10%"

About

MaterialPercentDrawer is my own implementation to make use of recent Percent wise layouts like PercentRelativeLayout and PercentFrameLayout in Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%