これは私がやっているものです - TextViewの中>テキストをTextViewから取得して米ドル通貨でフォーマットするにはどうすればよいですか?
//get entered texts from the edittexts,and convert to integers.
Integer value1 = Integer.parseInt(sand1.getText().toString());
//doing a calculation
Double calculatedValue1 = (9.5*value1);
//set the value to the textview, to display on screen.
result1.setText("$"+ calculatedValue1.toString());
結果1は次のようになります。##.#
私はこのような何かにあなたのコードを変更し$##.##
感謝。 – Casey
私はそれが助けてうれしいです。ようこそ –
ありがとうありがとう – Casey