i want to pass data from recyclerview to another both in fragment, first adapter for display item, and second adapter for basket fragment that want to put selected item in. Adapter I want to take data from this is adapter for basket fragment that I want to put the data in Now, what i can use to pass data between
Tag: fragment
SetText in fragment from outside class
I have a fragment that displays data from APIs, but i dont want to be calling apis everytime the fragment is called.. so am making api call from a different class and and calling a method in the fragment to update UI (textViews) but am getting null exception for the textViews but data is 100% there and if i try
Using kotlin extension function in Java code
I have created an extension function for listening to click listener for buttons, when I try to access it from Java code it does not work, Cannot access clicks() from java file, this is what I tried …
supportFragmentManager.commit in kotlin is not working
Can anyone help me with this please? Inside my fragment supportFragmentManager.commit{} is not working. Android Studio is not recognizing this I don’t know what to do. I am working in kotlin project
Cannot find symbol error in android studio
I’m trying to add fragments to a navigation drawer. But I have the error: cannot find symbol class Fragment. I added: import android.support.v4.app.Fragment Also add the fragment object(Fragment …