신기성

345stage connected

1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fifth_four.*
5 7
6 class InputProfilFifthFourActivity : AppCompatActivity() { 8 class InputProfilFifthFourActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fifth_four) 12 setContentView(R.layout.activity_input_profil_fifth_four)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFifthThreeActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, SignInActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
24 +
25 +
11 } 26 }
12 } 27 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fifth_one.*
5 7
6 class InputProfilFifthOneActivity : AppCompatActivity() { 8 class InputProfilFifthOneActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fifth_one) 12 setContentView(R.layout.activity_input_profil_fifth_one)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFourthFiveActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFifthTwoActivity::class.java)
21 + startActivity(intent)
22 + }
11 } 23 }
12 } 24 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fifth_three.*
5 7
6 class InputProfilFifthThreeActivity : AppCompatActivity() { 8 class InputProfilFifthThreeActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fifth_three) 12 setContentView(R.layout.activity_input_profil_fifth_three)
13 +
14 +
15 + previousButton.setOnClickListener {
16 + var intent = Intent(this, InputProfilFifthTwoActivity::class.java)
17 + startActivity(intent)
18 + }
19 +
20 + nextButton.setOnClickListener {
21 + var intent = Intent(this, InputProfilFifthFourActivity::class.java)
22 + startActivity(intent)
23 + }
11 } 24 }
12 } 25 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fifth_two.*
5 7
6 class InputProfilFifthTwoActivity : AppCompatActivity() { 8 class InputProfilFifthTwoActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fifth_two) 12 setContentView(R.layout.activity_input_profil_fifth_two)
13 +
14 +
15 + previousButton.setOnClickListener {
16 + var intent = Intent(this, InputProfilFifthOneActivity::class.java)
17 + startActivity(intent)
18 + }
19 +
20 + nextButton.setOnClickListener {
21 + var intent = Intent(this, InputProfilFifthThreeActivity::class.java)
22 + startActivity(intent)
23 + }
11 } 24 }
12 } 25 }
......
...@@ -19,8 +19,7 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { ...@@ -19,8 +19,7 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
19 val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) 19 val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
20 val editor: SharedPreferences.Editor=prof.edit() 20 val editor: SharedPreferences.Editor=prof.edit()
21 21
22 - editor.putString("birthdate","none") 22 + //editor.putString("birthdate","none")
23 - editor.commit()
24 23
25 24
26 nextButton.setOnClickListener { 25 nextButton.setOnClickListener {
...@@ -30,22 +29,28 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { ...@@ -30,22 +29,28 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
30 var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt() 29 var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt()
31 if ((2019-birthdateinput)<19){ 30 if ((2019-birthdateinput)<19){
32 editor.putInt("c1_2",1) 31 editor.putInt("c1_2",1)
32 + editor.commit()
33 //마지막장에 상관없음 추가 33 //마지막장에 상관없음 추가
34 } 34 }
35 else if((2019-birthdateinput)<34){ 35 else if((2019-birthdateinput)<34){
36 editor.putInt("c1_3",1) 36 editor.putInt("c1_3",1)
37 + editor.commit()
37 } 38 }
38 else if((2019-birthdateinput)<40){ 39 else if((2019-birthdateinput)<40){
39 editor.putInt("c1_4",1) 40 editor.putInt("c1_4",1)
41 + editor.commit()
40 } 42 }
41 else if((2019-birthdateinput)<49){ 43 else if((2019-birthdateinput)<49){
42 editor.putInt("c1_5",1) 44 editor.putInt("c1_5",1)
45 + editor.commit()
43 } 46 }
44 else if((2019-birthdateinput)<59){ 47 else if((2019-birthdateinput)<59){
45 editor.putInt("c1_6",1) 48 editor.putInt("c1_6",1)
49 + editor.commit()
46 } 50 }
47 else{ 51 else{
48 editor.putInt("c1_7",1) 52 editor.putInt("c1_7",1)
53 + editor.commit()
49 } 54 }
50 } 55 }
51 56
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fourth_five.*
5 7
6 class InputProfilFourthFiveActivity : AppCompatActivity() { 8 class InputProfilFourthFiveActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fourth_five) 12 setContentView(R.layout.activity_input_profil_fourth_five)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFourthFourActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFifthOneActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
24 +
11 } 25 }
12 } 26 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fourth_four.*
5 7
6 class InputProfilFourthFourActivity : AppCompatActivity() { 8 class InputProfilFourthFourActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fourth_four) 12 setContentView(R.layout.activity_input_profil_fourth_four)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFourthThreeActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFourthFiveActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
24 +
11 } 25 }
12 } 26 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Context
4 +import android.content.Intent
5 +import android.content.SharedPreferences
3 import androidx.appcompat.app.AppCompatActivity 6 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 7 import android.os.Bundle
8 +import android.view.View.VISIBLE
9 +import android.widget.TextView
10 +import androidx.appcompat.app.AlertDialog
11 +import kotlinx.android.synthetic.main.activity_input_profil_fourth_one.*
5 12
6 class InputProfilFourthOneActivity : AppCompatActivity() { 13 class InputProfilFourthOneActivity : AppCompatActivity() {
7 14
8 override fun onCreate(savedInstanceState: Bundle?) { 15 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 16 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fourth_one) 17 setContentView(R.layout.activity_input_profil_fourth_one)
18 + //보유
19 + //미보유 - 전세 월세 공공주택 무상임대 보장기관 기타
20 +
21 + //소유
22 + //주택세대주 주택세대구성원 무주택자 무주택세대주 무주택세대구성원
23 +
24 + //그냥 소유 미소유-모두무주택자 2개로 함
25 +
26 +// 1. 툴바 사용 설정
27 + setSupportActionBar(toolbar)
28 +
29 + skipButton.setOnClickListener {
30 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
31 + startActivity(intent)
32 + }
33 +
34 + questionButton.setOnClickListener {
35 + val builder = AlertDialog.Builder(this)
36 + val dialogView = layoutInflater.inflate(R.layout.family_member_dialog, null)
37 + //val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
38 + //val dialogRatingBar = dialogView.findViewById<RatingBar>(R.id.dialogRb)
39 + dialogView.findViewById<TextView>(R.id.dialogTitle).text="가족구성원이란?"
40 + dialogView.findViewById<TextView>(R.id.dialogContent).text="주민등록상 같은 거주지에 사는 사람"
41 +
42 + builder.setView(dialogView)
43 + .setPositiveButton("확인") { dialogInterface, i ->
44 + //mainTv.text = dialogText.text.toString()
45 + //mainRb.rating = dialogRatingBar.rating
46 + /* 확인일 때 main의 View의 값에 dialog View에 있는 값을 적용 */
47 +
48 + }
49 + /*
50 + .setNegativeButton("취소") { dialogInterface, i ->
51 + /* 취소일 때 아무 액션이 없으므로 빈칸 */
11 } 52 }
53 + */
54 +
55 + .show()
56 +
57 + }
58 +
59 + val prof: SharedPreferences=getSharedPreferences("profdata", Context.MODE_PRIVATE)
60 + val editor: SharedPreferences.Editor=prof.edit()
61 +
62 + noButton.setOnClickListener{
63 + subLinearLayout.visibility=VISIBLE
64 +
65 + }
66 +
67 +
68 + previousButton.setOnClickListener {
69 + var intent = Intent(this, InputProfilThirdFourActivity::class.java)
70 + startActivity(intent)
71 + }
72 +
73 + nextButton.setOnClickListener {
74 +
75 + if(yesButton.isChecked){
76 + editor.putInt("c7_2",1)
77 + editor.commit()
78 + }
79 +
80 + if(jeonsaeButton.isChecked){
81 + editor.putInt("c7_31",1)
82 + editor.commit()
83 + }
84 + if(wolseButton.isChecked){
85 + editor.putInt("c7_31",1)
86 + editor.commit()
87 + }
88 + if(kongkongButton.isChecked){
89 + editor.putInt("c7_31",1)
90 + editor.commit()
91 + }
92 + if(moosangButton.isChecked){
93 + editor.putInt("c7_31",1)
94 + editor.commit()
95 + }
96 + if(bojangButton.isChecked){
97 + editor.putInt("c7_31",1)
98 + editor.commit()
99 + }
100 + if(guitarButton.isChecked){
101 + editor.putInt("c7_31",1)
102 + editor.commit()
103 + }
104 + var intent = Intent(this, InputProfilFirstTwoActivity::class.java)
105 + startActivity(intent)
106 + }
107 + }
108 +
109 +
110 +
111 +
12 } 112 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fourth_three.*
5 7
6 class InputProfilFourthThreeActivity : AppCompatActivity() { 8 class InputProfilFourthThreeActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fourth_three) 12 setContentView(R.layout.activity_input_profil_fourth_three)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFourthTwoActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFourthFourActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
11 } 24 }
12 } 25 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_fourth_two.*
5 7
6 class InputProfilFourthTwoActivity : AppCompatActivity() { 8 class InputProfilFourthTwoActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_fourth_two) 12 setContentView(R.layout.activity_input_profil_fourth_two)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFourthOneActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFourthThreeActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
11 } 24 }
12 } 25 }
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Intent
3 import androidx.appcompat.app.AppCompatActivity 4 import androidx.appcompat.app.AppCompatActivity
4 import android.os.Bundle 5 import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_third_four.*
5 7
6 class InputProfilThirdFourActivity : AppCompatActivity() { 8 class InputProfilThirdFourActivity : AppCompatActivity() {
7 9
8 override fun onCreate(savedInstanceState: Bundle?) { 10 override fun onCreate(savedInstanceState: Bundle?) {
9 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
10 setContentView(R.layout.activity_input_profil_third_four) 12 setContentView(R.layout.activity_input_profil_third_four)
13 +
14 +
15 + previousButton.setOnClickListener {
16 + var intent = Intent(this, InputProfilThirdThreeActivity::class.java)
17 + startActivity(intent)
18 + }
19 +
20 + nextButton.setOnClickListener {
21 + var intent = Intent(this, InputProfilFourthOneActivity::class.java)
22 + startActivity(intent)
23 + }
11 } 24 }
12 } 25 }
......
...@@ -20,7 +20,7 @@ class InputProfilThirdThreeActivity : AppCompatActivity() { ...@@ -20,7 +20,7 @@ class InputProfilThirdThreeActivity : AppCompatActivity() {
20 } 20 }
21 21
22 previousButton.setOnClickListener { 22 previousButton.setOnClickListener {
23 - var intent = Intent(this, InputProfilThirdThreeActivity::class.java) 23 + var intent = Intent(this, InputProfilThirdTwoActivity::class.java)
24 startActivity(intent) 24 startActivity(intent)
25 } 25 }
26 26
......
...@@ -214,10 +214,12 @@ ...@@ -214,10 +214,12 @@
214 </LinearLayout> 214 </LinearLayout>
215 215
216 <LinearLayout 216 <LinearLayout
217 + android:id="@+id/subLinearLayout"
217 android:layout_width="match_parent" 218 android:layout_width="match_parent"
218 android:layout_height="wrap_content" 219 android:layout_height="wrap_content"
219 android:layout_weight="1" 220 android:layout_weight="1"
220 - android:orientation="vertical"> 221 + android:orientation="vertical"
222 + android:visibility="visible">
221 223
222 <LinearLayout 224 <LinearLayout
223 android:layout_width="match_parent" 225 android:layout_width="match_parent"
......