=+7. Add the following code to Fragment2.java: package com.jfdimarzio.fragments; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View;

Question:

=+7. Add the following code to Fragment2.java:

package com.jfdimarzio.fragments;

import android.app.Fragment;

import android.os.Bundle;

import android.view.LayoutInflater;

import android.view.View;

import android.view.ViewGroup;

public class Fragment2 extends Fragment {

@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

//---Inflate the layout for this fragment---

return inflater.inflate(

R.layout.fragment2, container, false);

}

}

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: