Showing
1 changed file
with
19 additions
and
12 deletions
... | @@ -21,16 +21,7 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { | ... | @@ -21,16 +21,7 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { |
21 | 21 | ||
22 | editor.putString("birthdate","none") | 22 | editor.putString("birthdate","none") |
23 | editor.commit() | 23 | editor.commit() |
24 | -/* | 24 | + |
25 | -childNumberInputButton.setOnClickListener { | ||
26 | - | ||
27 | - var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString() | ||
28 | - if(childNum=="3"){ | ||
29 | - child1LinearLayout.visibility=VISIBLE | ||
30 | - child2LinearLayout.visibility=VISIBLE | ||
31 | - child3LinearLayout.visibility=VISIBLE | ||
32 | - } | ||
33 | - } | ||
34 | 25 | ||
35 | nextButton.setOnClickListener { | 26 | nextButton.setOnClickListener { |
36 | var intent = Intent(this, InputProfilFirstThreeActivity::class.java) | 27 | var intent = Intent(this, InputProfilFirstThreeActivity::class.java) |
... | @@ -38,9 +29,25 @@ childNumberInputButton.setOnClickListener { | ... | @@ -38,9 +29,25 @@ childNumberInputButton.setOnClickListener { |
38 | 29 | ||
39 | var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt() | 30 | var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt() |
40 | if ((2019-birthdateinput)<19){ | 31 | if ((2019-birthdateinput)<19){ |
41 | - editor.putString("c1_2","none") | 32 | + editor.putInt("c1_2",1) |
33 | + //마지막장에 상관없음 추가 | ||
34 | + } | ||
35 | + else if((2019-birthdateinput)<34){ | ||
36 | + editor.putInt("c1_3",1) | ||
37 | + } | ||
38 | + else if((2019-birthdateinput)<40){ | ||
39 | + editor.putInt("c1_4",1) | ||
40 | + } | ||
41 | + else if((2019-birthdateinput)<49){ | ||
42 | + editor.putInt("c1_5",1) | ||
43 | + } | ||
44 | + else if((2019-birthdateinput)<59){ | ||
45 | + editor.putInt("c1_6",1) | ||
46 | + } | ||
47 | + else{ | ||
48 | + editor.putInt("c1_7",1) | ||
42 | } | 49 | } |
43 | } | 50 | } |
44 | - */ | 51 | + |
45 | } | 52 | } |
46 | } | 53 | } | ... | ... |
-
Please register or login to post a comment