很容易,
String strTextview = textView.getText().toString();
strTextView = strTextView.substring(0,1);
Run Code Online (Sandbox Code Playgroud)
另外,您也可以尝试以下方式
char firstCharacter = textView.getText().toString().charAt(0);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2332 次 |
| 最近记录: |