1 package de.example.exampletdd.fragment.map;
3 import android.os.Bundle;
4 import android.support.v4.app.Fragment;
5 import android.view.LayoutInflater;
6 import android.view.View;
7 import android.view.ViewGroup;
8 import de.example.exampletdd.R;
10 public class MapButtonsFragment extends Fragment {
13 public View onCreateView(final LayoutInflater inflater, final ViewGroup container,
14 final Bundle savedInstanceState) {
16 // Inflate the layout for this fragment
17 return inflater.inflate(R.layout.weather_map_buttons, container, false);
21 * This method will only be called once when the retained
22 * Fragment is first created.
25 public void onCreate(Bundle savedInstanceState) {
26 super.onCreate(savedInstanceState);
28 // Retain this fragment across configuration changes.
29 this.setRetainInstance(true);