先来一个demo的路径 https://github.com/JulienGenoud/android-percent-support-lib-sample 不过是android Studio的
在<sdk>\extras\android\m2repository\com\android\support的目录下..你会发现你会有一个Percent文件夹..这就是google官方对百分比布局的依赖文件.
如果没有,请更新你的SDK....
Android studio的用法:
使用前加入库文件依赖
dependencies { compile 'com.android.support:percent:22.2.0' }
PercentRelativeLayout
<android.support.percent.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="