diemn.xml中默认的dimen value 不能为浮点数
可以按http://stackoverflow.com/questions/3282390/add-floating-point-value-to-android-resources-values中的方法解决
Declare in dimen.xml
<item name="my_float_value" type="dimen" format="float">9.52</item>
Referencing from xml
@dimen/my_float_value
Referencing from java
TypedValue typedValue = new TypedValue();
getResources().getValue(R.dimen.my_float_value, typedValue, true);
float myFloatValue = typedValue.getFloat();