-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
13 changed files
with
150 additions
and
3 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
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
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
17 changes: 16 additions & 1 deletion
17
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/QuestActivity.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 |
---|---|---|
@@ -1,4 +1,19 @@ | ||
package com.sopt.umbba_android.presentation.onboarding | ||
|
||
class QuestActivity { | ||
import android.os.Bundle | ||
import com.sopt.umbba_android.R | ||
import androidx.fragment.app.Fragment | ||
import com.sopt.umbba_android.databinding.ActivityQuestBinding | ||
import com.sopt.umbba_android.util.binding.BindingActivity | ||
|
||
class QuestActivity : BindingActivity<ActivityQuestBinding>(R.layout.activity_quest) { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
changeFragment(QuestSubFragment()) | ||
} | ||
private fun changeFragment(fragment:Fragment){ | ||
supportFragmentManager.beginTransaction() | ||
.add(R.id.fragment_question,fragment) | ||
.commit() | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
app/src/main/java/com/sopt/umbba_android/presentation/onboarding/QuestSubFragment.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,21 @@ | ||
package com.sopt.umbba_android.presentation.onboarding | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import com.sopt.umbba_android.R | ||
import com.sopt.umbba_android.databinding.FragmentQuestOneBinding | ||
import com.sopt.umbba_android.util.binding.BindingFragment | ||
|
||
class QuestSubFragment : BindingFragment<FragmentQuestOneBinding> (R.layout.fragment_quest_one) { | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle? | ||
): View? { | ||
return super.onCreateView(inflater, container, savedInstanceState) | ||
} | ||
} |
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_checked="false"> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="50dp" /> | ||
<stroke android:width="1dp" android:color="@color/grey_CFCFCF" /> | ||
<solid android:color="@color/grey_EAEAEA" /> | ||
</shape> | ||
</item> | ||
<item android:state_checked="true"> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="50dp" /> | ||
<stroke android:color="@color/grey_CFCFCF" | ||
android:width="1dp"/> | ||
<solid android:color="@color/grey_747474"/> | ||
</shape> | ||
</item> | ||
</selector> |
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"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_checked="true" android:color="@color/white"> | ||
</item> | ||
<item android:state_checked="false" android:color="@color/black"> | ||
</item> | ||
</selector> |
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
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 @@ | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<corners android:radius="8dp" /> | ||
<stroke android:color="@color/grey_D4D4D4" | ||
android:width="1dp"/> | ||
<solid android:color="@color/white"/> | ||
</shape> |
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
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,66 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="335dp" | ||
android:background="@drawable/shape_gd4d4_line_r8_rect"> | ||
|
||
<TextView | ||
android:id="@+id/tv_question" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="18dp" | ||
android:layout_marginTop="18dp" | ||
android:text="어머니와 지금 같이 살고 있어?" | ||
android:textColor="@color/black" | ||
android:textSize="20sp" | ||
android:textStyle="bold" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<RadioGroup | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="24dp" | ||
android:orientation="vertical" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/tv_question" | ||
app:layout_constraintBottom_toBottomOf="parent"> | ||
|
||
<RadioButton | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:layout_marginBottom="12dp" | ||
android:text="응!" | ||
android:textSize="16sp" | ||
android:textAlignment="center" | ||
android:background="@drawable/sel_quest_btn_answer" | ||
android:button="@null" | ||
android:textColor="@drawable/sel_quest_btn_text_answer" /> | ||
|
||
<RadioButton | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:layout_marginBottom="12dp" | ||
android:text="아니" | ||
android:textSize="16sp" | ||
android:textAlignment="center" | ||
android:background="@drawable/sel_quest_btn_answer" | ||
android:button="@null" | ||
android:textColor="@drawable/sel_quest_btn_text_answer" /> | ||
|
||
<RadioButton | ||
android:layout_width="match_parent" | ||
android:layout_height="48dp" | ||
android:text="애매해" | ||
android:textSize="16sp" | ||
android:textAlignment="center" | ||
android:background="@drawable/sel_quest_btn_answer" | ||
android:button="@null" | ||
android:textColor="@drawable/sel_quest_btn_text_answer" /> | ||
</RadioGroup> | ||
</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
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