コード例 #1
0
 @Override
 protected void onResume() {
   super.onResume();
   if (!TextUtils.isEmpty(bean.getSex()) && bean.getSex().equals("0")) {
     getSupportActionBar().setTitle(R.string.other_date_girl);
   }
 }
コード例 #2
0
 @Override
 public void init() {
   getSupportFragmentManager()
       .beginTransaction()
       .replace(
           R.id.content,
           DateListFragment_.builder()
               .autoStart(true)
               .listType(NearPeopleActivity.NEARLISTTYPE.OTHER)
               .otherId(bean.getId())
               .build())
       .commitAllowingStateLoss();
 }