# 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:
===================================
[](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

## complex result

### 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