I am using this library with navigation component, all the actions navigate and pop fragments are controlled by navigation component.
In the base fragment class, i add this code into onResume method:
var slidrInterface: SlidrInterface? = null
override fun onResume() {
super.onResume()
if (slidrInterface == null) slidrInterface = Slidr.replace(
requireView().findViewById(R.id.content_container),
SlidrConfig.Builder().position(SlidrPosition.LEFT).build()
)
}
I am using this library with navigation component, all the actions navigate and pop fragments are controlled by navigation component. In the base fragment class, i add this code into
onResume
method:but when i run app, nothing happends also, i followed the instructions here: https://github.com/r0adkll/Slidr/pull/51/files