Android Open Source - DrawMyShit Room Fragment

From Project

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.

Java Source Code

package com.fmeyer.drawmyshit;
/*from ww  w .j a  v  a2  s  .  com*/
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() {

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

        goToRoomButton = (Button) rootView.findViewById(;
        goToRoomButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Intent i = new Intent(getActivity(), DrawActivity.class);

        return rootView;

Java Source Code List