【问题标题】:Change string place android studio更改字符串位置 android studio
【发布时间】:2017-04-01 02:11:25
【问题描述】:

我有:

txtListChild.setText(PreferenceConnector.readString(_context,
                PreferenceConnector.COUNTRYSYMBOL, " $") +
                offerAmt /*+ " " + this._listDataHeader.get(groupPosition)*/);

例如 PLN50。如何更改它,以获得 50 PLN

请帮帮我!

【问题讨论】:

    标签: java android arrays string


    【解决方案1】:

    更改Strings 的串联顺序:

    txtListChild.setText(offerAmt +" "+ PreferenceConnector.readString(_context,
                                          PreferenceConnector.COUNTRYSYMBOL, "$"))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-06
      • 1970-01-01
      • 2019-06-14
      • 1970-01-01
      相关资源
      最近更新 更多