String str=et.getText().toString();其中et为EditText类型
4条回答 默认 最新
- 有雄心的小菜鸟 2015-12-09 10:31关注
public TextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
** mText = "";**mText 是个空串。
*/
@ViewDebug.CapturedViewProperty
public CharSequence getText() {
return mText;
}
getText()返回都就是mText。本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报