You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created the 2 fragments, fragment_contact.xml and fragment_contacts3.xml along with their activity classes, fragment_contact.xml (Contact.java) as the button to which I added a clicklistener to fragment_contacts3.xml (Contacts3.java). However, the issue is that that Button click is not working as it supposed to take me to the next fragment.
I have created the 2 fragments, fragment_contact.xml and fragment_contacts3.xml along with their activity classes, fragment_contact.xml (Contact.java) as the button to which I added a clicklistener to fragment_contacts3.xml (Contacts3.java). However, the issue is that that Button click is not working as it supposed to take me to the next fragment.
How do I resolve this issue?
The following is the Contact.xml:
The following is the Contact.java along with clicklistener:
package com.example.my_survey.ui.home;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import com.example.my_survey.R;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.util.Objects;
public class Contacts extends Fragment {
}
The text was updated successfully, but these errors were encountered: