idView.setText(getString(R.string.estate_id, mCollectParamObj.getPlotNo()));
estate_id:小区号%1$s
%d (表示整数)
%f (表示浮点数)
%s (表示字符串)
String temp = getResources().getString(R.string.loading);
String timeTip = String.format(temp,123456.123456);
转载于:https://www.cnblogs.com/zhaoleigege/p/4997200.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109233.html原文链接:https://javaforall.net