編集テキストがあります。押されたボタンに応じて、編集テキストの各行のテキストの前にいくつかの文字を追加したいと考えています。例えば
if( fivespacesbutton is pressed )
then
append five spaces on each line the function OnClick(View v) has called.
行末 (/n) について知ったら、各行の前に 5 つのスペースを追加すると思います。
どうすれば/nを取得できますか
EditText scene=(EditText)findViewById(R.id.editText11);