Back to project page NavigationDrawerSI.
The source code is released under:
Apache License
If you think the Android project NavigationDrawerSI 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 mmbialas.pl.navigationdrawersi.ui.fragments; //from w w w .ja v a 2 s . co m import android.graphics.drawable.GradientDrawable; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import butterknife.ButterKnife; import butterknife.InjectView; import mmbialas.pl.navigationdrawersi.R; /** * Created by Michal Bialas on 19/07/14. */ public class FragmentThree extends Fragment { @InjectView(R.id.circleLayout) LinearLayout circleLayout; @Override public View onCreateView(LayoutInflater inflater, ViewGroup containter, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_three, containter, false); ButterKnife.inject(this, view); ((GradientDrawable) circleLayout.getBackground()) .setColor(getResources().getColor(R.color.material_purple)); return view; } @Override public void onDestroyView() { super.onDestroyView(); ButterKnife.reset(this); } }