Android Open Source - DrawMyShit Room Fragment






From Project

Back to project page DrawMyShit.

License

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.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;
    }
}




Java Source Code List

com.fmeyer.drawmyshit.ApplicationTest.java
com.fmeyer.drawmyshit.ColorPickerDialogFragment.java
com.fmeyer.drawmyshit.DrawActivity.java
com.fmeyer.drawmyshit.DrawFragment.java
com.fmeyer.drawmyshit.MainDrawingView.java
com.fmeyer.drawmyshit.RoomActivity.java
com.fmeyer.drawmyshit.RoomFragment.java