Skip to content

Instantly share code, notes, and snippets.

@cthulhuplush
Created February 17, 2017 15:59
Show Gist options
  • Save cthulhuplush/8c93c10037244da904373b98b750fee1 to your computer and use it in GitHub Desktop.
Save cthulhuplush/8c93c10037244da904373b98b750fee1 to your computer and use it in GitHub Desktop.
public class Fragment2 extends Fragment
{
@BindView(R.id.fragment2_logo) ImageView mLogo;
@BindView(R.id.fragment2_button) ImageButton mButton;
public Fragment2()
{
// Required empty public constructor
}
public static Fragment2 newInstance()
{
return new Fragment2();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View v = inflater.inflate(R.layout.fragment2, container, false);
if (v != null)
{
ButterKnife.bind(this, v);
}
return v;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment