Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

발표용 설정 화면 추가 #215

Merged
merged 7 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.emmsale.R
import com.emmsale.databinding.ActivityMainBinding
import com.emmsale.presentation.ui.main.event.EventFragment
import com.emmsale.presentation.ui.main.myProfile.MyProfileFragment
import com.emmsale.presentation.ui.setting.SettingFragment

class MainActivity : AppCompatActivity() {

Expand All @@ -29,6 +30,7 @@ class MainActivity : AppCompatActivity() {
when (it.itemId) {
R.id.mi_main_profile -> showFragment(MyProfileFragment.TAG)
R.id.mi_main_event -> showFragment(EventFragment.TAG)
R.id.mi_main_setting -> showFragment(SettingFragment.TAG)
}
return@setOnItemSelectedListener true
}
Expand All @@ -40,6 +42,7 @@ class MainActivity : AppCompatActivity() {
supportFragmentManager.commitNow {
add(R.id.fcv_main, MyProfileFragment(), MyProfileFragment.TAG)
add(R.id.fcv_main, EventFragment(), EventFragment.TAG)
add(R.id.fcv_main, SettingFragment(), SettingFragment.TAG)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.emmsale.presentation.ui.setting

import com.emmsale.R
import com.emmsale.databinding.FragmentSettingBinding
import com.emmsale.presentation.base.fragment.BaseFragment

class SettingFragment : BaseFragment<FragmentSettingBinding>() {
override val layoutResId: Int = R.layout.fragment_setting

companion object {
const val TAG = "TAG_SETTING"
}
}
22 changes: 22 additions & 0 deletions android/2023-emmsale/app/src/main/res/layout/fragment_setting.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<data>

</data>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.ui.setting.SettingFragment">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="설정 화면"
android:textSize="100sp" />
</FrameLayout>
</layout>
2 changes: 2 additions & 0 deletions android/2023-emmsale/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@
<string name="notification_reject">거절</string>
<string name="notification_accept">수락</string>
<string name="notification_header_expand_view">화면을 팽창 시킵니다.</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>