Android Fragment basic code structure

Home  >>  Tutorials  >>  Android  >>  Android Fragment basic code structure

Android Fragment basic code structure

4
Mar,2018

0
public class BasicFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.basic_fragment_layout, container, false);
        return view;
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *