Skip to content

怎么控制loadingVIew 动画的播放和停止 #40

@frulistrawberry

Description

@frulistrawberry

class LoadingViewDelegate:LoadingStateView.ViewDelegate(ViewType.LOADING) {
override fun onCreateView(inflater: LayoutInflater, parent: ViewGroup): View =
inflater.inflate(R.layout.common_loading_view, parent, false).also {
val ivLoading: ImageView = it.findViewById(R.id.loading_iv)
(ivLoading.drawable as AnimationDrawable).start()
}

}

这样加载loadingView 后 切换到contentView 那么loadingView的动画怎么停止

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions