DylanCaiCoding/LoadingStateView
 Watch   
 Star   
 Fork   
7 days ago
LoadingStateView

5.0.0

Feature

  • Add LoadingState.loadingStateViewType #37
  • Add onViewAttached(view) and onViewDetached(view) methods to ViewDelegate #40
  • Resolve margin issue for both contentView and decorView #39

Breaking Changes

  • Replaced Animation interface with Animatable interface
  • Changed onStartShowAnimation(...) and onStartHideAnimation(...) methods to toggleViewsAnimation(...) method

功能

  • 添加 LoadingState.loadingStateViewType #37
  • 添加 onViewAttached(view)onViewDetached(view) 函数到 ViewDelegate #40
  • 解决 contentView 和 decorView 都添加了 margin 的 issue #39

重大更新

  • 重命名 Animation 接口为 Animatable 接口
  • 修改 onStartShowAnimation(...)onStartHideAnimation(...) 函数为 toggleViewsAnimation(...) 函数
2023-06-11 16:40:02
LoadingStateView

4.1.0

  • Simplify the code in the base class.
  • Fix the issue of a blank screen when using Fragment.setToolbar(...)

  • 简化基类的代码
  • 修复使用 Fragment.setToolbar(...) 白屏的问题
2022-07-13 13:45:25
LoadingStateView

4.0.2

  • Fix an issue that content's height in the ConstraintLayout may be zero. #30

  • 修复了约束布局中的内容高度可能为 0 的问题。#30
2022-06-22 00:42:45
LoadingStateView

4.0.1

loadingstateview-ktx

  • The interface Decorative add contentView property. Overriding this property in base class changes the location of the state page .

loadingstateview-ktx

  • Decorative 接口增加 contentView 属性,在基类重写该属性能修改缺省页的位置。
2022-05-26 17:54:11
LoadingStateView

4.0.0

Major update

  • The overall usage is further simplified with removing the ViewHolder. The code of LoadingStateView is reduced to about 200 lines without comment statement.

  • Add loadingstateview-ktx dependency. With the Kotlin feature, you can quickly add all functionality to the base class without affecting existing code.

重大更新

  • 移除了 ViewHolder,整体用法得到进一步简化。LoadingStateView 代码减少至 200 行左右(不算注释)。

  • 增加 loadingstateview-ktx 依赖。结合 Kotlin 语法特性能快速将所有功能集成到基类,不会影响已有代码。

2022-05-23 18:27:14
LoadingStateView
2021-11-01 14:42:05
LoadingStateView

3.0.1

  • Add LoadingStateView#updateView(viewType) {...}
  • Add LoadingStateView#currentViewType
2021-10-02 23:23:17
LoadingStateView

3.0.0

Breaking Changes

  • Rename LoadingHelper to LoadingStateView
  • Rename LoadingHelper.Adapter to LoadingStateView.ViewDelegate
  • Rename LoadingHelper.DecorAdapter to LoadingStateView.DecorViewDelegate
  • Rename LoadingHelper.setDefaultAdapterPool(...) method to LoadingStateView.setViewDelegatePool(...)
  • Rename LoadingHelper#setDecorAdapter(...) method to LoadingStateView.setDecorViewDelegate(...)
  • Rename LoadingHelper#addChildDecorAdapter(...) method to LoadingStateView#addChildDecorViewDelegate(...)
2021-09-27 01:25:29
LoadingStateView
2021-07-19 19:16:39
LoadingStateView

2.3.0

  • Add LoadingHelper#setDecorHeader(vararg Adapter<*>)
  • Remove ContentAdapter