Android Open Source - Lollipop-AppCompat-Widgets-Skeleton Activity2






From Project

Back to project page Lollipop-AppCompat-Widgets-Skeleton.

License

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.

Java Source Code

package com.sachinshinde.lollipopappcompatskeleton.ui.activities;
//  ww w .  j  ava 2  s  .c om
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 Activity2 extends BaseActivity implements
        CallbackFragment.Callbacks  {

    @Override
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        Bundle bundle = new Bundle();
        bundle.putString("Title", "Activity 2");

        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_ACTIVITY2;
    }

    protected int getSelfNavDrawerItem() {
        return NAVDRAWER_ITEM_ACTIVITY2;
    }
}




Java Source Code List

com.sachinshinde.lollipopappcompatskeleton.ApplicationTest.java
com.sachinshinde.lollipopappcompatskeleton.ui.activities.Activity1.java
com.sachinshinde.lollipopappcompatskeleton.ui.activities.Activity2.java
com.sachinshinde.lollipopappcompatskeleton.ui.activities.Activity3.java
com.sachinshinde.lollipopappcompatskeleton.ui.activities.BaseActivity.java
com.sachinshinde.lollipopappcompatskeleton.ui.adapters.SampleAdapter.java
com.sachinshinde.lollipopappcompatskeleton.ui.fragments.Activity1Fragment.java
com.sachinshinde.lollipopappcompatskeleton.ui.fragments.OtherFragment.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.BezelImageView.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.CallbackFragment.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.DrawShadowFrameLayout.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.MultiSwipeRefreshLayout.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.ScrimInsetsFrameLayout.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.ScrimInsetsScrollView.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.SlidingTabLayout.java
com.sachinshinde.lollipopappcompatskeleton.ui.widgets.SlidingTabStrip.java
com.sachinshinde.lollipopappcompatskeleton.utils.UIUtils.java