@Override public boolean onOptionsItemSelected(MenuItem item) { if (item.getItemId() == android.R.id.home) { onBackPressed(); } return super.onOptionsItemSelected(item); } }
@Override protected void afterInflation() { mainLayout = (RelativeLayout) findViewById(R.id.mainLayout); mViewPager = (CustomViewPager) findViewById(R.id.pager); imagesHorizontalList = (RecyclerView) findViewById(R.id.imagesHorizontalList); currentPos = getIntent().getIntExtra(Constants.IntentPassingParams.SELECTED_IMG_POS, 0); bgColor = (ZColor) getIntent().getSerializableExtra(Constants.IntentPassingParams.BG_COLOR);