Skip to content

Commit 4afe25b

Browse files
committed
💄 모각런 테마에 맞게 프로그레스 색상 변경
1 parent b5dc365 commit 4afe25b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

presentation/src/main/java/com/whyranoid/presentation/community/CommunityItemFragment.kt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,14 @@ internal class CommunityItemFragment :
124124

125125
binding.rvCommunity.adapter = postAdapter
126126

127-
binding.swipeRefreshLayout.setOnRefreshListener {
128-
postAdapter.refresh()
129-
binding.rvCommunity.scrollToPosition(0)
130-
binding.swipeRefreshLayout.isRefreshing = false
127+
binding.swipeRefreshLayout.apply {
128+
setOnRefreshListener {
129+
postAdapter.refresh()
130+
binding.rvCommunity.scrollToPosition(0)
131+
binding.swipeRefreshLayout.isRefreshing = false
132+
}
133+
134+
setColorSchemeColors(context.getColor(R.color.mogakrun_on_primary))
131135
}
132136

133137
viewLifecycleOwner.repeatWhenUiStarted {
@@ -183,10 +187,14 @@ internal class CommunityItemFragment :
183187

184188
binding.rvCommunity.adapter = postAdapter
185189

186-
binding.swipeRefreshLayout.setOnRefreshListener {
187-
postAdapter.refresh()
188-
binding.rvCommunity.scrollToPosition(0)
189-
binding.swipeRefreshLayout.isRefreshing = false
190+
binding.swipeRefreshLayout.apply {
191+
setOnRefreshListener {
192+
postAdapter.refresh()
193+
binding.rvCommunity.scrollToPosition(0)
194+
binding.swipeRefreshLayout.isRefreshing = false
195+
}
196+
197+
setColorSchemeColors(context.getColor(R.color.mogakrun_on_primary))
190198
}
191199

192200
viewLifecycleOwner.repeatWhenUiStarted {

presentation/src/main/res/layout/fragment_community_item.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
1111
android:id="@+id/swipe_refresh_layout"
1212
android:layout_width="match_parent"
13-
android:layout_height="match_parent">
13+
android:layout_height="match_parent"
14+
app:swipeRefreshLayoutProgressSpinnerBackgroundColor="@color/mogakrun_background">
1415

1516
<androidx.constraintlayout.widget.ConstraintLayout
1617
android:layout_width="match_parent"

0 commit comments

Comments
 (0)