Back to project page MaterialNavigationDrawer.
The source code is released under:
Apache License
If you think the Android project MaterialNavigationDrawer 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 it.neokree.example.functionalities.master_child; //ww w .j a v a2 s . com import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import it.neokree.example.R; import it.neokree.materialnavigationdrawer.MaterialNavigationDrawer; /** * Created by neokree on 20/01/15. */ public class MasterFragment extends Fragment implements View.OnClickListener { @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { Log.i("MaterialNavigationDrawer Master-Child", "Master created"); View view = inflater.inflate(R.layout.masterchild_master,container,false); ((Button)view.findViewById(R.id.master_button)).setOnClickListener(this); return view; } @Override public void onClick(View v) { ((MaterialNavigationDrawer)this.getActivity()).setFragmentChild(new ChildFragment(),"Child Title"); } }