How to navigate from contentView to fragment

14
April 15, 2019, at 4:30 PM

I would like to know how to move from a ContentView to fragment.

Example

I have:

1)FragmentA extends Fragment

2)FragmentB extends Fragment

3)setContentView (new SomeView(view.getContext)) on Fragment B

Now i would like to move from SomeView to FragmentA, How can i do it? Thank you

Moving from FragmentA to FragmentB,the code:

Fragment selectedFragment = null;
                selectedFragment = new FragmentB;
                getFragmentManager().beginTransaction().replace(R.id.frame_container,selectedFragment).commit();

setContentView on FragmentB, the code:

//this view was added later on a button pressed. Fragment B originally has a default view

getActivity().setContentView(new SomeView(view.getContext()));
READ ALSO
Build failed showing error “Attribute ”android:focusable“ was already specified for element ”EditText"

Build failed showing error “Attribute ”android:focusable“ was already specified for element ”EditText"

my code is not being build when trying to run it on device or emulator with the error Error:Attribute "android:focusable" was already specified for element "EditText"but it gradle build is successful

42
Errors when changing Android version (Target Framework) in Xamarin Forms

Errors when changing Android version (Target Framework) in Xamarin Forms

I have a C# Xamarin Forms Solution in Visual Studio 2019 that was created from the Xamarin Forms Template

42
Keep getting Parse Error launching fileprovider intent

Keep getting Parse Error launching fileprovider intent

I'm trying to launch an update for my app using intent and file provider

16
How to manage multiple animations on the same widget?

How to manage multiple animations on the same widget?

Is there a best practice or general pattern when it comes to handling multiple animations for a single widget?

43