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 01:21:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8ccdbe828a7b3e0813488717e790bd2e6592ba3
f8ccdbe8
1 parent
3e4e576b
345stage connected
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
232 additions
and
5 deletions
vip/app/src/main/java/com/example/vip/InputProfilFifthFourActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFifthOneActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFifthThreeActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFifthTwoActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFirstTwoActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFourthFiveActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFourthFourActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFourthOneActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFourthThreeActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilFourthTwoActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilThirdFourActivity.kt
vip/app/src/main/java/com/example/vip/InputProfilThirdThreeActivity.kt
vip/app/src/main/res/layout/activity_input_profil_fourth_one.xml
vip/app/src/main/java/com/example/vip/InputProfilFifthFourActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fifth_four.*
class
InputProfilFifthFourActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fifth_four
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthThreeActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
SignInActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFifthOneActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fifth_one.*
class
InputProfilFifthOneActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fifth_one
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthFiveActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthTwoActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFifthThreeActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fifth_three.*
class
InputProfilFifthThreeActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fifth_three
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthTwoActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthFourActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFifthTwoActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fifth_two.*
class
InputProfilFifthTwoActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fifth_two
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthOneActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthThreeActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFirstTwoActivity.kt
View file @
f8ccdbe
...
...
@@ -19,9 +19,8 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
val
prof
:
SharedPreferences
=
getSharedPreferences
(
"profdata"
,
Context
.
MODE_PRIVATE
)
val
editor
:
SharedPreferences
.
Editor
=
prof
.
edit
()
editor
.
putString
(
"birthdate"
,
"none"
)
editor
.
commit
()
//editor.putString("birthdate","none")
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFirstThreeActivity
::
class
.
java
)
...
...
@@ -30,22 +29,28 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
var
birthdateinput
=
findViewById
<
EditText
>(
R
.
id
.
editText
).
text
.
toString
().
toInt
()
if
((
2019
-
birthdateinput
)<
19
){
editor
.
putInt
(
"c1_2"
,
1
)
editor
.
commit
()
//마지막장에 상관없음 추가
}
else
if
((
2019
-
birthdateinput
)<
34
){
editor
.
putInt
(
"c1_3"
,
1
)
editor
.
commit
()
}
else
if
((
2019
-
birthdateinput
)<
40
){
editor
.
putInt
(
"c1_4"
,
1
)
editor
.
commit
()
}
else
if
((
2019
-
birthdateinput
)<
49
){
editor
.
putInt
(
"c1_5"
,
1
)
editor
.
commit
()
}
else
if
((
2019
-
birthdateinput
)<
59
){
editor
.
putInt
(
"c1_6"
,
1
)
editor
.
commit
()
}
else
{
editor
.
putInt
(
"c1_7"
,
1
)
editor
.
commit
()
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFourthFiveActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fourth_five.*
class
InputProfilFourthFiveActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fourth_five
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthFourActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFifthOneActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFourthFourActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fourth_four.*
class
InputProfilFourthFourActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fourth_four
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthThreeActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthFiveActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFourthOneActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Context
import
android.content.Intent
import
android.content.SharedPreferences
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
android.view.View.VISIBLE
import
android.widget.TextView
import
androidx.appcompat.app.AlertDialog
import
kotlinx.android.synthetic.main.activity_input_profil_fourth_one.*
class
InputProfilFourthOneActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fourth_one
)
//보유
//미보유 - 전세 월세 공공주택 무상임대 보장기관 기타
//소유
//주택세대주 주택세대구성원 무주택자 무주택세대주 무주택세대구성원
//그냥 소유 미소유-모두무주택자 2개로 함
// 1. 툴바 사용 설정
setSupportActionBar
(
toolbar
)
skipButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilSecondOneActivity
::
class
.
java
)
startActivity
(
intent
)
}
questionButton
.
setOnClickListener
{
val
builder
=
AlertDialog
.
Builder
(
this
)
val
dialogView
=
layoutInflater
.
inflate
(
R
.
layout
.
family_member_dialog
,
null
)
//val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
//val dialogRatingBar = dialogView.findViewById<RatingBar>(R.id.dialogRb)
dialogView
.
findViewById
<
TextView
>(
R
.
id
.
dialogTitle
).
text
=
"가족구성원이란?"
dialogView
.
findViewById
<
TextView
>(
R
.
id
.
dialogContent
).
text
=
"주민등록상 같은 거주지에 사는 사람"
builder
.
setView
(
dialogView
)
.
setPositiveButton
(
"확인"
)
{
dialogInterface
,
i
->
//mainTv.text = dialogText.text.toString()
//mainRb.rating = dialogRatingBar.rating
/* 확인일 때 main의 View의 값에 dialog View에 있는 값을 적용 */
}
/*
.setNegativeButton("취소") { dialogInterface, i ->
/* 취소일 때 아무 액션이 없으므로 빈칸 */
}
*/
.
show
()
}
val
prof
:
SharedPreferences
=
getSharedPreferences
(
"profdata"
,
Context
.
MODE_PRIVATE
)
val
editor
:
SharedPreferences
.
Editor
=
prof
.
edit
()
noButton
.
setOnClickListener
{
subLinearLayout
.
visibility
=
VISIBLE
}
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilThirdFourActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
if
(
yesButton
.
isChecked
){
editor
.
putInt
(
"c7_2"
,
1
)
editor
.
commit
()
}
if
(
jeonsaeButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
if
(
wolseButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
if
(
kongkongButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
if
(
moosangButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
if
(
bojangButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
if
(
guitarButton
.
isChecked
){
editor
.
putInt
(
"c7_31"
,
1
)
editor
.
commit
()
}
var
intent
=
Intent
(
this
,
InputProfilFirstTwoActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFourthThreeActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fourth_three.*
class
InputProfilFourthThreeActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fourth_three
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthTwoActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthFourActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilFourthTwoActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_fourth_two.*
class
InputProfilFourthTwoActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_fourth_two
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthOneActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthThreeActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilThirdFourActivity.kt
View file @
f8ccdbe
package
com.example.vip
import
android.content.Intent
import
androidx.appcompat.app.AppCompatActivity
import
android.os.Bundle
import
kotlinx.android.synthetic.main.activity_input_profil_third_four.*
class
InputProfilThirdFourActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_input_profil_third_four
)
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilThirdThreeActivity
::
class
.
java
)
startActivity
(
intent
)
}
nextButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilFourthOneActivity
::
class
.
java
)
startActivity
(
intent
)
}
}
}
...
...
vip/app/src/main/java/com/example/vip/InputProfilThirdThreeActivity.kt
View file @
f8ccdbe
...
...
@@ -20,7 +20,7 @@ class InputProfilThirdThreeActivity : AppCompatActivity() {
}
previousButton
.
setOnClickListener
{
var
intent
=
Intent
(
this
,
InputProfilThirdT
hree
Activity
::
class
.
java
)
var
intent
=
Intent
(
this
,
InputProfilThirdT
wo
Activity
::
class
.
java
)
startActivity
(
intent
)
}
...
...
vip/app/src/main/res/layout/activity_input_profil_fourth_one.xml
View file @
f8ccdbe
...
...
@@ -214,10 +214,12 @@
</LinearLayout>
<LinearLayout
android:id=
"@+id/subLinearLayout"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:visibility=
"visible"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
Please
register
or
login
to post a comment