/* * Calendula - An assistant for personal medication management. * Copyright (C) 2016 CITIUS - USC * * Calendula is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software. If not, see <http://www.gnu.org/licenses/>. */ package es.usc.citius.servando.calendula.fragments; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import es.usc.citius.servando.calendula.R; import es.usc.citius.servando.calendula.activities.ConfirmSchedulesActivity; /** * Created by joseangel.pineiro on 12/11/13. */ public class ScheduleConfirmationStartFragment extends Fragment { public static final String TAG = ScheduleConfirmationStartFragment.class.getName(); public static ScheduleConfirmationStartFragment newInstance() { ScheduleConfirmationStartFragment fragment = new ScheduleConfirmationStartFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_schedule_confirmation_start, container, false); rootView.findViewById(R.id.button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ((ConfirmSchedulesActivity)getActivity()).next(); } }); return rootView; } }