Android Open Source - DrawerView Main Fragment






From Project

Back to project page DrawerView.

License

The source code is released under:

MIT License

If you think the Android project DrawerView 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.brimanning.drawerview;
/*from  w ww  . ja v a2s . c  om*/
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class MainFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_main, container, false);

        ((TextView) rootView.findViewById(R.id.section_label)).setText(R.string.fragment_text);

        return rootView;
    }
}




Java Source Code List

com.brimanning.drawerview.MainActivity.java
com.brimanning.drawerview.MainFragment.java
com.brimanning.drawerview.ui.DrawerItem.java
com.brimanning.drawerview.ui.DrawerListAdapter.java