Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신기성
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Authored by
신기성
2019-11-11 00:23:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da7044aa0416df210079e65586c8d67135c501cd
da7044aa
1 parent
2eacd85a
complete activity proto
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
vip/app/src/main/java/com/example/vip/InputProfilFirstTwoActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFirstTwoActivity.kt
View file @
da7044a
...
...
@@ -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
)
}
}
}
}
...
...
Please
register
or
login
to post a comment