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

merge :: (#10) MainView-Publishing #11

Merged
merged 36 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
10deac1
feat :: mainView Image 추가
uson1004 Oct 5, 2024
fbe6169
feat :: mainView icon 추가
uson1004 Oct 5, 2024
6c7b9dd
feat :: add list View
uson1004 Oct 8, 2024
b0eaa52
feat :: homeView View 정의
uson1004 Oct 9, 2024
966c572
feat :: homeView color evnet 정의
uson1004 Oct 9, 2024
22ff469
build :: build linking error 수정
uson1004 Oct 9, 2024
21ea830
feat :: Homeviewmodel 폴더 추가
uson1004 Oct 10, 2024
a36e067
docs :: 파일 구조 변경
uson1004 Oct 10, 2024
0f0b75d
Revert "docs :: 파일 구조 변경"
uson1004 Oct 10, 2024
d7b0c5f
feat :: SubmitBasketball Activity 추가
uson1004 Oct 11, 2024
e4f9ba1
feat :: submitList view 완성
uson1004 Oct 11, 2024
83d7453
chore :: 가이드라인 percent(반응형)으로 변경
uson1004 Oct 11, 2024
8f9a365
feat :: homeActivity 오늘 날짜 구현
uson1004 Oct 11, 2024
0f29428
fix :: 모든 뷰 가이드라인 percent(반응형)으로 변경
uson1004 Oct 11, 2024
6cd1862
chore :: enterskill activity 화면 이동 로직 추가
uson1004 Oct 11, 2024
2b37535
feat :: homeRecycler 추가
uson1004 Oct 11, 2024
a5107a4
feat :: activity viewModel data 연결
uson1004 Oct 11, 2024
b30430e
feat :: HomeActivity 현재 날짜 연동
uson1004 Oct 11, 2024
7424cf7
refactor :: activity, xmlView DataBinding으로 연결
uson1004 Oct 11, 2024
18a0e8e
fix :: EnterSkillsActivity Databinding name
uson1004 Oct 11, 2024
1dce0f9
feat :: genderView padding 테투리 수정
uson1004 Oct 11, 2024
ed937ba
refactor :: enterSkill View ViewModel 연동(viewComponent one select)
uson1004 Oct 12, 2024
a7a58f8
fix :: home calenderView 날짜 밀림 에러 수정
uson1004 Oct 12, 2024
0dcb5e0
feat :: home 함수 지정
uson1004 Oct 13, 2024
93b02a9
feat :: calender click 다음주 구현
uson1004 Oct 13, 2024
b3c88de
chore :: 안쓰이는 코드 clear
uson1004 Oct 13, 2024
2138c86
feat :: recycler에 값 추가
uson1004 Oct 13, 2024
d355de6
style :: 쓰이지 않는 코드, 값 변경
uson1004 Oct 14, 2024
a740886
fix :: utils 이름 수정
uson1004 Oct 14, 2024
18e9237
fix :: xml view id convert to snake_case
uson1004 Oct 14, 2024
168fad3
style :: list_item 크기 변경
uson1004 Oct 14, 2024
4259d2f
style :: now LocalDate setChange
uson1004 Oct 14, 2024
e8c191a
style :: calendar setText fix
uson1004 Oct 15, 2024
e29e144
chore :: submit view 수정
uson1004 Oct 15, 2024
d7c06c8
style :: 캘린더 텍스트 31일날 구현
uson1004 Oct 15, 2024
bf9baa2
chore :: home text style change
uson1004 Oct 15, 2024
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
Binary file modified .gradle/8.7/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.7/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
11 changes: 11 additions & 0 deletions .idea/caches/deviceStreaming.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {

defaultConfig {
applicationId = "com.example.killergram_android_v1"
minSdk = 24
minSdk = 26
targetSdk = 34
versionCode = 1
versionName = "1.0"
Expand Down
16 changes: 11 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" >
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
Expand All @@ -10,10 +10,17 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:windowSoftInputMode="adjustPan"
android:theme="@style/Theme.KillerGram_AndroidV1"
tools:targetApi="31" >
tools:targetApi="31">
<activity
android:name=".feature.enterinfo.EnterSkillsActivity"
android:name=".feature.submitlist.SubmitBasketballActivity"
android:exported="false" />
<activity
android:name=".feature.home.HomeActivity"
android:exported="false" />
<activity
android:name=".feature.enterinfo.enterSkill.EnterSkillsActivity"
android:exported="false" />
<activity
android:name=".feature.enterinfo.EnterGenderActivity"
Expand All @@ -26,8 +33,7 @@
android:exported="false" />
<activity
android:name=".SplashActivity"
android:exported="true"
android:windowSoftInputMode="adjustResize" >
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ import com.example.killergram_android_v1.databinding.ActivitySplashBinding
import com.example.killergram_android_v1.feature.login.LoginActivity

class SplashActivity : AppCompatActivity() {
private val binding by lazy {
ActivitySplashBinding.inflate(layoutInflater)
}
Tmdhoon2 marked this conversation as resolved.
Show resolved Hide resolved

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_splash)
setContentView(binding.root)

moveToLoginActivity()


}

private fun moveToLoginActivity() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
package com.example.killergram_android_v1.feature.enterinfo

import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.provider.CalendarContract.Colors
import android.view.View
import android.widget.CompoundButton
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.widget.CompoundButtonCompat
import com.example.killergram_android_v1.R
import com.example.killergram_android_v1.databinding.ActivityEnterGenderBinding
import com.example.killergram_android_v1.feature.enterinfo.enterSkill.EnterSkillsActivity

class EnterGenderActivity : AppCompatActivity(), View.OnClickListener {
private val binding by lazy {
Expand All @@ -22,7 +17,7 @@ class EnterGenderActivity : AppCompatActivity(), View.OnClickListener {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_enter_gender)
setContentView(binding.root)

binding.imgLeftArrow.setOnClickListener(this)
binding.btnLogin.setOnClickListener(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class EnterGradeActivity : AppCompatActivity(), View.OnClickListener {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_enter_grade)
setContentView(binding.root)

binding.btnLogin.setOnClickListener(this)
binding.imgLeftArrow.setOnClickListener(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package com.example.killergram_android_v1.feature.enterinfo
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import com.example.killergram_android_v1.R
import com.example.killergram_android_v1.databinding.ActivityEnterNameBinding
import com.example.killergram_android_v1.feature.signup.InputEmailActivity
import com.example.killergram_android_v1.feature.signup.SetPasswordActivity

class EnterNameActivity : AppCompatActivity(), View.OnClickListener {
Expand All @@ -19,23 +17,23 @@ class EnterNameActivity : AppCompatActivity(), View.OnClickListener {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_enter_name)
setContentView(binding.root)

binding.btnLogin.setOnClickListener(this)
binding.imgLeftArrow.setOnClickListener(this)
}

override fun onClick(view: View?) {
val enterNameToEnterGrade = Intent(this, EnterGradeActivity::class.java)
//val enterNameTo = Intent(this, InputEmailActivity::class.java)
val enterNameToSetPassword = Intent(this, SetPasswordActivity::class.java)


when(view?.id) {
R.id.btn_login -> {
startActivity(enterNameToEnterGrade)
}
R.id.img_left_arrow -> {
Toast.makeText(this, "정보를 입력해주세요!", Toast.LENGTH_LONG)
startActivity(enterNameToSetPassword)
}
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
package com.example.killergram_android_v1.feature.enterinfo.enterSkill

import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.content.res.AppCompatResources
import androidx.lifecycle.ViewModelProvider
import com.example.killergram_android_v1.R
import com.example.killergram_android_v1.databinding.ActivityEnterSkillsBinding
import com.example.killergram_android_v1.feature.enterinfo.EnterGenderActivity
import com.example.killergram_android_v1.feature.home.HomeActivity

class EnterSkillsActivity : AppCompatActivity(), View.OnClickListener {
private val binding by lazy {
ActivityEnterSkillsBinding.inflate(layoutInflater)
}

private val enterSkillsViewModel by lazy {
ViewModelProvider(this@EnterSkillsActivity)[EnterSkillsViewModel::class.java]
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(binding.root)

binding.btnLogin.setOnClickListener(this)
binding.imgLeftArrow.setOnClickListener(this)

binding.btnSkill1.setOnClickListener(this)
binding.btnSkill2.setOnClickListener(this)
binding.btnSkill3.setOnClickListener(this)

skillViewClickListener()
}

override fun onClick(view: View?) {
val enterNameToHome = Intent(this, HomeActivity::class.java)
val enterNameToEnterGender = Intent(this, EnterGenderActivity::class.java)

when(view?.id) {
R.id.btn_login -> {
startActivity(enterNameToHome)
}
R.id.img_left_arrow -> {
startActivity(enterNameToEnterGender)
}
R.id.btn_skill_1 -> {
setStateCheck(binding.btnSkill1)
}
R.id.btn_skill_2 -> {
setStateCheck(binding.btnSkill2)
}
R.id.btn_skill_3 -> {
setStateCheck(binding.btnSkill3)
}
}
}

private fun setStateCheck(view: View?) {
when(view?.id) {
R.id.btn_skill_1 -> {
enterSkillsViewModel.onSelectItem(1)
}
R.id.btn_skill_2 -> {
enterSkillsViewModel.onSelectItem(2)
}
R.id.btn_skill_3 -> {
enterSkillsViewModel.onSelectItem(3)
}
}
}

private fun skillViewClickListener() {
enterSkillsViewModel.buttonState.observe(this@EnterSkillsActivity) {
when(it) {
1 -> {
binding.btnSkill1.background = AppCompatResources.getDrawable(this, R.drawable.button_selected)
binding.btnSkill2.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
binding.btnSkill3.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
}
2 -> {
binding.btnSkill1.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
binding.btnSkill2.background = AppCompatResources.getDrawable(this, R.drawable.button_selected)
binding.btnSkill3.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
}
3 -> {
binding.btnSkill1.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
binding.btnSkill2.background = AppCompatResources.getDrawable(this, R.drawable.button_unselected)
binding.btnSkill3.background = AppCompatResources.getDrawable(this, R.drawable.button_selected)
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.example.killergram_android_v1.feature.enterinfo.enterSkill

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class EnterSkillsViewModel : ViewModel() {
private val _buttonState: MutableLiveData<Int> = MutableLiveData() // setter
var buttonState: LiveData<Int> = _buttonState // getter

fun onSelectItem(selectedButton: Int) {
_buttonState.value = selectedButton
}
}
Loading