Back to project page Lollipop-AppCompat-Widgets-Skeleton.
The source code is released under:
Apache License
If you think the Android project Lollipop-AppCompat-Widgets-Skeleton listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sachinshinde.lollipopappcompatskeleton.ui.activities; // w w w . j ava2s. co m import android.os.Bundle; import com.sachinshinde.lollipopappcompatskeleton.R; import com.sachinshinde.lollipopappcompatskeleton.ui.fragments.OtherFragment; import com.sachinshinde.lollipopappcompatskeleton.ui.widgets.CallbackFragment; /** * Created by sachin on 17/1/15. */ public class Activity3 extends BaseActivity implements CallbackFragment.Callbacks { @Override protected void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); Bundle bundle = new Bundle(); bundle.putString("Title", "Activity 3"); OtherFragment of = new OtherFragment(); of.setArguments(bundle); getSupportFragmentManager().beginTransaction() .add(R.id.sessions_fragment, of).commit(); } @Override protected int getLayoutResource() { return R.layout.activity_main; } @Override public void onItemSelected(long l) { } @Override public int getSelectedFragment() { return BaseActivity.NAVDRAWER_ITEM_ACTIVITY3; } protected int getSelfNavDrawerItem() { return NAVDRAWER_ITEM_ACTIVITY3; } }