r0adkll / Slidr

Easily add slide to dismiss functionality to an Activity
Apache License 2.0
2.68k stars 389 forks source link

Navigation Component not working #88

Open baonq-2356 opened 2 years ago

baonq-2356 commented 2 years ago

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()
          )
      }

but when i run app, nothing happends also, i followed the instructions here: https://github.com/r0adkll/Slidr/pull/51/files

denterrr commented 1 year ago

you solved it?

baonq-2356 commented 1 year ago

@denterrr still not yet bro :(