Skip to content

Commit

Permalink
Add support of refreshProgressBarBackgroundColor
Browse files Browse the repository at this point in the history
Summary: Add refreshProgressBarBackgroundColor for Litho LazyList

Reviewed By: nicholeic

Differential Revision: D70109658

fbshipit-source-id: c633413f06b3effc5c068f61e978ec4c6c572545
  • Loading branch information
Xiao Mei authored and facebook-github-bot committed Feb 25, 2025
1 parent 03856eb commit d5c8382
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class LazyCollection(
private val scrollBarStyle: Int? = null,
private val recyclerViewId: Int? = null,
private val overScrollMode: Int? = null,
private val refreshProgressBarBackgroundColor: Int? = null,
private val refreshProgressBarColor: Int? = null,
private val touchInterceptor: LithoRecyclerView.TouchInterceptor? = null,
private val itemTouchListener: RecyclerView.OnItemTouchListener? = null,
Expand Down Expand Up @@ -187,6 +188,7 @@ class LazyCollection(
.scrollBarStyle(scrollBarStyle)
.recyclerViewId(recyclerViewId)
.overScrollMode(overScrollMode)
.refreshProgressBarBackgroundColor(refreshProgressBarBackgroundColor)
.refreshProgressBarColor(refreshProgressBarColor)
.touchInterceptor(touchInterceptor)
.itemTouchListener(itemTouchListener)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ inline fun ResourcesScope.LazyGrid(
scrollBarStyle: Int? = null,
recyclerViewId: Int? = null,
overScrollMode: Int? = null,
refreshProgressBarBackgroundColor: Int? = null,
refreshProgressBarColor: Int? = null,
touchInterceptor: LithoRecyclerView.TouchInterceptor? = null,
itemTouchListener: RecyclerView.OnItemTouchListener? = null,
Expand Down Expand Up @@ -115,6 +116,7 @@ inline fun ResourcesScope.LazyGrid(
scrollBarStyle,
recyclerViewId,
overScrollMode,
refreshProgressBarBackgroundColor,
refreshProgressBarColor,
touchInterceptor,
itemTouchListener,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ inline fun ResourcesScope.LazyList(
scrollBarStyle: Int? = null,
recyclerViewId: Int? = null,
overScrollMode: Int? = null,
refreshProgressBarBackgroundColor: Int? = null,
refreshProgressBarColor: Int? = null,
touchInterceptor: LithoRecyclerView.TouchInterceptor? = null,
itemTouchListener: RecyclerView.OnItemTouchListener? = null,
Expand Down Expand Up @@ -121,6 +122,7 @@ inline fun ResourcesScope.LazyList(
scrollBarStyle,
recyclerViewId,
overScrollMode,
refreshProgressBarBackgroundColor,
refreshProgressBarColor,
touchInterceptor,
itemTouchListener,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ inline fun ResourcesScope.LazyStaggeredGrid(
scrollBarStyle: Int? = null,
recyclerViewId: Int? = null,
overScrollMode: Int? = null,
refreshProgressBarBackgroundColor: Int? = null,
refreshProgressBarColor: Int? = null,
touchInterceptor: LithoRecyclerView.TouchInterceptor? = null,
itemTouchListener: RecyclerView.OnItemTouchListener? = null,
Expand Down Expand Up @@ -113,6 +114,7 @@ inline fun ResourcesScope.LazyStaggeredGrid(
scrollBarStyle,
recyclerViewId,
overScrollMode,
refreshProgressBarBackgroundColor,
refreshProgressBarColor,
touchInterceptor,
itemTouchListener,
Expand Down

0 comments on commit d5c8382

Please sign in to comment.