http://blog.csdn.net/weelyy/article/details/79284332
http://blog.csdn.net/c15522627353/article/details/52452490
http://blog.csdn.net/green_shing/article/details/51897383
http://blog.csdn.net/yangxi_pekin/article/details/50912578
https://developer.android.com/guide/practices/screens_support.html
获取屏幕高度==获取控件的高度
清单文件注意获取引用
xmlns:fresco=”http://schemas.android.com/apk/res-auto”
http://blog.csdn.net/u011164565/article/details/51330778
int width = DeviceParameter.getIntScreenWidth(context);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(width, width / 2);
int margin = DeviceParameter.dip2px(context, 20);
// params.setMargins(margin, margin, margin, margin);
mAllLayout.setLayoutParams(params);
mAllLayout.setPadding(margin, margin, margin, margin);
gradle 排除部分依赖坐标:
compile ('***'){
exclude group: 'com.android.support', module: 'support-v4'
exclude group: 'com.android.support', module: 'support-v7'
}
compile(project(':****')) {
exclude group: 'com.android.support', module: 'support-v7'
}