1
Good people, I’m starting with Android Studio and I’m developing a small app and I made a menu, and I would like when I click on it, open another Fragment. I’ve tried several things already and nothing :/
The last was this
FragmentManager fragmentManager = getFragmentManager();
if (id == R.id.Aries)
{
fragmentManager.beginTransaction().replace(R.id.content_frame, new Aries())
.commit();
}
But where is the "new Aries got the error of "cannot find Symbol fragment_aries"
My app will be horoscope, and then I will connect to online database.
Any help on that part too, thank you
Thank you
Attt
Lucas Soares
You can add codes from your class
Aries
?– rsicarelli
I had mistakes, but I followed the step by step of the friend’s answer and solved everything. And now I have this problem of overwriting Fragment ps: I can’t see the response from the user who helped me
– user46736