mancj / SlideUp-Android

SlideUp is a small library that allows you to add sweet slide effect to any view.
MIT License
1.64k stars 207 forks source link

Show and Hide methods throw an Unresolved reference error with Kotlin #65

Open sutherland007 opened 6 years ago

sutherland007 commented 6 years ago

I'm trying to use show() and hide() but not working they throw an Unresolved reference. here is my code:

        val slideUp: SlideUpBuilder = SlideUpBuilder(PlayerView)
        slideUp.withStartState(SlideUp.State.SHOWED)
        slideUp.withStartGravity(Gravity.TOP)
        slideUp.withAutoSlideDuration(500)
        slideUp.build()

Here is my button click code example:

btn_ShowPlayer.setOnClickListener{
         slideUp.show() //both show() and hide() throw an Unresolved reference error
}
sutherland007 commented 6 years ago

After doing some code corrections, the methods are finally working. Sorry for the inconvenience.