How to use PercentRelativeLayout in API 25

176 Views Asked by At

I want to use PercentRelativeLayout but I have the compileSdkVersion 25. Which dependency should I add to build.grade(Module: app)?

2

There are 2 best solutions below

0
On

Here is the dependency for PercentRelativeLayout

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

0
On

add this in your build.grade(Module: app) dependencies

apply plugin:
   {
   .
   .
   .
   .
   }
dependencies {
    .
    .
    .
    .
    compile 'com.android.support:percent:25.1.1'

}