# FlexLayout **Repository Path**: studvc/FlexLayout ## Basic Information - **Project Name**: FlexLayout - **Description**: A powerful Android layout view that use java expression in layout params to describe relative positions. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-05 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FlexLayout The idea is simple, use java expressions in layout params like `layout_left="view1.right+10dp"`. It is helpful when LinearLayout and RelativeLayout is not enough for you. ![IMG](imgs/s1.png) Try the sample apk: [FlexLayout.apk](imgs/FlexLayout.apk) ## Adding to project Add dependencies in your `build.gradle`: ```groovy dependencies { compile 'com.github.mmin18:flexlayout:1.2.7' } ``` Or if you are using Eclipse, just copy [FlexLayout.java](library/src/com/github/mmin18/widget/FlexLayout.java) and [attrs.xml](library/res/values/attrs.xml) to your project. ## Layout Params | Horizontal | Vertical | | -------------- | -------------- | | layout_left | layout_top | | layout_right | layout_bottom | | layout_centerX | layout_centerY | | layout_width | layout_height | Remember the `app:layout_width` is different from `android:layout_width`
*xmlns:app="http://schemas.android.com/apk/res-auto"* ## % Percentage ![IMG](imgs/s3.png)