All Downloads are FREE. Search and download functionalities are using the official Maven repository.

roboguice.fragment.RoboFragment Maven / Gradle / Ivy

The newest version!
package roboguice.fragment;

import roboguice.RoboGuice;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

public abstract class RoboFragment extends Fragment {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        RoboGuice.getInjector(getActivity()).injectMembersWithoutViews(this);
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        RoboGuice.getInjector(getActivity()).injectViewMembers(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy