# android-percent-support-lib-sample **Repository Path**: simpleneo/android-percent-support-lib-sample ## Basic Information - **Project Name**: android-percent-support-lib-sample - **Description**: android百分比 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [DEPRECATED in support lib v26] you should now use ConstraintLayout widget https://developer.android.com/training/constraint-layout/index.html Android Percent Support Lib Sample :triangular_ruler::triangular_ruler::triangular_ruler: =================================== [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--percent--support--lib--sample-green.svg?style=flat)](https://android-arsenal.com/details/3/2054) I made a sample of the new percent support library.
You can check official docs reference [here](https://developer.android.com/reference/android/support/percent/package-summary.html) and [here](https://developer.android.com/tools/support-library/features.html#percent).
This library provide percentage based layouts, horizontal and vertical at the same time. ## simple result ![PercentRelativeLayout](https://cloud.githubusercontent.com/assets/1808854/8392086/dd20ee1e-1cdd-11e5-852e-795a0d00cc89.png) ## complex result ![PercentRelativeLayout Complex](https://cloud.githubusercontent.com/assets/1808854/8398283/22bd374c-1de8-11e5-9e74-f19ea46b8086.png) ### How to use : just add percent support library to your project ```xml dependencies { compile 'com.android.support:percent:25.3.0' } ``` ###Supported Layouts : ####PercentRelativeLayout ```xml ``` ####PercentLinearLayout ```xml ``` ####PercentFrameLayout ```xml ``` ###Stylable : - heightPercent - widthPercent - marginBottomPercent - marginEndPercent - marginLeftPercent - marginPercent - marginRightPercent - marginStartPercent - marginTopPercent Pre-requisites -------------- - Android SDK v25 - Android Percent Support Repository v25.3.0 ####License Mit