- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
public static void d(Class<?> clz, String value) { d(clz.getSimpleName(), value); }
public static void d(Object object, String value) { d(object.getClass(), value); }
public void setVerCode(String verCode) { this.verCode = verCode; notifyPropertyChanged(BR.verCode); SLogUtils.d(this, "verCode=" + verCode); }
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); SLogUtils.d(TAG, "onCreateView"); initContentView(); return rootView; }
@Override public void onFragmentResult(int requestCode, int resultCode, Bundle bundle) { super.onFragmentResult(requestCode, resultCode, bundle); if (resultCode != RESULT_OK_FRAGMENT) return; String path = bundle.getString(AppConfig.KeyBundle.PHOTO_PATH); SLogUtils.d(this, "path=" + path); getBinding().getRegister().setAvatarUrl(path); } }
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); SLogUtils.d(TAG, "onCreate"); context = this; applicationContext = getApplicationContext(); setContentView(getRootViewId()); init(savedInstanceState); }
@Override public void onContinueClick() { SLogUtils.d(this, accountEntity.getAccount()); if (!PatternUtils.isMatchPhoneNumber(accountEntity.getAccount())) { mView.showShortToast("请输入正确手机号"); return; } //请求该手机号是否注册过 mRepertory.identifyAccount(accountEntity.getAccount(), identifyAccountCallback); }
@Override public void onBackPressed() { SLogUtils.d(TAG, "onBackPressed"); if (!mActivity.isHideLashFragmentBeforeFinish()) { if (mActivity.getSupportStack().getSupportStack().size() <= 1) { mActivity.onBackPressed(); return; } } String popFragmentTag = mSupportStack.peek(); if (TextUtils.isEmpty(popFragmentTag)) { closeCurrentAndShowPopFragment(); return; } Fragment popFragment = SupportManager.getFragment(mChildFm, popFragmentTag); if (popFragment == null) { throwException(new NotFoundException(popFragmentTag)); } if (popFragment instanceof SupportFragment) { ((SupportFragment) popFragment).onBackPressed();//委托给栈顶的Fragment执行OnBackPressed } else { throwException(new NotSupportException(popFragmentTag)); } }