Skip to content

Commit

Permalink
#14 / 미션 카테고리 설명 뷰 그리기
Browse files Browse the repository at this point in the history
  • Loading branch information
l2zh committed Jul 11, 2023
1 parent c21f64a commit 033e904
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
android:usesCleartextTraffic="true"
tools:targetApi="31">

<!-- <activity-->
<!-- android:name=".presentation.SubHistoryActivity"-->
<!-- android:exported="false" />-->
<!-- <activity-->
<!-- android:name=".presentation.MainHistoryActivity"-->
<!-- android:exported="false" />-->
<activity
android:name=".presentation.SplashActivity"
android:name=".presentation.MainActivity"
android:exported="true"
android:screenOrientation="portrait">
<intent-filter>
Expand All @@ -27,10 +33,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".presentation.MainActivity"
android:exported="false"
android:name=".presentation.MissionDetailCreateActivity"
android:exported="true"
android:screenOrientation="portrait" />

<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package sopt.uni.presentation

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import sopt.uni.R

class MissionDetailCreateActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_mission_detail_create)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package sopt.uni.presentation

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import sopt.uni.R

class MissionDetailRecordActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_mission_detail_record)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/Lightblue_500" />
<corners android:radius="10dp" />
</shape>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/bg_mission_detail_textbox.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid
android:color="@color/Gray_000" />

<corners
android:radius="10dp" />

</shape>
Binary file added app/src/main/res/drawable/imagecard_android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 233 additions & 0 deletions app/src/main/res/layout/activity_mission_detail_create.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
<?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"
xmlns:tools="http://schemas.android.com/tools">

<data>

</data>

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/Gray_100"
tools:context=".presentation.MissionDetailCreateActivity">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_mission_detail_create_app_bar"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageView
android:id="@+id/mission_detail_create_back"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:src="@drawable/ic_backarrow"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/mission_detail_create_tiltle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:text="미션 카테고리 설명"
android:textAppearance="@style/Title1"
app:layout_constraintBottom_toBottomOf="@+id/mission_detail_create_back"
app:layout_constraintStart_toEndOf="@id/mission_detail_create_back"
app:layout_constraintTop_toTopOf="@+id/mission_detail_create_back" />

</androidx.constraintlayout.widget.ConstraintLayout>

<ScrollView
android:id="@+id/mission_detail_create_scrollview"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/layout_mission_detail_create_app_bar">


<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<ImageView
android:id="@+id/mission_detail_create_image"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:src="@drawable/imagecard_android"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/mission_detail_create_subtitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="내 연인의 모든것"
android:textAppearance="@style/Subtitle"
app:layout_constraintStart_toEndOf="@+id/mission_detail_create_image"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:layout_marginEnd="16dp"
android:id="@+id/mission_detail_create_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:lineSpacingExtra="6dp"
android:text="상대의 취향, 신체 사이즈 등 제시된 주제에 대한 답을 맞추며 서로를 알아가는 게임"
android:textAppearance="@style/Body2"
android:textColor="@color/Gray_350"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/mission_detail_create_image"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_subtitle" />

<TextView
android:id="@+id/mission_detail_create_rule_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="32dp"
android:text="룰 소개"
android:textAppearance="@style/Subtitle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_image" />


<TextView
android:id="@+id/mission_detail_create_ruletext"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="16dp"
android:background="@drawable/bg_mission_detail_textbox"
android:lineSpacingExtra="10dp"
android:paddingHorizontal="12dp"
android:paddingVertical="12dp"
android:text=" 1. 본인에게 할당된 주제의 답변을 상대방이 맞춰야하는 게임입니다.
2. 단순 주제가 나와있는 미션이라면, 상대의 입장에서 해당 주제에 대한 답을 해주세요.
3. 2지선다로 이루어진 미션이라면, 상대가 어떤 선지를 더 좋아할지에 대해 예상하여 답을 해주세요."
android:textAppearance="@style/Body2_long"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_rule_title" />


<TextView
android:id="@+id/mission_detail_create_tiptitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="32dp"
android:text="공략 팁"
android:textAppearance="@style/Subtitle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_ruletext" />


<TextView
android:id="@+id/mission_detail_create_tiptext"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="16dp"
android:background="@drawable/bg_mission_detail_textbox"
android:lineSpacingExtra="10dp"
android:paddingHorizontal="12dp"
android:paddingVertical="12dp"
android:text=" • 평소에 하나씩 연인에 대한 셀프 100문 100답을 해보세요!"
android:textAppearance="@style/Body2_long"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_tiptitle" />


<TextView
android:id="@+id/mission_detail_create_mission_example"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="32dp"
android:text="미션 예시"
android:textAppearance="@style/Subtitle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_tiptext" />

<LinearLayout
android:id="@+id/mission_detail_create_mission_example_linearlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="16dp"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_mission_example"
tools:layout_editor_absoluteX="16dp">

<TextView
android:id="@+id/mission_detail_create_mission_example_1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_weight="1"
android:background="@drawable/bg_mission_detail_textbox"
android:lineSpacingExtra="6dp"
android:paddingHorizontal="20dp"
android:paddingVertical="20dp"
android:text="시력"
android:textAppearance="@style/Btn2" />

<Space
android:layout_width="8dp"
android:layout_height="match_parent" />

<TextView
android:id="@+id/mission_detail_create_mission_example_2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:layout_weight="1"
android:background="@drawable/bg_mission_detail_textbox"
android:lineSpacingExtra="6dp"
android:paddingHorizontal="20dp"
android:paddingVertical="20dp"
android:text="아메리카노 vs \n카페라떼"
android:textAppearance="@style/Btn2" />
</LinearLayout>

<android.widget.Button
android:id="@+id/mission_detail_create_mission_btn_pick"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginVertical="16dp"
android:background="@drawable/bg_mission_detail_button_rounded"
android:fontFamily="@font/pretendard_semibold"
android:paddingVertical="12dp"
android:text="선택하기"
android:textAppearance="@style/Btn1"
android:textColor="@color/Gray_000"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mission_detail_create_mission_example_linearlayout" />

</androidx.constraintlayout.widget.ConstraintLayout>

</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Loading

0 comments on commit 033e904

Please sign in to comment.