1# getResources().getDisplayMetrics().density//獲得相對密度(0.75,1.0.1.5等)
2#生成jar的時候 要用動態尋找id的方式
3# 可以用這樣的方式顯示一段text中某些帶顏色的字體:
textview.setText(Html.fromHtml("評價"+"<font
color=#6897c6>" + 9 +
"</font>人")) 效果如圖
#保持 fastjson -keep class com.alibaba.fastjson.** { *; }
-keep class XXXXX.XXXXX.CityEntity{*;}
public FileViewFragment(){ }
public static FileViewFragment getInstance(A a){
FileViewFragment fileViewFragment = new FileViewFragment();
fileViewFragment.a = a;
return fileViewFragment;
}