Back to project page DrawMyShit.
The source code is released under:
MIT License
If you think the Android project DrawMyShit 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 com.fmeyer.drawmyshit; /*from ww w .j a v a2 s . com*/ import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; public class RoomFragment extends Fragment { Button goToRoomButton; public RoomFragment() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View rootView = inflater.inflate(R.layout.fragment_room, container, false); goToRoomButton = (Button) rootView.findViewById(R.id.go_to_room_button); goToRoomButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(getActivity(), DrawActivity.class); startActivity(i); } }); return rootView; } }