Skip to content

Commit

Permalink
增加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCheen committed Oct 19, 2022
1 parent eedc2fc commit ecf574f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import androidx.recyclerview.widget.RecyclerView

/**
* 开启视差 Header 效果
*
* @param factor 视差因子,默认 0.5f ,当 1.0f 效果类似固定的 Header
* @since 3.1.9
*/
fun RecyclerView.enableParallaxHeader(factor: Float = 0.5f) {
Expand Down

0 comments on commit ecf574f

Please sign in to comment.