-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70a1d15
commit 99d262e
Showing
6 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...c/main/java/com/sopetit/softie/ui/onboarding/newroutinechoice/NewRoutineChoiceFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.sopetit.softie.ui.onboarding.newroutinechoice | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import androidx.fragment.app.viewModels | ||
import com.sopetit.softie.R | ||
import com.sopetit.softie.databinding.FragmentOnboardingChoiceRoutineNewBinding | ||
import com.sopetit.softie.util.binding.BindingFragment | ||
|
||
class NewRoutineChoiceFragment : | ||
BindingFragment<FragmentOnboardingChoiceRoutineNewBinding>(R.layout.fragment_onboarding_choice_routine_new) { | ||
|
||
private val routineViewModel by viewModels<NewRoutineChoiceViewModel>() | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
binding.routineViewModel = routineViewModel | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
.../main/java/com/sopetit/softie/ui/onboarding/newroutinechoice/NewRoutineChoiceViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.sopetit.softie.ui.onboarding.newroutinechoice | ||
|
||
import androidx.lifecycle.ViewModel | ||
|
||
class NewRoutineChoiceViewModel : ViewModel() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid android:color="@color/gray300"/> | ||
<corners android:radius="10dp"/> | ||
|
||
</shape> |
93 changes: 93 additions & 0 deletions
93
app/src/main/res/layout/fragment_onboarding_choice_routine_new.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<data> | ||
|
||
<import type="android.view.View" /> | ||
|
||
<variable | ||
name="viewModel" | ||
type="com.sopetit.softie.ui.onboarding.OnboardingViewModel" /> | ||
|
||
<variable | ||
name="routineViewModel" | ||
type="com.sopetit.softie.ui.onboarding.newroutinechoice.NewRoutineChoiceViewModel" /> | ||
</data> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/background"> | ||
|
||
<ImageView | ||
android:id="@+id/iv_onboarding_choice_routine_title_bear" | ||
android:layout_width="53dp" | ||
android:layout_height="50dp" | ||
android:layout_marginTop="34dp" | ||
android:layout_marginStart="22dp" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_onboarding_choice_routine_speech_background" | ||
android:layout_width="0dp" | ||
android:layout_height="60dp" | ||
android:layout_marginTop="29dp" | ||
android:layout_marginStart="14dp" | ||
android:layout_marginEnd="23dp" | ||
android:background="@drawable/ic_speech_long" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintStart_toEndOf="@id/iv_onboarding_choice_routine_title_bear" | ||
app:layout_constraintEnd_toEndOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_onboarding_choice_routine_speech" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginVertical="14dp" | ||
android:text="@string/onboarding_choice_routine_speech" | ||
android:textColor="@color/gray800" | ||
android:textAppearance="@style/bubble16" | ||
app:layout_constraintTop_toTopOf="@id/iv_onboarding_choice_routine_speech_background" | ||
app:layout_constraintBottom_toBottomOf="@id/iv_onboarding_choice_routine_speech_background" | ||
app:layout_constraintStart_toStartOf="@id/iv_onboarding_choice_routine_speech_background" | ||
app:layout_constraintEnd_toEndOf="@id/iv_onboarding_choice_routine_speech_background" /> | ||
|
||
<TableLayout | ||
android:id="@+id/tab_onboarding_choice_routine" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="20dp" | ||
android:layout_marginHorizontal="22dp" | ||
app:layout_constraintTop_toBottomOf="@id/iv_onboarding_choice_routine_speech_background" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" /> | ||
|
||
<androidx.viewpager2.widget.ViewPager2 | ||
android:id="@+id/viewpager_onboarding_choice_routine" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="12dp" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tab_onboarding_choice_routine" | ||
app:layout_constraintBottom_toBottomOf="parent" /> | ||
|
||
<androidx.appcompat.widget.AppCompatButton | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:text="@string/onboarding_routine_choice_btn" | ||
style="@style/body1" | ||
android:paddingVertical="19dp" | ||
android:textColor="@color/gray0" | ||
android:layout_marginHorizontal="20dp" | ||
android:layout_marginBottom="24dp" | ||
android:background="@drawable/shape_gray300_fill_10_rect" | ||
android:outlineProvider="none" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters