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.mockedFragments; /*w ww .j a v a 2 s. com*/ import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; /** * Created by neokree on 31/12/14. */ public class FragmentButton extends Fragment{ @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { Button button = new Button(this.getActivity()); button.setText("Click Me"); button.setGravity(Gravity.CENTER); return button; } }