-2
I’m creating an app that will have a main Activity and some interspersed Fragments, in this case I’m trying to release a fragment_main but I can’t get this Java code to become Koltin code:
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
UsuarioCadFragment fragment = new UsuarioCadFragment();
fragmentTransaction.add(R.id.fragment_container, fragment);
fragmentTransaction.commit();
this code should be called right at the creation of the main Activity, but in Kotlin.
What Kotlin code have you developed so far? Ask the question too
– Isac