@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
setContentView(R.layout.activity_profesores);
//Action bar
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
if (Build.VERSION.SDK_INT >= 21) {
getWindow().setNavigationBarColor(getResources().getColor(R.color.colorPrimaryDarkGreen));
getWindow().setStatusBarColor(getResources().getColor(R.color.colorPrimaryDarkGreen));
}
app = (App) this.getApplication();
year = app.getPublicPreferenceI(Common.GLOBAL_FILTER_YEAR);
recyclerView = (RecyclerView) findViewById(R.id.profesoresRecycler);
emptyView = (LinearLayout) findViewById(R.id.profesores_blank);
recyclerView.setHasFixedSize(true);
mLayoutManager = new LinearLayoutManager(getBaseContext());
recyclerView.setLayoutManager(mLayoutManager);
setYearAdapters();
setSubjectsAdapter();
updateYear(year);
}
ProfesoresActivity.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:ConnectU
作者:
评论列表
文章目录