コード例 #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_setuserinfo_layout);
   initView();
   initData();
   setListener();
 }
コード例 #2
0
 @Override
 public void onNavItemClick(NavigationBar.NavigationBarItem navBarItem) {
   super.onNavItemClick(navBarItem);
   if (navBarItem == NavigationBar.NavigationBarItem.action) {
     String text = userInfoEdit.getText().toString();
     if (TextUtils.isEmpty(text)) {
       ToastUtil.toast(this, "请输入签名内容");
     } else if (text.equals(previousStr)) {
       ToastUtil.toast(this, "您没有修改签名内容");
     } else {
       changeSignaute(text);
     }
   }
 }