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(); } }); }
private void bindData() { tableView.setHeaderAdapter(new SpecialityTableHeaderAdapter(activity.getApplicationContext())); tableView.setDataAdapter( new SpecialityTableDataAdapter( activity.getApplicationContext(), university.getSpecialities())); }