import org.plezervikt.firstapp.R;

/**
 * Created by 3ICE on 2014-10-08, 008.
 */
public class MyListFragment {
    public interface MyListFragmentCallbacks {
        void somethingHappened();
    }

    private MyListFragmentCallbacks callbacks;

    public void onAttachActivity() {
        super.onAttach;//...
        try {
            callbacks = (MyListFragmentCallbacks) activity;
        }catch (ClassCastException ccex){
            throw new RuntimeException("A befoglaló activity meg kell valósítsa a MyListFragmentCallbacks interfészt!");
        }

    }
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
        return inflater.inflate(R.layout.fragment_list,container, false);
    }
}
