@Override public void onClick(View v) { switch (v.getId()) { case R.id.change_photo: ZXUtils.chosePhoto(this, CHOOSE_PHOTO); break; case R.id.change_password: ZXUtils.goActivity(this, ChangePasswordActivity.class); break; case R.id.adrress: ZXUtils.goActivity(this, AddressListActivity.class); break; case R.id.verified: ZXUtils.goActivity(this, VerifiedAcitvity.class); break; case R.id.exit: NetWorkHepler1 hepler1 = new NetWorkHepler1(); hepler1.put("m", "user"); hepler1.put("a", "logout"); NetWorkUtils.doGet(BaseInfo.BaseUrl_jin, hepler1, new JsonHttpResponseHandler()); MyApplication.editor.clear().commit(); this.finish(); break; case R.id.about: ZXUtils.goActivity(this, AboutActivvity.class); break; } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.user_info_activity); ZXUtils.initTitle(this, "设置", false); findView(); init(); }