Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanganhtuan95ptit committed Mar 7, 2020
1 parent 92e388a commit d66e0ee
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@ open class DraggablePanel @JvmOverloads constructor(
}
}

open fun isMaximize(): Boolean {
return mCurrentState == State.MAX
}

open fun isMinimize(): Boolean {
return mCurrentState == State.MIN
}

open fun isClose(): Boolean {
return mCurrentState == State.CLOSE
}

open fun getFrameDrag(): ViewGroup {
return frameDrag
}
Expand Down Expand Up @@ -285,8 +297,6 @@ open class DraggablePanel @JvmOverloads constructor(

if (mCurrentPercent != 0f || !needExpand) {//
updateState()

mDraggableListener?.onExpaned()
return@resizeAnimation
}

Expand Down Expand Up @@ -522,7 +532,7 @@ open class DraggablePanel @JvmOverloads constructor(
}

interface DraggableListener {
fun onExpaned(){}
fun onExpaned() {}
fun onChangeState(state: State) {}
fun onChangePercent(percent: Float) {}
}
Expand Down

0 comments on commit d66e0ee

Please sign in to comment.