Skip to content

Commit b1a96be

Browse files
committed
💄 러닝 시작/종료 progress indicator 구현
1 parent 2a02e85 commit b1a96be

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
<data>
77

8+
<import type="com.whyranoid.presentation.running.RunningState" />
9+
10+
<import type="android.view.View" />
11+
812
<variable
913
name="vm"
1014
type="com.whyranoid.presentation.running.RunningViewModel" />
@@ -165,5 +169,26 @@
165169
app:layout_constraintEnd_toEndOf="parent"
166170
app:layout_constraintStart_toEndOf="@id/btn_pause_or_resume" />
167171

172+
<FrameLayout
173+
android:id="@+id/frame_progress_running"
174+
android:layout_width="match_parent"
175+
android:layout_height="match_parent"
176+
android:background="@color/black"
177+
android:alpha="0.8"
178+
android:translationZ="@{vm.runningState instanceof RunningState.NotRunning ? 10f : 0f }"
179+
android:visibility="@{vm.runningState instanceof RunningState.NotRunning ? View.VISIBLE : View.GONE }">
180+
181+
<com.google.android.material.progressindicator.CircularProgressIndicator
182+
android:id="@+id/progressindicator_running"
183+
android:layout_width="wrap_content"
184+
android:layout_height="wrap_content"
185+
android:layout_gravity="center"
186+
android:contentDescription="@string/running_start_progress_description"
187+
android:indeterminate="true"
188+
android:visibility="@{vm.runningState instanceof RunningState.NotRunning ? View.VISIBLE : View.GONE }"
189+
app:indicatorColor="?attr/colorOnPrimary" />
190+
191+
</FrameLayout>
192+
168193
</androidx.constraintlayout.widget.ConstraintLayout>
169194
</layout>

presentation/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
<string name="running_channel_name">활동 추적</string>
114114
<string name="running_channel_description">달리기 활동을 추적하는 알림 채널입니다.</string>
115115
<string name="running_map_location_button">🎯</string>
116+
<string name="running_start_progress_description">러닝 시작을 기다리고 있어요</string>
116117

117118
<!--라닝 종료 화면-->
118119
<string name="running_finish_tool_bar">러닝 종료</string>

0 commit comments

Comments
 (0)