cViewHolder.tv_number.setText(list.size() + "");
还有
tv.setText((index + 1) + ".");
c.tv_share_count.setText(record.readed_count + "/" + record.shared_count);
这种样子的应该如何转换?
cViewHolder.tv_number.setText(list.size() + "");
还有
tv.setText((index + 1) + ".");
c.tv_share_count.setText(record.readed_count + "/" + record.shared_count);
这种样子的应该如何转换?
怎么还问个类似的问题。。还是在string.xml中定义字符串,
<string name="count">%1$d/%2$d</string>
使用:setText(String.format(getString(R.string.count),record.readed_count,record.shared_count));