Java tutorial
/* * Copyright (c) 2012, Robert von Burg * * All rights reserved. * * This file is part of the XXX. * * XXX 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. * * XXX 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 XXX. If not, see * <http://www.gnu.org/licenses/>. */ package ch.eitchnet.android.mabea.activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import ch.eitchnet.android.mabea.R; import ch.eitchnet.android.util.Logger; /** * @author Robert von Burg <eitch@eitchnet.ch> * */ public class HistoryFragment extends Fragment { private static final String TAG = HistoryFragment.class.getSimpleName(); private View rootView; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Logger.i(TAG, "onCreateView", "called"); this.rootView = inflater.inflate(R.layout.fragment_history_layout, container, false); return this.rootView; } /** * */ public void updateUi() { if (this.rootView == null) return; } }