一、项目中需要写出用户信息界面
直接通过linearlayout(vertical)+constrainlayout写出,下划线通过View绘制
二、点击姓名、电话
姓名不提供修改(通过服务器读取姓名内容):toast显示
电话:
①PersonalinfoActivity.java 跳转 ChangeTelActivity.java,通过"tel"对PersonalinfoActivity.java中textview控件显示的电话号码进行传递
PersonalinfoActivity.java中,new intent & putExtra
ChangeTelActivity.java中,get intent & getStringExtra
②同时ChangeTelActivity.java中“保存”按钮动作,通过标签RESULT_OK将ChangeTelActivity.java中通过edittext控件更改的电话号码反馈至PersonalinfoActivity.java
ChangeTelActivity.java中,new intent & putExtra & setResult &finish()
PersonalinfoActivity.java中,
startActivityForResult(intent,REQ_TEL ); & protected void onActivityResult(int requestCode,int resultCode, Intent data) {...}