【发布时间】:2013-10-09 10:28:28
【问题描述】:
我有一个编辑文本,我想根据按下的按钮在编辑文本的每一行的文本之前附加一些字符。 例如
if( fivespacesbutton is pressed )
then
append five spaces on each line the function OnClick(View v) has called.
我想如果我了解行尾 (/n),那么我会在每行之前添加五个空格。
知道如何从
获取 /nEditText scene=(EditText)findViewById(R.id.editText11);
【问题讨论】:
标签: android android-edittext textview android-textattributes