신기성

complete activity proto

......@@ -21,16 +21,7 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
editor.putString("birthdate","none")
editor.commit()
/*
childNumberInputButton.setOnClickListener {
var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString()
if(childNum=="3"){
child1LinearLayout.visibility=VISIBLE
child2LinearLayout.visibility=VISIBLE
child3LinearLayout.visibility=VISIBLE
}
}
nextButton.setOnClickListener {
var intent = Intent(this, InputProfilFirstThreeActivity::class.java)
......@@ -38,9 +29,25 @@ childNumberInputButton.setOnClickListener {
var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt()
if ((2019-birthdateinput)<19){
editor.putString("c1_2","none")
editor.putInt("c1_2",1)
//마지막장에 상관없음 추가
}
else if((2019-birthdateinput)<34){
editor.putInt("c1_3",1)
}
else if((2019-birthdateinput)<40){
editor.putInt("c1_4",1)
}
else if((2019-birthdateinput)<49){
editor.putInt("c1_5",1)
}
*/
else if((2019-birthdateinput)<59){
editor.putInt("c1_6",1)
}
else{
editor.putInt("c1_7",1)
}
}
}
}
......