コード例 #1
0
 private void initToolbar() {
   mToolbar = (Toolbar) fragment.findViewById(R.id.toolbar);
   mToolbar.setTitle(university.getName());
   mToolbar.setNavigationIcon(R.drawable.arrow_left);
   mToolbar.setNavigationOnClickListener(
       new View.OnClickListener() {
         @Override
         public void onClick(View view) {
           activity.onBackPressed();
         }
       });
 }
コード例 #2
0
 private void bindData() {
   tableView.setHeaderAdapter(new SpecialityTableHeaderAdapter(activity.getApplicationContext()));
   tableView.setDataAdapter(
       new SpecialityTableDataAdapter(
           activity.getApplicationContext(), university.getSpecialities()));
 }