신기성

shared preference proto

Showing 51 changed files with 1728 additions and 61 deletions
...@@ -9,7 +9,26 @@ ...@@ -9,7 +9,26 @@
9 android:roundIcon="@mipmap/ic_launcher_round" 9 android:roundIcon="@mipmap/ic_launcher_round"
10 android:supportsRtl="true" 10 android:supportsRtl="true"
11 android:theme="@style/NoActionBar"> 11 android:theme="@style/NoActionBar">
12 - <activity android:name=".InputProfilFirstThreeActivity"></activity> 12 + <activity android:name=".InputProfilFifthFourActivity"></activity>
13 + <activity android:name=".InputProfilFifthThreeActivity" />
14 + <activity android:name=".InputProfilFifthTwoActivity" />
15 + <activity android:name=".InputProfilFifthOneActivity" />
16 + <activity android:name=".InputProfilFourthFiveActivity" />
17 + <activity android:name=".InputProfilFourthFourActivity" />
18 + <activity android:name=".InputProfilFourthThreeActivity" />
19 + <activity android:name=".InputProfilFourthTwoActivity" />
20 + <activity android:name=".InputProfilFourthOneActivity" />
21 + <activity android:name=".InputProfilThirdFourActivity" />
22 + <activity android:name=".InputProfilThirdThreeActivity" />
23 + <activity android:name=".InputProfilThirdTwoActivity" />
24 + <activity android:name=".InputProfilThirdOneActivity" />
25 + <activity android:name=".InputProfilSecondThreeActivity" />
26 + <activity android:name=".InputProfilSecondTwoActivity" />
27 + <activity android:name=".InputProfilSecondOneActivity" />
28 + <activity android:name=".InputProfilFirstSixActivity" />
29 + <activity android:name=".InputProfilFirstFiveActivity" />
30 + <activity android:name=".InputProfilFirstFourActivity" />
31 + <activity android:name=".InputProfilFirstThreeActivity" />
13 <activity android:name=".InputProfilFirstTwoActivity" /> 32 <activity android:name=".InputProfilFirstTwoActivity" />
14 <activity android:name=".FragmentActivity" /> 33 <activity android:name=".FragmentActivity" />
15 <activity android:name=".FragmentLayout" /> 34 <activity android:name=".FragmentLayout" />
......
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Context
3 import android.content.Intent 4 import android.content.Intent
5 +import android.content.SharedPreferences
4 import androidx.appcompat.app.AppCompatActivity 6 import androidx.appcompat.app.AppCompatActivity
5 import android.os.Bundle 7 import android.os.Bundle
6 import android.view.Menu 8 import android.view.Menu
...@@ -8,6 +10,7 @@ import android.view.MenuItem ...@@ -8,6 +10,7 @@ import android.view.MenuItem
8 import android.widget.Toast 10 import android.widget.Toast
9 import androidx.appcompat.app.ActionBar 11 import androidx.appcompat.app.ActionBar
10 import androidx.core.content.ContextCompat 12 import androidx.core.content.ContextCompat
13 +import androidx.core.content.ContextCompat.startActivity
11 import com.google.android.material.bottomnavigation.BottomNavigationView 14 import com.google.android.material.bottomnavigation.BottomNavigationView
12 import com.google.android.material.snackbar.Snackbar 15 import com.google.android.material.snackbar.Snackbar
13 import com.google.firebase.database.DataSnapshot 16 import com.google.firebase.database.DataSnapshot
...@@ -37,43 +40,17 @@ class FavoritesActivity : AppCompatActivity() { ...@@ -37,43 +40,17 @@ class FavoritesActivity : AppCompatActivity() {
37 val policyList = ArrayList<PolicyItem>() 40 val policyList = ArrayList<PolicyItem>()
38 var favordatabase = FirebaseDatabase.getInstance().reference 41 var favordatabase = FirebaseDatabase.getInstance().reference
39 42
40 - if (intent.hasExtra("key")) {
41 - //textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임
42 -
43 - favordatabase.orderByChild("Policy").startAt(intent.getStringExtra("key")).endAt(intent.getStringExtra("key")+"\uf8ff").addListenerForSingleValueEvent(object :
44 - ValueEventListener {
45 - override fun onCancelled(p0: DatabaseError) {
46 - Toast.makeText(this@FavoritesActivity, "실패부분", Toast.LENGTH_SHORT).show()
47 - }
48 - override fun onDataChange(dataSnapshot: DataSnapshot) {
49 - for (memoSnapshot in dataSnapshot.children){
50 - val memo = memoSnapshot.getValue(MemoItemFavor::class.java)
51 -
52 - policyList.add(
53 - PolicyItem(
54 - ContextCompat.getDrawable(this@FavoritesActivity, R.drawable.image01)!!,
55 - memo!!.Policy,
56 - memo!!.Policy,
57 - memo!!.Policy,
58 - 4.toFloat(),
59 - ""
60 -
61 - )
62 - )
63 - }
64 -
65 - val adapter = PolicyAdapter(policyList)
66 - policyRecyclerView.adapter = adapter
67 43
68 - } 44 + val prof: SharedPreferences = getSharedPreferences("profdata", Context.MODE_PRIVATE)
45 + val editor: SharedPreferences.Editor=prof.edit()
69 46
70 - }) 47 + var tempstring=prof.getString("favorstringlist","")
48 + var sepstr=tempstring!!.split("@")
49 + var sepstrset=sepstr.toMutableSet()
71 50
51 + for (favor in sepstrset){
72 52
73 - } else { 53 + favordatabase.orderByChild("Policy").startAt(favor).endAt(favor).addListenerForSingleValueEvent(object :
74 - Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
75 -
76 - favordatabase.orderByChild("Policy").startAt(intent.getStringExtra("\uf8ff")).addListenerForSingleValueEvent(object :
77 ValueEventListener { 54 ValueEventListener {
78 override fun onCancelled(p0: DatabaseError) { 55 override fun onCancelled(p0: DatabaseError) {
79 Toast.makeText(this@FavoritesActivity, "실패부분", Toast.LENGTH_SHORT).show() 56 Toast.makeText(this@FavoritesActivity, "실패부분", Toast.LENGTH_SHORT).show()
...@@ -89,7 +66,7 @@ class FavoritesActivity : AppCompatActivity() { ...@@ -89,7 +66,7 @@ class FavoritesActivity : AppCompatActivity() {
89 memo!!.Policy, 66 memo!!.Policy,
90 memo!!.Policy, 67 memo!!.Policy,
91 4.toFloat(), 68 4.toFloat(),
92 - "" 69 + " "
93 70
94 ) 71 )
95 ) 72 )
...@@ -102,9 +79,15 @@ class FavoritesActivity : AppCompatActivity() { ...@@ -102,9 +79,15 @@ class FavoritesActivity : AppCompatActivity() {
102 79
103 }) 80 })
104 81
105 -
106 } 82 }
107 83
84 + if (intent.hasExtra("key")) {
85 + //textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임
86 +
87 + } else {
88 + Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
89 + }
90 +
108 91
109 92
110 // 1. 툴바 사용 설정 93 // 1. 툴바 사용 설정
......
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFifthFourActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fifth_four)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFifthOneActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fifth_one)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFifthThreeActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fifth_three)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFifthTwoActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fifth_two)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import android.graphics.Color
5 +import androidx.appcompat.app.AppCompatActivity
6 +import android.os.Bundle
7 +import kotlinx.android.synthetic.main.activity_input_profil_first_five.*
8 +
9 +class InputProfilFirstFiveActivity : AppCompatActivity() {
10 +
11 + override fun onCreate(savedInstanceState: Bundle?) {
12 + super.onCreate(savedInstanceState)
13 + setContentView(R.layout.activity_input_profil_first_five)
14 +
15 + inmanButton.setOnClickListener {
16 + if(outmanButton.isChecked){
17 + outmanButton.isChecked=false
18 + }
19 + }
20 + outmanButton.setOnClickListener {
21 + if(inmanButton.isChecked){
22 + inmanButton.isChecked=false
23 + }
24 + }
25 +
26 + previousButton.setOnClickListener {
27 + var intent = Intent(this, InputProfilFirstFourActivity::class.java)
28 + startActivity(intent)
29 + }
30 +
31 + nextButton.setOnClickListener {
32 + var intent = Intent(this, InputProfilFirstSixActivity::class.java)
33 + startActivity(intent)
34 + }
35 +
36 + }
37 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_first_four.*
7 +
8 +class InputProfilFirstFourActivity : AppCompatActivity() {
9 +
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 + setContentView(R.layout.activity_input_profil_first_four)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFirstThreeActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilFirstFiveActivity::class.java)
21 + startActivity(intent)
22 + }
23 + }
24 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_first_six.*
7 +
8 +class InputProfilFirstSixActivity : AppCompatActivity() {
9 +
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 + setContentView(R.layout.activity_input_profil_first_six)
13 +
14 + previousButton.setOnClickListener {
15 + var intent = Intent(this, InputProfilFirstFiveActivity::class.java)
16 + startActivity(intent)
17 + }
18 +
19 + nextButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
24 + }
25 +}
...@@ -16,8 +16,6 @@ import kotlinx.android.synthetic.main.activity_input_profil_first_three.* ...@@ -16,8 +16,6 @@ import kotlinx.android.synthetic.main.activity_input_profil_first_three.*
16 16
17 class InputProfilFirstThreeActivity : AppCompatActivity() { 17 class InputProfilFirstThreeActivity : AppCompatActivity() {
18 18
19 -
20 -
21 override fun onCreate(savedInstanceState: Bundle?) { 19 override fun onCreate(savedInstanceState: Bundle?) {
22 super.onCreate(savedInstanceState) 20 super.onCreate(savedInstanceState)
23 setContentView(R.layout.activity_input_profil_first_three) 21 setContentView(R.layout.activity_input_profil_first_three)
...@@ -63,10 +61,14 @@ class InputProfilFirstThreeActivity : AppCompatActivity() { ...@@ -63,10 +61,14 @@ class InputProfilFirstThreeActivity : AppCompatActivity() {
63 } 61 }
64 62
65 previousButton.setOnClickListener { 63 previousButton.setOnClickListener {
66 - var intent = Intent(this, SignInActivity::class.java) 64 + var intent = Intent(this, InputProfilFirstTwoActivity::class.java)
67 startActivity(intent) 65 startActivity(intent)
68 } 66 }
69 67
68 + nextButton.setOnClickListener {
69 + var intent = Intent(this, InputProfilFirstFourActivity::class.java)
70 + startActivity(intent)
71 + }
70 } 72 }
71 73
72 /* i will not use this code start 74 /* i will not use this code start
......
...@@ -5,7 +5,10 @@ import android.content.Intent ...@@ -5,7 +5,10 @@ import android.content.Intent
5 import android.content.SharedPreferences 5 import android.content.SharedPreferences
6 import androidx.appcompat.app.AppCompatActivity 6 import androidx.appcompat.app.AppCompatActivity
7 import android.os.Bundle 7 import android.os.Bundle
8 +import android.widget.EditText
8 import kotlinx.android.synthetic.main.activity_input_profil_first_two.* 9 import kotlinx.android.synthetic.main.activity_input_profil_first_two.*
10 +import kotlinx.android.synthetic.main.activity_input_profil_first_two.nextButton
11 +import kotlinx.android.synthetic.main.activity_input_profil_second_two.*
9 12
10 class InputProfilFirstTwoActivity : AppCompatActivity() { 13 class InputProfilFirstTwoActivity : AppCompatActivity() {
11 14
...@@ -18,10 +21,26 @@ class InputProfilFirstTwoActivity : AppCompatActivity() { ...@@ -18,10 +21,26 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
18 21
19 editor.putString("birthdate","none") 22 editor.putString("birthdate","none")
20 editor.commit() 23 editor.commit()
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 + }
21 34
22 nextButton.setOnClickListener { 35 nextButton.setOnClickListener {
23 var intent = Intent(this, InputProfilFirstThreeActivity::class.java) 36 var intent = Intent(this, InputProfilFirstThreeActivity::class.java)
24 startActivity(intent) 37 startActivity(intent)
38 +
39 + var birthdateinput=findViewById<EditText>(R.id.editText).text.toString().toInt()
40 + if ((2019-birthdateinput)<19){
41 + editor.putString("c1_2","none")
42 + }
25 } 43 }
44 + */
26 } 45 }
27 } 46 }
......
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFourthFiveActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fourth_five)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFourthFourActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fourth_four)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFourthOneActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fourth_one)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFourthThreeActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fourth_three)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilFourthTwoActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_fourth_two)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import android.widget.EditText
7 +import android.widget.RatingBar
8 +import android.widget.TextView
9 +import androidx.appcompat.app.AlertDialog
10 +import kotlinx.android.synthetic.main.activity_input_profil_second_one.*
11 +import kotlinx.android.synthetic.main.family_member_dialog.*
12 +import kotlinx.android.synthetic.main.family_member_dialog.view.*
13 +
14 +class InputProfilSecondOneActivity : AppCompatActivity() {
15 +
16 + override fun onCreate(savedInstanceState: Bundle?) {
17 + super.onCreate(savedInstanceState)
18 + setContentView(R.layout.activity_input_profil_second_one)
19 +
20 + // 1. 툴바 사용 설정
21 + setSupportActionBar(toolbar)
22 +
23 + skipButton.setOnClickListener {
24 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
25 + startActivity(intent)
26 + }
27 +
28 + questionButton.setOnClickListener {
29 + val builder = AlertDialog.Builder(this)
30 + val dialogView = layoutInflater.inflate(R.layout.family_member_dialog, null)
31 + //val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
32 + //val dialogRatingBar = dialogView.findViewById<RatingBar>(R.id.dialogRb)
33 + dialogView.findViewById<TextView>(R.id.dialogTitle).text="가족구성원이란?"
34 + dialogView.findViewById<TextView>(R.id.dialogContent).text="주민등록상 같은 거주지에 사는 사람"
35 +
36 + builder.setView(dialogView)
37 + .setPositiveButton("확인") { dialogInterface, i ->
38 + //mainTv.text = dialogText.text.toString()
39 + //mainRb.rating = dialogRatingBar.rating
40 + /* 확인일 때 main의 View의 값에 dialog View에 있는 값을 적용 */
41 +
42 + }
43 + /*
44 + .setNegativeButton("취소") { dialogInterface, i ->
45 + /* 취소일 때 아무 액션이 없으므로 빈칸 */
46 + }
47 + */
48 +
49 + .show()
50 +
51 + }
52 +
53 + previousButton.setOnClickListener {
54 + var intent = Intent(this, InputProfilFirstFiveActivity::class.java)
55 + startActivity(intent)
56 + }
57 +
58 + nextButton.setOnClickListener {
59 + var intent = Intent(this, InputProfilSecondTwoActivity::class.java)
60 + startActivity(intent)
61 + }
62 + }
63 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_second_three.*
7 +
8 +class InputProfilSecondThreeActivity : AppCompatActivity() {
9 +
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 + setContentView(R.layout.activity_input_profil_second_three)
13 +
14 + setSupportActionBar(toolbar)
15 +
16 + skipButton.setOnClickListener {
17 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
18 + startActivity(intent)
19 + }
20 +
21 + previousButton.setOnClickListener {
22 + var intent = Intent(this, InputProfilSecondTwoActivity::class.java)
23 + startActivity(intent)
24 + }
25 +
26 + nextButton.setOnClickListener {
27 + var intent = Intent(this, InputProfilSecondThreeActivity::class.java)
28 + startActivity(intent)
29 + }
30 + }
31 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import android.view.View.VISIBLE
7 +import android.widget.EditText
8 +import kotlinx.android.synthetic.main.activity_input_profil_second_two.*
9 +
10 +class InputProfilSecondTwoActivity : AppCompatActivity() {
11 +
12 + override fun onCreate(savedInstanceState: Bundle?) {
13 + super.onCreate(savedInstanceState)
14 + setContentView(R.layout.activity_input_profil_second_two)
15 +
16 +
17 + setSupportActionBar(toolbar)
18 +
19 + skipButton.setOnClickListener {
20 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
21 + startActivity(intent)
22 + }
23 +
24 + previousButton.setOnClickListener {
25 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
26 + startActivity(intent)
27 + }
28 +
29 + nextButton.setOnClickListener {
30 + var intent = Intent(this, InputProfilSecondThreeActivity::class.java)
31 + startActivity(intent)
32 + }
33 +
34 +//val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
35 + //mainTv.text = dialogText.text.toString()
36 + childNumberInputButton.setOnClickListener {
37 + var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString()
38 + if(childNum=="3"){
39 + child1LinearLayout.visibility=VISIBLE
40 + child2LinearLayout.visibility=VISIBLE
41 + child3LinearLayout.visibility=VISIBLE
42 + }
43 + }
44 +
45 + }
46 +}
1 +package com.example.vip
2 +
3 +import androidx.appcompat.app.AppCompatActivity
4 +import android.os.Bundle
5 +
6 +class InputProfilThirdFourActivity : AppCompatActivity() {
7 +
8 + override fun onCreate(savedInstanceState: Bundle?) {
9 + super.onCreate(savedInstanceState)
10 + setContentView(R.layout.activity_input_profil_third_four)
11 + }
12 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import android.widget.TextView
7 +import kotlinx.android.synthetic.main.activity_input_profil_third_one.*
8 +
9 +class InputProfilThirdOneActivity : AppCompatActivity() {
10 +
11 + override fun onCreate(savedInstanceState: Bundle?) {
12 + super.onCreate(savedInstanceState)
13 + setContentView(R.layout.activity_input_profil_third_one)
14 +
15 + // 1. 툴바 사용 설정
16 + setSupportActionBar(toolbar)
17 +
18 + skipButton.setOnClickListener {
19 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
20 + startActivity(intent)
21 + }
22 +
23 + previousButton.setOnClickListener {
24 + var intent = Intent(this, InputProfilSecondThreeActivity::class.java)
25 + startActivity(intent)
26 + }
27 +
28 + nextButton.setOnClickListener {
29 + var intent = Intent(this, InputProfilThirdTwoActivity::class.java)
30 + startActivity(intent)
31 + }
32 + }
33 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_third_three.*
7 +
8 +class InputProfilThirdThreeActivity : AppCompatActivity() {
9 +
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 + setContentView(R.layout.activity_input_profil_third_three)
13 +
14 + // 1. 툴바 사용 설정
15 + setSupportActionBar(toolbar)
16 +
17 + skipButton.setOnClickListener {
18 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
19 + startActivity(intent)
20 + }
21 +
22 + previousButton.setOnClickListener {
23 + var intent = Intent(this, InputProfilThirdThreeActivity::class.java)
24 + startActivity(intent)
25 + }
26 +
27 + nextButton.setOnClickListener {
28 + var intent = Intent(this, InputProfilThirdFourActivity::class.java)
29 + startActivity(intent)
30 + }
31 + }
32 +}
1 +package com.example.vip
2 +
3 +import android.content.Intent
4 +import androidx.appcompat.app.AppCompatActivity
5 +import android.os.Bundle
6 +import kotlinx.android.synthetic.main.activity_input_profil_third_two.*
7 +
8 +class InputProfilThirdTwoActivity : AppCompatActivity() {
9 +
10 + override fun onCreate(savedInstanceState: Bundle?) {
11 + super.onCreate(savedInstanceState)
12 + setContentView(R.layout.activity_input_profil_third_two)
13 +
14 + // 1. 툴바 사용 설정
15 + setSupportActionBar(toolbar)
16 +
17 + skipButton.setOnClickListener {
18 + var intent = Intent(this, InputProfilSecondOneActivity::class.java)
19 + startActivity(intent)
20 + }
21 +
22 + previousButton.setOnClickListener {
23 + var intent = Intent(this, InputProfilThirdOneActivity::class.java)
24 + startActivity(intent)
25 + }
26 +
27 + nextButton.setOnClickListener {
28 + var intent = Intent(this, InputProfilThirdThreeActivity::class.java)
29 + startActivity(intent)
30 + }
31 + }
32 +}
1 package com.example.vip 1 package com.example.vip
2 2
3 +import android.content.Context
3 import android.content.Intent 4 import android.content.Intent
5 +import android.content.SharedPreferences
4 import android.view.LayoutInflater 6 import android.view.LayoutInflater
5 import android.view.View 7 import android.view.View
6 import android.view.ViewGroup 8 import android.view.ViewGroup
...@@ -34,6 +36,13 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) : ...@@ -34,6 +36,13 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) :
34 36
35 private var view: View = v 37 private var view: View = v
36 38
39 + val prof: SharedPreferences = view.context.getSharedPreferences("profdata", Context.MODE_PRIVATE)
40 + val editor: SharedPreferences.Editor=prof.edit()
41 +
42 + var tempstring=prof.getString("favorstringlist","")
43 + var sepstr=tempstring!!.split("@")
44 + var sepstrset=sepstr.toMutableSet()
45 +
37 fun bind(item: PolicyItem) { 46 fun bind(item: PolicyItem) {
38 view.policyImage.setImageDrawable(item.policyItemImage) 47 view.policyImage.setImageDrawable(item.policyItemImage)
39 view.policyDday.text = item.policyItemDday 48 view.policyDday.text = item.policyItemDday
...@@ -42,6 +51,13 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) : ...@@ -42,6 +51,13 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) :
42 view.policyScore.rating= item.policyItemScore 51 view.policyScore.rating= item.policyItemScore
43 view.policyFavor.text=item.policyItemFavor 52 view.policyFavor.text=item.policyItemFavor
44 53
54 +
55 + if(item.policyItemTitle in sepstrset){
56 + view.policyFavor.isChecked=true
57 + }
58 + else{
59 +
60 + }
45 view.setOnClickListener{ 61 view.setOnClickListener{
46 62
47 val intent=Intent(view.context, DetailActivity::class.java) 63 val intent=Intent(view.context, DetailActivity::class.java)
...@@ -50,6 +66,28 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) : ...@@ -50,6 +66,28 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) :
50 //putExtraEnd 66 //putExtraEnd
51 view.context.startActivity(intent) 67 view.context.startActivity(intent)
52 } 68 }
69 +
70 + view.policyFavor.setOnClickListener {
71 + if (view.policyFavor.isChecked) {
72 + tempstring = tempstring + view.policyTitle.text.toString() + "@"
73 + editor.putString("favorstringlist", tempstring)
74 + editor.commit()
75 + Toast.makeText(
76 + view.context,
77 + "찜목록 추가 완료! : " + view.policyTitle.text.toString(),
78 + Toast.LENGTH_SHORT
79 + ).show()
80 + } else {
81 + sepstrset.remove(view.policyTitle.text.toString())
82 + editor.putString("favorstringlist", sepstrset.joinToString("@"))
83 + editor.commit()
84 + Toast.makeText(
85 + view.context,
86 + "찜목록 제거 완료! : " + view.policyTitle.text.toString(),
87 + Toast.LENGTH_SHORT
88 + ).show()
89 + }
90 + }
53 } 91 }
54 } 92 }
55 } 93 }
...\ No newline at end of file ...\ No newline at end of file
......
1 package com.example.vip 1 package com.example.vip
2 2
3 import android.app.Activity 3 import android.app.Activity
4 +import android.content.Context
4 import android.content.Intent 5 import android.content.Intent
6 +import android.content.SharedPreferences
5 import android.os.Bundle 7 import android.os.Bundle
6 import android.util.Half.toFloat 8 import android.util.Half.toFloat
7 import android.view.Menu 9 import android.view.Menu
...@@ -10,6 +12,7 @@ import android.widget.Toast ...@@ -10,6 +12,7 @@ import android.widget.Toast
10 import androidx.appcompat.app.ActionBar 12 import androidx.appcompat.app.ActionBar
11 import androidx.appcompat.app.AppCompatActivity 13 import androidx.appcompat.app.AppCompatActivity
12 import androidx.core.content.ContextCompat 14 import androidx.core.content.ContextCompat
15 +import androidx.core.content.ContextCompat.startActivity
13 import androidx.viewpager.widget.ViewPager 16 import androidx.viewpager.widget.ViewPager
14 import com.google.android.material.bottomnavigation.BottomNavigationView 17 import com.google.android.material.bottomnavigation.BottomNavigationView
15 import com.google.android.material.snackbar.Snackbar 18 import com.google.android.material.snackbar.Snackbar
...@@ -20,6 +23,8 @@ import com.google.firebase.database.ValueEventListener ...@@ -20,6 +23,8 @@ import com.google.firebase.database.ValueEventListener
20 import kotlinx.android.synthetic.main.activity_recommend.* 23 import kotlinx.android.synthetic.main.activity_recommend.*
21 import kotlinx.android.synthetic.main.activity_signin.* 24 import kotlinx.android.synthetic.main.activity_signin.*
22 import kotlinx.android.synthetic.main.activity_signin.toolbar 25 import kotlinx.android.synthetic.main.activity_signin.toolbar
26 +import kotlinx.android.synthetic.main.item_policy.*
27 +import kotlinx.android.synthetic.main.item_policy.view.*
23 import kotlinx.android.synthetic.main.search.* 28 import kotlinx.android.synthetic.main.search.*
24 29
25 data class MemoItemRecom( 30 data class MemoItemRecom(
...@@ -61,19 +66,14 @@ class RecommendActivity : AppCompatActivity() { ...@@ -61,19 +66,14 @@ class RecommendActivity : AppCompatActivity() {
61 memo!!.Policy, 66 memo!!.Policy,
62 4.toFloat(), 67 4.toFloat(),
63 "" 68 ""
64 -
65 ) 69 )
66 ) 70 )
67 } 71 }
68 -
69 val adapter = PolicyAdapter(policyList) 72 val adapter = PolicyAdapter(policyList)
70 policyRecyclerView.adapter = adapter 73 policyRecyclerView.adapter = adapter
71 -
72 } 74 }
73 -
74 }) 75 })
75 76
76 -
77 } else { 77 } else {
78 Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show() 78 Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
79 79
...@@ -101,37 +101,26 @@ class RecommendActivity : AppCompatActivity() { ...@@ -101,37 +101,26 @@ class RecommendActivity : AppCompatActivity() {
101 101
102 val adapter = PolicyAdapter(policyList) 102 val adapter = PolicyAdapter(policyList)
103 policyRecyclerView.adapter = adapter 103 policyRecyclerView.adapter = adapter
104 -
105 } 104 }
106 -
107 }) 105 })
108 -
109 -
110 } 106 }
111 -
112 -
113 -
114 // 1. 툴바 사용 설정 107 // 1. 툴바 사용 설정
115 setSupportActionBar(toolbar) 108 setSupportActionBar(toolbar)
116 -
117 // 2. 툴바 왼쪽 버튼 설정 109 // 2. 툴바 왼쪽 버튼 설정
118 supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true 110 supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true
119 supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정 111 supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정
120 supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기 112 supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기
121 -
122 ////bottom navigation view operation start 2 113 ////bottom navigation view operation start 2
123 bottomBar=supportActionBar!! 114 bottomBar=supportActionBar!!
124 val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) 115 val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
125 bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) 116 bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
126 ////bottom navigation view operation end 2 117 ////bottom navigation view operation end 2
127 -
128 } 118 }
129 // 3.툴바 메뉴 버튼을 설정 119 // 3.툴바 메뉴 버튼을 설정
130 override fun onCreateOptionsMenu(menu: Menu?): Boolean { 120 override fun onCreateOptionsMenu(menu: Menu?): Boolean {
131 menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정 121 menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정
132 return true 122 return true
133 } 123 }
134 -
135 // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백 124 // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백
136 override fun onOptionsItemSelected(item: MenuItem?): Boolean { 125 override fun onOptionsItemSelected(item: MenuItem?): Boolean {
137 // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다. 126 // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다.
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<selector xmlns:android="http://schemas.android.com/apk/res/android">
3 +
4 + <item android:state_checked="false"
5 + android:drawable="@drawable/profil_unselected"/>
6 + <item android:state_checked="true"
7 + android:drawable="@drawable/profil_selected"/>
8 +</selector>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <selector xmlns:android="http://schemas.android.com/apk/res/android"> 2 <selector xmlns:android="http://schemas.android.com/apk/res/android">
3 3
4 - <item android:state_checked="false" 4 +<item android:state_checked="false"
5 - android:drawable="@drawable/heart_stroke" /> 5 + android:drawable="@drawable/heart_stroke" />
6 - <item android:state_checked="true" 6 +<item android:state_checked="true"
7 - android:drawable="@drawable/heart_fill" /> 7 + android:drawable="@drawable/heart_fill" />
8 </selector> 8 </selector>
...\ No newline at end of file ...\ No newline at end of file
......
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFifthFourActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <androidx.appcompat.widget.Toolbar
15 + android:id="@+id/toolbar"
16 + android:layout_width="fill_parent"
17 + android:layout_height="wrap_content"
18 + android:layout_marginBottom="11dp"
19 + android:background="#FFF"
20 + android:elevation="5dp"
21 + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
22 + app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
23 +
24 + <LinearLayout
25 + android:layout_width="match_parent"
26 + android:layout_height="match_parent"
27 + android:orientation="horizontal">
28 +
29 + <Button
30 + android:id="@+id/skipButton"
31 + android:layout_width="10dp"
32 + android:layout_height="match_parent"
33 + android:layout_weight="1.5"
34 + android:text="건너뛰기"/>
35 + <LinearLayout
36 + android:layout_width="10dp"
37 + android:layout_height="match_parent"
38 + android:orientation="horizontal"
39 + android:layout_weight="1"/>
40 + <ImageView
41 + android:layout_width="77dp"
42 + android:layout_height="44dp"
43 + android:layout_gravity="center"
44 + android:layout_weight="1"
45 + android:src="@drawable/toolbar_logo" />
46 + <LinearLayout
47 + android:layout_width="10dp"
48 + android:layout_height="match_parent"
49 + android:orientation="horizontal"
50 + android:layout_weight="1"/>
51 + <LinearLayout
52 + android:layout_width="10dp"
53 + android:layout_height="match_parent"
54 + android:orientation="horizontal"
55 + android:layout_weight="1.5"/>
56 +
57 + </LinearLayout>
58 +
59 +
60 + </androidx.appcompat.widget.Toolbar>
61 +
62 + <LinearLayout
63 + android:layout_width="match_parent"
64 + android:layout_height="50dp"
65 + android:layout_weight="0"
66 + android:orientation="horizontal">
67 +
68 + <TextView
69 + android:id="@+id/stageTextView1"
70 + android:layout_width="wrap_content"
71 + android:layout_height="match_parent"
72 + android:layout_gravity="center"
73 + android:layout_weight="1"
74 + android:background="#1E90FF"
75 + android:gravity="center"
76 + android:text="1" />
77 +
78 + <TextView
79 + android:id="@+id/stageTextView2"
80 + android:layout_width="wrap_content"
81 + android:layout_height="match_parent"
82 + android:layout_gravity="center"
83 + android:layout_weight="1"
84 + android:background="#1E90FF"
85 + android:gravity="center"
86 + android:text="2" />
87 +
88 + <TextView
89 + android:id="@+id/stageTextView3"
90 + android:layout_width="wrap_content"
91 + android:layout_height="match_parent"
92 + android:layout_gravity="center"
93 + android:layout_weight="1"
94 + android:background="#1E90FF"
95 + android:gravity="center"
96 + android:text="3" />
97 +
98 + <TextView
99 + android:id="@+id/stageTextView4"
100 + android:layout_width="wrap_content"
101 + android:layout_height="match_parent"
102 + android:layout_gravity="center"
103 + android:layout_weight="1"
104 + android:background="#1E90FF"
105 + android:gravity="center"
106 + android:text="4" />
107 +
108 + <TextView
109 + android:id="@+id/stageTextView5"
110 + android:layout_width="wrap_content"
111 + android:layout_height="match_parent"
112 + android:layout_gravity="center"
113 + android:layout_weight="1"
114 + android:background="#1E90FF"
115 + android:gravity="center"
116 + android:text="5" />
117 +
118 + </LinearLayout>
119 +
120 + <LinearLayout
121 + android:layout_width="match_parent"
122 + android:layout_height="10dp"
123 + android:layout_weight="1"
124 + android:orientation="vertical"></LinearLayout>
125 +
126 + <LinearLayout
127 + android:layout_width="match_parent"
128 + android:layout_height="wrap_content"
129 + android:layout_weight="1"
130 + android:orientation="vertical">
131 +
132 + <LinearLayout
133 + android:layout_width="match_parent"
134 + android:layout_height="wrap_content"
135 + android:orientation="vertical">
136 +
137 + <RelativeLayout
138 + android:layout_width="match_parent"
139 + android:layout_height="match_parent">
140 +
141 + <TextView
142 + android:id="@+id/explainTextView"
143 + android:layout_width="wrap_content"
144 + android:layout_height="wrap_content"
145 + android:layout_centerInParent="true"
146 + android:layout_gravity="center"
147 + android:gravity="center"
148 + android:text="18. 금융기관 대출금, 공증된 사채 등으로 차용한 금액 중 미상환액, 부채금액을 적어주세요." />
149 +
150 + <Button
151 + android:id="@+id/questionButton"
152 + android:layout_width="30dp"
153 + android:layout_height="30dp"
154 + android:layout_gravity="center"
155 + android:layout_toRightOf="@id/explainTextView"
156 + android:backgroundTint="#1E90FF"
157 + android:gravity="center"
158 + android:text=" ? "
159 + android:textSize="8sp" />
160 + </RelativeLayout>
161 + </LinearLayout>
162 +
163 + <LinearLayout
164 + android:layout_width="match_parent"
165 + android:layout_height="50dp"
166 + android:layout_weight="1"
167 + android:orientation="vertical">
168 +
169 + </LinearLayout>
170 +
171 + <ScrollView
172 + android:layout_width="match_parent"
173 + android:layout_height="wrap_content">
174 +
175 + <LinearLayout
176 + android:layout_width="300dp"
177 + android:layout_height="wrap_content"
178 + android:layout_gravity="center"
179 + android:orientation="vertical">
180 +
181 + <TextView
182 + android:id="@+id/textView1"
183 + android:layout_width="match_parent"
184 + android:layout_height="wrap_content"
185 + android:text="부채 금액" />
186 +
187 + <EditText
188 + android:id="@+id/editText1"
189 + android:layout_width="match_parent"
190 + android:layout_height="wrap_content"
191 + android:ems="10"
192 + android:hint="ex)1000000" />
193 +
194 + </LinearLayout>
195 + </ScrollView>
196 +
197 + <LinearLayout
198 + android:layout_width="match_parent"
199 + android:layout_height="100dp"
200 + android:layout_weight="1"
201 + android:orientation="vertical"></LinearLayout>
202 +
203 + <LinearLayout
204 + android:layout_width="match_parent"
205 + android:layout_height="wrap_content"
206 + android:orientation="horizontal">
207 +
208 + <Button
209 + android:id="@+id/previousButton"
210 + android:layout_width="10dp"
211 + android:layout_height="wrap_content"
212 + android:layout_weight="1"
213 + android:text="이전 단계로" />
214 +
215 + <Button
216 + android:id="@+id/nextButton"
217 + android:layout_width="10dp"
218 + android:layout_height="wrap_content"
219 + android:layout_weight="1"
220 + android:text="다음 단계로" />
221 + </LinearLayout>
222 + </LinearLayout>
223 + </LinearLayout>
224 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFifthOneActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <androidx.appcompat.widget.Toolbar
15 + android:id="@+id/toolbar"
16 + android:layout_width="fill_parent"
17 + android:layout_height="wrap_content"
18 + android:layout_marginBottom="11dp"
19 + android:background="#FFF"
20 + android:elevation="5dp"
21 + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
22 + app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
23 +
24 + <LinearLayout
25 + android:layout_width="match_parent"
26 + android:layout_height="match_parent"
27 + android:orientation="horizontal">
28 +
29 + <Button
30 + android:id="@+id/skipButton"
31 + android:layout_width="10dp"
32 + android:layout_height="match_parent"
33 + android:layout_weight="1.5"
34 + android:text="건너뛰기"/>
35 + <LinearLayout
36 + android:layout_width="10dp"
37 + android:layout_height="match_parent"
38 + android:orientation="horizontal"
39 + android:layout_weight="1"/>
40 + <ImageView
41 + android:layout_width="77dp"
42 + android:layout_height="44dp"
43 + android:layout_gravity="center"
44 + android:layout_weight="1"
45 + android:src="@drawable/toolbar_logo" />
46 + <LinearLayout
47 + android:layout_width="10dp"
48 + android:layout_height="match_parent"
49 + android:orientation="horizontal"
50 + android:layout_weight="1"/>
51 + <LinearLayout
52 + android:layout_width="10dp"
53 + android:layout_height="match_parent"
54 + android:orientation="horizontal"
55 + android:layout_weight="1.5"/>
56 +
57 + </LinearLayout>
58 +
59 +
60 + </androidx.appcompat.widget.Toolbar>
61 +
62 + <LinearLayout
63 + android:layout_width="match_parent"
64 + android:layout_height="50dp"
65 + android:layout_weight="0"
66 + android:orientation="horizontal">
67 +
68 + <TextView
69 + android:id="@+id/stageTextView1"
70 + android:layout_width="wrap_content"
71 + android:layout_height="match_parent"
72 + android:layout_gravity="center"
73 + android:layout_weight="1"
74 + android:background="#1E90FF"
75 + android:gravity="center"
76 + android:text="1" />
77 +
78 + <TextView
79 + android:id="@+id/stageTextView2"
80 + android:layout_width="wrap_content"
81 + android:layout_height="match_parent"
82 + android:layout_gravity="center"
83 + android:layout_weight="1"
84 + android:background="#1E90FF"
85 + android:gravity="center"
86 + android:text="2" />
87 +
88 + <TextView
89 + android:id="@+id/stageTextView3"
90 + android:layout_width="wrap_content"
91 + android:layout_height="match_parent"
92 + android:layout_gravity="center"
93 + android:layout_weight="1"
94 + android:background="#1E90FF"
95 + android:gravity="center"
96 + android:text="3" />
97 +
98 + <TextView
99 + android:id="@+id/stageTextView4"
100 + android:layout_width="wrap_content"
101 + android:layout_height="match_parent"
102 + android:layout_gravity="center"
103 + android:layout_weight="1"
104 + android:background="#1E90FF"
105 + android:gravity="center"
106 + android:text="4" />
107 +
108 + <TextView
109 + android:id="@+id/stageTextView5"
110 + android:layout_width="wrap_content"
111 + android:layout_height="match_parent"
112 + android:layout_gravity="center"
113 + android:layout_weight="1"
114 + android:background="#1E90FF"
115 + android:gravity="center"
116 + android:text="5" />
117 +
118 + </LinearLayout>
119 +
120 + <LinearLayout
121 + android:layout_width="match_parent"
122 + android:layout_height="10dp"
123 + android:layout_weight="1"
124 + android:orientation="vertical"></LinearLayout>
125 +
126 + <LinearLayout
127 + android:layout_width="match_parent"
128 + android:layout_height="wrap_content"
129 + android:layout_weight="1"
130 + android:orientation="vertical">
131 +
132 + <LinearLayout
133 + android:layout_width="match_parent"
134 + android:layout_height="wrap_content"
135 + android:orientation="vertical">
136 +
137 + <RelativeLayout
138 + android:layout_width="match_parent"
139 + android:layout_height="match_parent">
140 +
141 + <TextView
142 + android:id="@+id/explainTextView"
143 + android:layout_width="wrap_content"
144 + android:layout_height="wrap_content"
145 + android:layout_centerInParent="true"
146 + android:layout_gravity="center"
147 + android:gravity="center"
148 + android:text="15. 월평균소득을 적어주세요. (기준 : 매월소득)" />
149 +
150 + <Button
151 + android:id="@+id/questionButton"
152 + android:layout_width="30dp"
153 + android:layout_height="30dp"
154 + android:layout_gravity="center"
155 + android:layout_toRightOf="@id/explainTextView"
156 + android:backgroundTint="#1E90FF"
157 + android:gravity="center"
158 + android:text=" ? "
159 + android:textSize="8sp" />
160 + </RelativeLayout>
161 + </LinearLayout>
162 +
163 + <LinearLayout
164 + android:layout_width="match_parent"
165 + android:layout_height="50dp"
166 + android:layout_weight="1"
167 + android:orientation="vertical">
168 +
169 + </LinearLayout>
170 +
171 + <ScrollView
172 + android:layout_width="match_parent"
173 + android:layout_height="wrap_content">
174 +
175 + <LinearLayout
176 + android:layout_width="300dp"
177 + android:layout_height="wrap_content"
178 + android:layout_gravity="center"
179 + android:orientation="vertical">
180 +
181 + <TextView
182 + android:id="@+id/textView1"
183 + android:layout_width="match_parent"
184 + android:layout_height="wrap_content"
185 + android:text="근로/사업소득" />
186 +
187 + <EditText
188 + android:id="@+id/editText1"
189 + android:layout_width="match_parent"
190 + android:layout_height="wrap_content"
191 + android:ems="10"
192 + android:hint="ex)1000000"
193 + android:inputType="textPersonName" />
194 +
195 + <TextView
196 + android:id="@+id/textView2"
197 + android:layout_width="match_parent"
198 + android:layout_height="wrap_content"
199 + android:text="그 외 소득(재산소득, 공직이전소득 등)" />
200 +
201 + <EditText
202 + android:id="@+id/editText2"
203 + android:layout_width="match_parent"
204 + android:layout_height="wrap_content"
205 + android:ems="10"
206 + android:hint="ex)1000000"
207 + android:inputType="textPersonName" />
208 + </LinearLayout>
209 + </ScrollView>
210 +
211 + <LinearLayout
212 + android:layout_width="match_parent"
213 + android:layout_height="100dp"
214 + android:layout_weight="1"
215 + android:orientation="vertical"></LinearLayout>
216 +
217 + <LinearLayout
218 + android:layout_width="match_parent"
219 + android:layout_height="wrap_content"
220 + android:orientation="horizontal">
221 +
222 + <Button
223 + android:id="@+id/previousButton"
224 + android:layout_width="10dp"
225 + android:layout_height="wrap_content"
226 + android:layout_weight="1"
227 + android:text="이전 단계로" />
228 +
229 + <Button
230 + android:id="@+id/nextButton"
231 + android:layout_width="10dp"
232 + android:layout_height="wrap_content"
233 + android:layout_weight="1"
234 + android:text="다음 단계로" />
235 + </LinearLayout>
236 + </LinearLayout>
237 + </LinearLayout>
238 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFifthThreeActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <androidx.appcompat.widget.Toolbar
15 + android:id="@+id/toolbar"
16 + android:layout_width="fill_parent"
17 + android:layout_height="wrap_content"
18 + android:layout_marginBottom="11dp"
19 + android:background="#FFF"
20 + android:elevation="5dp"
21 + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
22 + app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
23 +
24 + <LinearLayout
25 + android:layout_width="match_parent"
26 + android:layout_height="match_parent"
27 + android:orientation="horizontal">
28 +
29 + <Button
30 + android:id="@+id/skipButton"
31 + android:layout_width="10dp"
32 + android:layout_height="match_parent"
33 + android:layout_weight="1.5"
34 + android:text="건너뛰기"/>
35 + <LinearLayout
36 + android:layout_width="10dp"
37 + android:layout_height="match_parent"
38 + android:orientation="horizontal"
39 + android:layout_weight="1"/>
40 + <ImageView
41 + android:layout_width="77dp"
42 + android:layout_height="44dp"
43 + android:layout_gravity="center"
44 + android:layout_weight="1"
45 + android:src="@drawable/toolbar_logo" />
46 + <LinearLayout
47 + android:layout_width="10dp"
48 + android:layout_height="match_parent"
49 + android:orientation="horizontal"
50 + android:layout_weight="1"/>
51 + <LinearLayout
52 + android:layout_width="10dp"
53 + android:layout_height="match_parent"
54 + android:orientation="horizontal"
55 + android:layout_weight="1.5"/>
56 +
57 + </LinearLayout>
58 +
59 +
60 + </androidx.appcompat.widget.Toolbar>
61 +
62 + <LinearLayout
63 + android:layout_width="match_parent"
64 + android:layout_height="50dp"
65 + android:layout_weight="0"
66 + android:orientation="horizontal">
67 +
68 + <TextView
69 + android:id="@+id/stageTextView1"
70 + android:layout_width="wrap_content"
71 + android:layout_height="match_parent"
72 + android:layout_gravity="center"
73 + android:layout_weight="1"
74 + android:background="#1E90FF"
75 + android:gravity="center"
76 + android:text="1" />
77 +
78 + <TextView
79 + android:id="@+id/stageTextView2"
80 + android:layout_width="wrap_content"
81 + android:layout_height="match_parent"
82 + android:layout_gravity="center"
83 + android:layout_weight="1"
84 + android:background="#1E90FF"
85 + android:gravity="center"
86 + android:text="2" />
87 +
88 + <TextView
89 + android:id="@+id/stageTextView3"
90 + android:layout_width="wrap_content"
91 + android:layout_height="match_parent"
92 + android:layout_gravity="center"
93 + android:layout_weight="1"
94 + android:background="#1E90FF"
95 + android:gravity="center"
96 + android:text="3" />
97 +
98 + <TextView
99 + android:id="@+id/stageTextView4"
100 + android:layout_width="wrap_content"
101 + android:layout_height="match_parent"
102 + android:layout_gravity="center"
103 + android:layout_weight="1"
104 + android:background="#1E90FF"
105 + android:gravity="center"
106 + android:text="4" />
107 +
108 + <TextView
109 + android:id="@+id/stageTextView5"
110 + android:layout_width="wrap_content"
111 + android:layout_height="match_parent"
112 + android:layout_gravity="center"
113 + android:layout_weight="1"
114 + android:background="#1E90FF"
115 + android:gravity="center"
116 + android:text="5" />
117 +
118 + </LinearLayout>
119 +
120 + <LinearLayout
121 + android:layout_width="match_parent"
122 + android:layout_height="10dp"
123 + android:layout_weight="1"
124 + android:orientation="vertical"></LinearLayout>
125 +
126 + <LinearLayout
127 + android:layout_width="match_parent"
128 + android:layout_height="wrap_content"
129 + android:layout_weight="1"
130 + android:orientation="vertical">
131 +
132 + <LinearLayout
133 + android:layout_width="match_parent"
134 + android:layout_height="wrap_content"
135 + android:orientation="vertical">
136 +
137 + <RelativeLayout
138 + android:layout_width="match_parent"
139 + android:layout_height="match_parent">
140 +
141 + <TextView
142 + android:id="@+id/explainTextView"
143 + android:layout_width="wrap_content"
144 + android:layout_height="wrap_content"
145 + android:layout_centerInParent="true"
146 + android:layout_gravity="center"
147 + android:gravity="center"
148 + android:text="17. 재산을 적어주세요." />
149 +
150 + <Button
151 + android:id="@+id/questionButton"
152 + android:layout_width="30dp"
153 + android:layout_height="30dp"
154 + android:layout_gravity="center"
155 + android:layout_toRightOf="@id/explainTextView"
156 + android:backgroundTint="#1E90FF"
157 + android:gravity="center"
158 + android:text=" ? "
159 + android:textSize="8sp" />
160 + </RelativeLayout>
161 + </LinearLayout>
162 +
163 + <LinearLayout
164 + android:layout_width="match_parent"
165 + android:layout_height="50dp"
166 + android:layout_weight="1"
167 + android:orientation="vertical">
168 +
169 + </LinearLayout>
170 +
171 + <ScrollView
172 + android:layout_width="match_parent"
173 + android:layout_height="wrap_content">
174 +
175 + <LinearLayout
176 + android:layout_width="300dp"
177 + android:layout_height="wrap_content"
178 + android:layout_gravity="center"
179 + android:orientation="vertical">
180 +
181 + <TextView
182 + android:id="@+id/textView1"
183 + android:layout_width="match_parent"
184 + android:layout_height="wrap_content"
185 + android:text="주거용 재산" />
186 +
187 + <EditText
188 + android:id="@+id/editText1"
189 + android:layout_width="match_parent"
190 + android:layout_height="wrap_content"
191 + android:ems="10"
192 + android:hint="ex)1000000" />
193 +
194 + <TextView
195 + android:id="@+id/textView2"
196 + android:layout_width="match_parent"
197 + android:layout_height="wrap_content"
198 + android:text="주거 외 재산" />
199 +
200 + <EditText
201 + android:id="@+id/editText2"
202 + android:layout_width="match_parent"
203 + android:layout_height="wrap_content"
204 + android:ems="10"
205 + android:hint="ex)1000000" />
206 +
207 + <TextView
208 + android:id="@+id/textView3"
209 + android:layout_width="match_parent"
210 + android:layout_height="wrap_content"
211 + android:text="금융재산" />
212 +
213 + <EditText
214 + android:id="@+id/editText3"
215 + android:layout_width="match_parent"
216 + android:layout_height="wrap_content"
217 + android:ems="10"
218 + android:hint="ex)1000000" />
219 +
220 + </LinearLayout>
221 + </ScrollView>
222 +
223 + <LinearLayout
224 + android:layout_width="match_parent"
225 + android:layout_height="100dp"
226 + android:layout_weight="1"
227 + android:orientation="vertical"></LinearLayout>
228 +
229 + <LinearLayout
230 + android:layout_width="match_parent"
231 + android:layout_height="wrap_content"
232 + android:orientation="horizontal">
233 +
234 + <Button
235 + android:id="@+id/previousButton"
236 + android:layout_width="10dp"
237 + android:layout_height="wrap_content"
238 + android:layout_weight="1"
239 + android:text="이전 단계로" />
240 +
241 + <Button
242 + android:id="@+id/nextButton"
243 + android:layout_width="10dp"
244 + android:layout_height="wrap_content"
245 + android:layout_weight="1"
246 + android:text="다음 단계로" />
247 + </LinearLayout>
248 + </LinearLayout>
249 + </LinearLayout>
250 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFirstFiveActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <LinearLayout
15 + android:layout_width="match_parent"
16 + android:layout_height="50dp"
17 + android:layout_weight="0"
18 + android:orientation="horizontal">
19 +
20 + <TextView
21 + android:id="@+id/stageTextView1"
22 + android:layout_width="wrap_content"
23 + android:layout_height="wrap_content"
24 + android:layout_gravity="center"
25 + android:layout_weight="1"
26 + android:gravity="center"
27 + android:text="1단계" />
28 +
29 + <TextView
30 + android:id="@+id/neccesaryTextView"
31 + android:layout_width="wrap_content"
32 + android:layout_height="wrap_content"
33 + android:layout_gravity="center"
34 + android:layout_weight="1"
35 + android:gravity="center"
36 + android:text="필수항목" />
37 + </LinearLayout>
38 +
39 + <LinearLayout
40 + android:layout_width="match_parent"
41 + android:layout_height="10dp"
42 + android:layout_weight="1"
43 + android:orientation="vertical"></LinearLayout>
44 +
45 + <LinearLayout
46 + android:layout_width="match_parent"
47 + android:layout_height="wrap_content"
48 + android:layout_weight="1"
49 + android:orientation="vertical">
50 +
51 + <LinearLayout
52 + android:layout_width="match_parent"
53 + android:layout_height="wrap_content"
54 + android:orientation="vertical">
55 +
56 + <TextView
57 + android:id="@+id/explainTextView"
58 + android:layout_width="match_parent"
59 + android:layout_height="wrap_content"
60 + android:layout_gravity="center"
61 + android:gravity="center"
62 + android:text="4. 내/외국인 여부를 선택해주세요." />
63 + </LinearLayout>
64 +
65 + <LinearLayout
66 + android:layout_width="match_parent"
67 + android:layout_height="50dp"
68 + android:layout_weight="1"
69 + android:orientation="vertical"></LinearLayout>
70 +
71 + <LinearLayout
72 + android:layout_width="wrap_content"
73 + android:layout_height="wrap_content"
74 + android:layout_gravity="center"
75 + android:gravity="center"
76 + android:orientation="vertical">
77 +
78 + <ToggleButton
79 + android:id="@+id/inmanButton"
80 + android:layout_width="match_parent"
81 + android:layout_height="wrap_content"
82 + android:background="@drawable/profil_selector"
83 + android:text="내국인"
84 + android:textOff="내국인"
85 + android:textOn="내국인" />
86 +
87 + <ToggleButton
88 + android:id="@+id/outmanButton"
89 + android:layout_width="match_parent"
90 + android:layout_height="wrap_content"
91 + android:background="@drawable/profil_selector"
92 + android:text="외국인"
93 + android:textOff="외국인"
94 + android:textOn="외국인" />
95 +
96 + </LinearLayout>
97 +
98 + <LinearLayout
99 + android:layout_width="match_parent"
100 + android:layout_height="100dp"
101 + android:layout_weight="1"
102 + android:orientation="vertical"></LinearLayout>
103 +
104 + <LinearLayout
105 + android:layout_width="match_parent"
106 + android:layout_height="wrap_content"
107 + android:orientation="horizontal">
108 +
109 + <Button
110 + android:id="@+id/previousButton"
111 + android:layout_width="10dp"
112 + android:layout_height="wrap_content"
113 + android:layout_weight="1"
114 + android:text="이전 단계로" />
115 +
116 + <LinearLayout
117 + android:layout_width="10dp"
118 + android:layout_height="match_parent"
119 + android:layout_weight="1"
120 + android:orientation="vertical"></LinearLayout>
121 +
122 + <Button
123 + android:id="@+id/nextButton"
124 + android:layout_width="10dp"
125 + android:layout_height="wrap_content"
126 + android:layout_weight="1"
127 + android:text="다음 단계로" />
128 + </LinearLayout>
129 + </LinearLayout>
130 + </LinearLayout>
131 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFirstFourActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <LinearLayout
15 + android:layout_width="match_parent"
16 + android:layout_height="50dp"
17 + android:layout_weight="0"
18 + android:orientation="horizontal">
19 +
20 + <TextView
21 + android:id="@+id/stageTextView1"
22 + android:layout_width="wrap_content"
23 + android:layout_height="wrap_content"
24 + android:layout_gravity="center"
25 + android:layout_weight="1"
26 + android:gravity="center"
27 + android:text="1단계" />
28 +
29 + <TextView
30 + android:id="@+id/neccesaryTextView"
31 + android:layout_width="wrap_content"
32 + android:layout_height="wrap_content"
33 + android:layout_gravity="center"
34 + android:layout_weight="1"
35 + android:gravity="center"
36 + android:text="필수항목" />
37 + </LinearLayout>
38 +
39 + <LinearLayout
40 + android:layout_width="match_parent"
41 + android:layout_height="10dp"
42 + android:layout_weight="1"
43 + android:orientation="vertical"></LinearLayout>
44 +
45 + <LinearLayout
46 + android:layout_width="match_parent"
47 + android:layout_height="wrap_content"
48 + android:layout_weight="1"
49 + android:orientation="vertical">
50 +
51 + <LinearLayout
52 + android:layout_width="match_parent"
53 + android:layout_height="wrap_content"
54 + android:orientation="vertical">
55 +
56 + <TextView
57 + android:id="@+id/explainTextView"
58 + android:layout_width="match_parent"
59 + android:layout_height="wrap_content"
60 + android:layout_gravity="center"
61 + android:gravity="center"
62 + android:text="3. 주민등록상 거주지를 선택해 주세요." />
63 + </LinearLayout>
64 +
65 + <LinearLayout
66 + android:layout_width="match_parent"
67 + android:layout_height="50dp"
68 + android:layout_weight="1"
69 + android:orientation="vertical"></LinearLayout>
70 +
71 + <LinearLayout
72 + android:layout_width="wrap_content"
73 + android:layout_height="wrap_content"
74 + android:layout_gravity="center"
75 + android:gravity="center"
76 + android:orientation="vertical">
77 +
78 + <TextView
79 + android:id="@+id/doTextView"
80 + android:layout_width="match_parent"
81 + android:layout_height="wrap_content"
82 + android:text="시/도" />
83 +
84 + <EditText
85 + android:id="@+id/doEditText"
86 + android:layout_width="match_parent"
87 + android:layout_height="wrap_content"
88 + android:ems="10"
89 + android:hint="ex1) 서울시 ex2)경기도"
90 + android:inputType="textPersonName" />
91 +
92 + <TextView
93 + android:id="@+id/cityTextView"
94 + android:layout_width="match_parent"
95 + android:layout_height="wrap_content"
96 + android:text="시/군/구" />
97 +
98 + <EditText
99 + android:id="@+id/cityEditText"
100 + android:layout_width="match_parent"
101 + android:layout_height="wrap_content"
102 + android:ems="10"
103 + android:hint="ex) 동대문구"
104 + android:inputType="textPersonName" />
105 +
106 + <TextView
107 + android:id="@+id/dongTextView"
108 + android:layout_width="match_parent"
109 + android:layout_height="wrap_content"
110 + android:text="읍/면/동" />
111 +
112 + <EditText
113 + android:id="@+id/dongEditText"
114 + android:layout_width="match_parent"
115 + android:layout_height="wrap_content"
116 + android:ems="10"
117 + android:hint="ex) 회기동"
118 + android:inputType="textPersonName" />
119 +
120 + </LinearLayout>
121 +
122 + <LinearLayout
123 + android:layout_width="match_parent"
124 + android:layout_height="100dp"
125 + android:layout_weight="1"
126 + android:orientation="vertical"></LinearLayout>
127 +
128 + <LinearLayout
129 + android:layout_width="match_parent"
130 + android:layout_height="wrap_content"
131 + android:orientation="horizontal">
132 +
133 + <Button
134 + android:id="@+id/previousButton"
135 + android:layout_width="10dp"
136 + android:layout_height="wrap_content"
137 + android:layout_weight="1"
138 + android:text="이전 단계로" />
139 +
140 + <LinearLayout
141 + android:layout_width="10dp"
142 + android:layout_height="match_parent"
143 + android:layout_weight="1"
144 + android:orientation="vertical"></LinearLayout>
145 +
146 + <Button
147 + android:id="@+id/nextButton"
148 + android:layout_width="10dp"
149 + android:layout_height="wrap_content"
150 + android:layout_weight="1"
151 + android:text="다음 단계로" />
152 + </LinearLayout>
153 + </LinearLayout>
154 + </LinearLayout>
155 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + xmlns:app="http://schemas.android.com/apk/res-auto"
4 + xmlns:tools="http://schemas.android.com/tools"
5 + android:layout_width="match_parent"
6 + android:layout_height="match_parent"
7 + tools:context=".InputProfilFirstSixActivity">
8 +
9 + <LinearLayout
10 + android:layout_width="match_parent"
11 + android:layout_height="match_parent"
12 + android:orientation="vertical">
13 +
14 + <LinearLayout
15 + android:layout_width="match_parent"
16 + android:layout_height="50dp"
17 + android:layout_weight="0"
18 + android:orientation="horizontal">
19 +
20 + <TextView
21 + android:id="@+id/stageTextView1"
22 + android:layout_width="wrap_content"
23 + android:layout_height="wrap_content"
24 + android:layout_gravity="center"
25 + android:layout_weight="1"
26 + android:gravity="center"
27 + android:text="1단계" />
28 +
29 + <TextView
30 + android:id="@+id/neccesaryTextView"
31 + android:layout_width="wrap_content"
32 + android:layout_height="wrap_content"
33 + android:layout_gravity="center"
34 + android:layout_weight="1"
35 + android:gravity="center"
36 + android:text="필수항목" />
37 + </LinearLayout>
38 +
39 + <LinearLayout
40 + android:layout_width="match_parent"
41 + android:layout_height="10dp"
42 + android:layout_weight="1"
43 + android:orientation="vertical"></LinearLayout>
44 +
45 + <LinearLayout
46 + android:layout_width="match_parent"
47 + android:layout_height="wrap_content"
48 + android:layout_weight="1"
49 + android:orientation="vertical">
50 +
51 + <LinearLayout
52 + android:layout_width="match_parent"
53 + android:layout_height="wrap_content"
54 + android:orientation="vertical">
55 +
56 + <TextView
57 + android:id="@+id/explainTextView"
58 + android:layout_width="match_parent"
59 + android:layout_height="wrap_content"
60 + android:layout_gravity="center"
61 + android:gravity="center"
62 + android:text="5. 가구주 여부를 선택해 주세요" />
63 + </LinearLayout>
64 +
65 + <LinearLayout
66 + android:layout_width="match_parent"
67 + android:layout_height="50dp"
68 + android:layout_weight="1"
69 + android:orientation="vertical"></LinearLayout>
70 +
71 + <LinearLayout
72 + android:layout_width="wrap_content"
73 + android:layout_height="wrap_content"
74 + android:layout_gravity="center"
75 + android:gravity="center"
76 + android:orientation="vertical">
77 +
78 + <ToggleButton
79 + android:id="@+id/inmanButton"
80 + android:layout_width="match_parent"
81 + android:layout_height="wrap_content"
82 + android:background="@drawable/profil_selector"
83 + android:text="가구주"
84 + android:textOff="가구주"
85 + android:textOn="가구주" />
86 +
87 + <ToggleButton
88 + android:id="@+id/outmanButton"
89 + android:layout_width="match_parent"
90 + android:layout_height="wrap_content"
91 + android:background="@drawable/profil_selector"
92 + android:text="가구원"
93 + android:textOff="가구원"
94 + android:textOn="외국인" />
95 +
96 + </LinearLayout>
97 +
98 + <LinearLayout
99 + android:layout_width="match_parent"
100 + android:layout_height="100dp"
101 + android:layout_weight="1"
102 + android:orientation="vertical"></LinearLayout>
103 +
104 + <LinearLayout
105 + android:layout_width="match_parent"
106 + android:layout_height="wrap_content"
107 + android:orientation="horizontal">
108 +
109 + <Button
110 + android:id="@+id/previousButton"
111 + android:layout_width="10dp"
112 + android:layout_height="wrap_content"
113 + android:layout_weight="1"
114 + android:text="이전 단계로" />
115 +
116 + <LinearLayout
117 + android:layout_width="10dp"
118 + android:layout_height="match_parent"
119 + android:layout_weight="1"
120 + android:orientation="vertical"></LinearLayout>
121 +
122 + <Button
123 + android:id="@+id/nextButton"
124 + android:layout_width="10dp"
125 + android:layout_height="wrap_content"
126 + android:layout_weight="1"
127 + android:text="다음 단계로" />
128 + </LinearLayout>
129 + </LinearLayout>
130 + </LinearLayout>
131 +</androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 android:orientation="horizontal"> 18 android:orientation="horizontal">
19 19
20 <TextView 20 <TextView
21 - android:id="@+id/stageTextView" 21 + android:id="@+id/stageTextView1"
22 android:layout_width="wrap_content" 22 android:layout_width="wrap_content"
23 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
24 android:layout_gravity="center" 24 android:layout_gravity="center"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 android:orientation="horizontal"> 18 android:orientation="horizontal">
19 19
20 <TextView 20 <TextView
21 - android:id="@+id/stageTextView" 21 + android:id="@+id/stageTextView1"
22 android:layout_width="wrap_content" 22 android:layout_width="wrap_content"
23 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
24 android:layout_gravity="center" 24 android:layout_gravity="center"
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:layout_width="wrap_content"
4 + android:layout_height="wrap_content"
5 + android:layout_gravity="center"
6 + android:gravity="center"
7 + android:orientation="vertical">
8 +
9 + <TextView
10 + android:id="@+id/dialogTitle"
11 + android:layout_width="match_parent"
12 + android:layout_height="wrap_content"
13 + android:layout_gravity="center"
14 + android:layout_marginLeft="16dp"
15 + android:layout_marginTop="24dp"
16 + android:layout_marginRight="16dp"
17 + android:layout_marginBottom="16dp"
18 + android:gravity="center"
19 + android:text="다이얼로그 예제"
20 + android:textAlignment="center"
21 + android:textSize="18sp"
22 + android:textStyle="bold" />
23 +
24 + <TextView
25 + android:id="@+id/dialogContent"
26 + android:layout_width="match_parent"
27 + android:layout_height="wrap_content"
28 + android:layout_gravity="center"
29 + android:gravity="center"
30 + android:text="다이얼로그 내용" />
31 +
32 +</LinearLayout>
...\ No newline at end of file ...\ No newline at end of file
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
42 android:layout_height="30dp" 42 android:layout_height="30dp"
43 android:layout_weight="0" 43 android:layout_weight="0"
44 android:background="@drawable/toggle_selector" 44 android:background="@drawable/toggle_selector"
45 + android:checked="false"
45 android:textOff="" 46 android:textOff=""
46 android:textOn="" /> 47 android:textOn="" />
47 </LinearLayout> 48 </LinearLayout>
......
...@@ -3,4 +3,8 @@ ...@@ -3,4 +3,8 @@
3 <color name="colorPrimary">#008577</color> 3 <color name="colorPrimary">#008577</color>
4 <color name="colorPrimaryDark">#00574B</color> 4 <color name="colorPrimaryDark">#00574B</color>
5 <color name="colorAccent">#D81B60</color> 5 <color name="colorAccent">#D81B60</color>
6 +
7 + <drawable name="profil_selected">#1E90FF</drawable>
8 + <drawable name="profil_unselected">#FFFFFF</drawable>
9 +
6 </resources> 10 </resources>
......