File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed
java/com/whyranoid/presentation/runningfinish Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ internal class RunningFinishFragment :
90
90
}
91
91
92
92
private fun handlePositiveButtonClicked (runningHistory : RunningHistoryUiModel ) {
93
- // TODO Safe-Args 활용 CreateRunningPostFragment로 이동
93
+ val direction = RunningFinishFragmentDirections .actionRunningFinishFragmentToCreateRunningPostFragment(
94
+ runningHistory
95
+ )
96
+ findNavController().navigate(direction)
94
97
}
95
98
96
99
override fun onMapReady (naverMap : NaverMap ) {
Original file line number Diff line number Diff line change 3
3
xmlns : app =" http://schemas.android.com/apk/res-auto" >
4
4
5
5
<data >
6
+ <import type =" com.whyranoid.presentation.model.UiState" />
7
+ <import type =" android.view.View" />
6
8
7
9
<variable
8
10
name =" vm"
80
82
app : layout_constraintEnd_toEndOf =" parent"
81
83
app : layout_constraintStart_toEndOf =" @id/btn_positive" />
82
84
85
+ <FrameLayout
86
+ android : id =" @+id/frame_progress_running"
87
+ android : layout_width =" match_parent"
88
+ android : layout_height =" match_parent"
89
+ android : background =" @color/black"
90
+ android : alpha =" 0.8"
91
+ android : translationZ =" @{vm.runningFinishDataState instanceof UiState.Success ? 0f : 10f }"
92
+ android : visibility =" @{vm.runningFinishDataState instanceof UiState.Success ? View.GONE : View.VISIBLE }" >
93
+
94
+ <com .google.android.material.progressindicator.CircularProgressIndicator
95
+ android : id =" @+id/progressindicator_running"
96
+ android : layout_width =" wrap_content"
97
+ android : layout_height =" wrap_content"
98
+ android : layout_gravity =" center"
99
+ android : contentDescription =" @string/running_finish_progress_description"
100
+ android : indeterminate =" true"
101
+ android : visibility =" @{vm.runningFinishDataState instanceof UiState.Success ? View.GONE : View.VISIBLE }"
102
+ app : indicatorColor =" ?attr/colorOnPrimary" />
103
+
104
+ </FrameLayout >
105
+
83
106
</androidx .constraintlayout.widget.ConstraintLayout>
84
107
</layout >
Original file line number Diff line number Diff line change 94
94
android : name =" runningFinishData"
95
95
app : argType =" com.whyranoid.presentation.running.RunningFinishData"
96
96
app : nullable =" true" />
97
+ <action
98
+ android : id =" @+id/action_runningFinishFragment_to_createRunningPostFragment"
99
+ app : destination =" @id/createRunningPostFragment" />
97
100
</fragment >
98
101
99
102
</navigation >
Original file line number Diff line number Diff line change 102
102
<string name =" running_finish_tool_bar" >러닝 종료</string >
103
103
<string name =" running_finish_positive_btn" >자랑할래요</string >
104
104
<string name =" running_finish_negative_btn" >괜찮아요</string >
105
+ <string name =" running_finish_progress_description" >러닝 종료 화면 프로그레스바</string >
105
106
106
107
</resources >
You can’t perform that action at this time.
0 commit comments