Java tutorial
/* * Copyright (c) 2014 Jonathan Nelson * Released under the BSD license. For details see the COPYING file. */ package org.ciasaboark.tacere.activity.fragment; 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.TextView; import org.ciasaboark.tacere.R; /** * Created by ciasaboark on 10/2/14. */ public class TutorialEndFragment extends Fragment { private int layout = R.layout.fragment_tutorial_page_end; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(layout, container, false); TextView closeButton = (TextView) rootView.findViewById(R.id.tutorial_end_button); closeButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getActivity().finish(); } }); return rootView; } }