신기성

profile filling proto

Showing 229 changed files with 754 additions and 392 deletions
......@@ -9,7 +9,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/NoActionBar">
<activity android:name=".InputProfilFifthFourActivity"></activity>
<activity android:name=".ChildAdapter"></activity>
<activity android:name=".InputProfilFifthFourActivity" />
<activity android:name=".InputProfilFifthThreeActivity" />
<activity android:name=".InputProfilFifthTwoActivity" />
<activity android:name=".InputProfilFifthOneActivity" />
......@@ -30,24 +31,21 @@
<activity android:name=".InputProfilFirstFourActivity" />
<activity android:name=".InputProfilFirstThreeActivity" />
<activity android:name=".InputProfilFirstTwoActivity" />
<activity android:name=".FragmentActivity" />
<activity android:name=".FragmentLayout" />
<activity android:name=".InputProfilFirstOneActivity" />
<activity android:name=".PrivacyPolicyActivity"/>
<activity android:name=".TermsOfUserActivity"/>
<activity android:name=".NoticeActivity"/>
<activity android:name=".QuestionsActivity"/>
<activity android:name=".WelcomeActivity" />
<activity android:name=".PushInfoActivity"/>
<activity android:name=".SettingActivity" />
<activity android:name=".TermsDetailActivity"/>
<activity android:name=".DetailActivity" />
<activity android:name=".InfoActivity" />
<activity android:name=".FavoritesActivity" />
<activity android:name=".SettingsInForm"/>
<activity android:name=".RecommendActivity" />
<activity android:name=".SignInActivity" />
<activity android:name=".SignUpActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".SearchActivity" android:windowSoftInputMode="adjustNothing"/>
<activity
android:name=".SearchActivity"
android:windowSoftInputMode="adjustNothing" />
<activity
android:name=".SplashActivity"
android:theme="@style/SplashTheme">
......
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.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.item_bs.view.*
class BSAdapter(private val items: ArrayList<BSItem>) :
RecyclerView.Adapter<BSAdapter.ViewHolder>() {
override fun getItemCount() = items.size
override fun onBindViewHolder(holder: BSAdapter.ViewHolder, position: Int) {
val item = items[position]
holder.apply {
bind(item)
itemView.tag = item
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int):
BSAdapter.ViewHolder {
val inflatedView = LayoutInflater.from(parent.context)
.inflate(R.layout.item_bs, parent, false)
return BSAdapter.ViewHolder(inflatedView)
}
class ViewHolder(v: View) : RecyclerView.ViewHolder(v) {
private var view: View = v
fun bind(item: BSItem) {
view.circleformButton.text=item.numOfBS.toString()
view.bsTextView.text=" 형제자매 "+item.numOfBS.toString()
view.womanButton.setOnClickListener {
if(view.manButton.isChecked){
view.manButton.isChecked=false
}else{
}
}
view.manButton.setOnClickListener {
if(view.womanButton.isChecked){
view.womanButton.isChecked=false
}else{
}
}
}
}
}
\ No newline at end of file
package com.example.vip
class QnAItem (val question: String, val answer: String, val arrow: String)
\ No newline at end of file
class BSItem(val numOfBS: Int)
\ No newline at end of file
......
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.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.item_child.view.*
import kotlinx.android.synthetic.main.item_policyfield.view.*
class ChildAdapter(private val items: ArrayList<ChildItem>) :
RecyclerView.Adapter<ChildAdapter.ViewHolder>() {
override fun getItemCount() = items.size
override fun onBindViewHolder(holder: ChildAdapter.ViewHolder, position: Int) {
val item = items[position]
holder.apply {
bind(item)
itemView.tag = item
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int):
ChildAdapter.ViewHolder {
val inflatedView = LayoutInflater.from(parent.context)
.inflate(R.layout.item_child, parent, false)
return ChildAdapter.ViewHolder(inflatedView)
}
class ViewHolder(v: View) : RecyclerView.ViewHolder(v) {
private var view: View = v
fun bind(item: ChildItem) {
view.circleformButton.text=item.numOfChild.toString()
view.childTextView.text=" 자녀 "+item.numOfChild.toString()
view.womanButton.setOnClickListener {
if(view.manButton.isChecked){
view.manButton.isChecked=false
}else{
}
}
view.manButton.setOnClickListener {
if(view.womanButton.isChecked){
view.womanButton.isChecked=false
}else{
}
}
}
}
}
\ No newline at end of file
package com.example.vip
class ChildItem(val numOfChild: Int)
\ No newline at end of file
package com.example.vip
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.drawable.GradientDrawable
import android.os.Bundle
import android.util.Half.toFloat
import android.view.Menu
......@@ -106,11 +104,8 @@ class DetailActivity : AppCompatActivity() {
}
////bottom navigation view operation start 2
bottomBar=supportActionBar!!
val bottomNavigation: BottomNavigationView =findViewById(R.id.rightBottomBVW)
val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val bottomNavigation2: BottomNavigationView =findViewById(R.id.leftBottomBVW)
bottomNavigation2.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
////bottom navigation view operation end 2
......
package com.example.vip
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import android.widget.ImageView
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_info.*
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_settings_in_form.*
class InfoActivity : AppCompatActivity() {
......@@ -22,46 +15,34 @@ class InfoActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_info)
// statusbar color chacnge
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
getWindow().setStatusBarColor(getResources().getColor(R.color.infomainColor));
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
Toast.makeText(applicationContext,prof.getString("manorwoman","nothing"),
Toast.LENGTH_SHORT).show()
InfoProfilModify.setOnClickListener {
var intent = Intent(this, SettingActivity::class.java)
startActivity(intent)
}
//temp
var accountImage: ImageView =findViewById(R.id.infoAccountImage)
var profilImage: ImageView =findViewById(R.id.InfoProfilImage)
InfoButtonSettings.setOnClickListener {
var intent = Intent(this, SettingsInForm::class.java)
startActivity(intent)
// 설정 눌렀을 때
}
accountImage.setImageResource(R.drawable.image01)
profilImage.setImageResource(R.drawable.image01)
InfoButtonNotice.setOnClickListener {
var intent = Intent(this, NoticeActivity::class.java)
startActivity(intent)
}
InfoButtonFAQ.setOnClickListener {
var intent = Intent(this, QuestionsActivity::class.java)
//temp
InfoButtonLaw.setOnClickListener {
var intent = Intent(this, SettingActivity::class.java)
startActivity(intent)
}
//pushing test start
// InfoButtonSettings.setOnClickListener {
// //var intent = Intent(this, SettingActivity::class.java)
InfoButtonSettings.setOnClickListener {
//var intent = Intent(this, SettingActivity::class.java)
//test start
// var intent = Intent(this, InputProfilFirstOneActivity::class.java)
var intent = Intent(this, InputProfilFirstOneActivity::class.java)
//test end
// startActivity(intent)
// }
startActivity(intent)
}
//pushing test end
}
}
......
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 kotlinx.android.synthetic.main.activity_input_profil_fifth_four.*
......@@ -16,7 +18,28 @@ class InputProfilFifthFourActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
editor.putInt("c1_1",1); editor.commit()
editor.putInt("c2_1",1); editor.commit()
editor.putInt("c3_1",1); editor.commit()
editor.putInt("c4_1",1); editor.commit()
editor.putInt("c5_1",1); editor.commit()
editor.putInt("c6_1",1); editor.commit()
editor.putInt("c7_1",1); editor.commit()
editor.putInt("c8_1",1); editor.commit()
editor.putInt("c9_1",1); editor.commit()
editor.putInt("c10_1",1); editor.commit()
editor.putInt("c11_1",1); editor.commit()
editor.putInt("c12_1",1); editor.commit()
editor.putInt("c13_1",1); editor.commit()
editor.putInt("c14_1",1); editor.commit()
editor.putInt("c15_1",1); editor.commit()
editor.putInt("c16_1",1); editor.commit()
var intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
}
......
package com.example.vip
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
......@@ -28,7 +30,17 @@ class InputProfilFirstFiveActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(inmanButton.isChecked){
editor.putInt("c1_2",1); editor.commit()
}else if(outmanButton.isChecked){
editor.putInt("c1_3",1); editor.commit()
}else{
}
var intent = Intent(this, InputProfilFirstSixActivity::class.java)
startActivity(intent)
}
......
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 kotlinx.android.synthetic.main.activity_input_profil_first_six.*
......@@ -16,7 +18,18 @@ class InputProfilFirstSixActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(gagoojooButton.isChecked){
editor.putInt("c13_2",1); editor.commit()
}else if(gagoowonButton.isChecked){
editor.putInt("c13_3",1); editor.commit()
}else{
}
var intent = Intent(this, InputProfilSecondOneActivity::class.java)
startActivity(intent)
}
......
......@@ -45,12 +45,12 @@ class InputProfilFirstThreeActivity : AppCompatActivity() {
startActivity(intent)
if (manButton.isChecked){
editor.putInt("c2_1",1)
editor.putInt("c3_2",1)
editor.commit()
//마지막장에 상관없음 추가
}
else{
editor.putInt("c2_2",1)
editor.putInt("c3_3",1)
editor.commit()
}
}
......
......@@ -5,7 +5,10 @@ import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.EditText
import android.widget.Toast
import com.google.firebase.messaging.FirebaseMessaging
import kotlinx.android.synthetic.main.activity_input_profil_first_two.*
import kotlinx.android.synthetic.main.activity_input_profil_first_two.nextButton
import kotlinx.android.synthetic.main.activity_input_profil_second_two.*
......@@ -37,7 +40,15 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
if ((2019-birthdateint)<19){
editor.putInt("c1_2",1)
editor.commit()
Toast.makeText(baseContext, prof.getInt("c1_2",0).toString(), Toast.LENGTH_SHORT).show()
//마지막장에 상관없음 추가
FirebaseMessaging.getInstance().subscribeToTopic("c1_2")
.addOnCompleteListener { task ->
var msg = getString(R.string.msg_subscribed)
if (!task.isSuccessful) {
msg = getString(R.string.msg_subscribe_failed)
}
}
}
else if((2019-birthdateint)<34){
editor.putInt("c1_3",1)
......
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 kotlinx.android.synthetic.main.activity_input_profil_fourth_five.*
......@@ -16,7 +18,36 @@ class InputProfilFourthFiveActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}
if(iljaeButton.isChecked){editor.putInt("c8_12",1); editor.commit()}
if(specialpihaeButton.isChecked){editor.putInt("c8_13",1); editor.commit()}
if(sanuppihaeButton.isChecked){editor.putInt("c8_14",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
//기타가 똑같은거 지정
editor.putInt("c1_1",1); editor.commit()
editor.putInt("c2_1",1); editor.commit()
editor.putInt("c3_1",1); editor.commit()
editor.putInt("c4_1",1); editor.commit()
editor.putInt("c5_1",1); editor.commit()
editor.putInt("c6_1",1); editor.commit()
editor.putInt("c7_1",1); editor.commit()
editor.putInt("c8_1",1); editor.commit()
editor.putInt("c9_1",1); editor.commit()
editor.putInt("c10_1",1); editor.commit()
editor.putInt("c11_1",1); editor.commit()
editor.putInt("c12_1",1); editor.commit()
editor.putInt("c13_1",1); editor.commit()
editor.putInt("c14_1",1); editor.commit()
editor.putInt("c15_1",1); editor.commit()
editor.putInt("c16_1",1); editor.commit()
var intent = Intent(this, InputProfilFifthOneActivity::class.java)
startActivity(intent)
}
......
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 kotlinx.android.synthetic.main.activity_input_profil_fourth_four.*
......@@ -16,11 +18,30 @@ class InputProfilFourthFourActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}
if(pokryukButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(pihaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(kachoolButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(sagoButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(ihonButton.isChecked){editor.putInt("c8_15",1); editor.commit()}
if(jaehaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()}
if(hakkyobaakButton.isChecked){editor.putInt("c8_16",1); editor.commit()}
if(siljikButton.isChecked){editor.putInt("c5_9",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
var intent = Intent(this, InputProfilFourthFiveActivity::class.java)
startActivity(intent)
}
}
}
......
......@@ -5,6 +5,7 @@ import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
......@@ -59,48 +60,56 @@ class InputProfilFourthOneActivity : AppCompatActivity() {
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)
}
yesButton.setOnClickListener {
subLinearLayout.visibility=GONE
noButton.isChecked=false
}
noButton.setOnClickListener {
subLinearLayout.visibility=VISIBLE
yesButton.isChecked=false
}
nextButton.setOnClickListener {
if(yesButton.isChecked){
editor.putInt("c7_2",1)
editor.putInt("c14_2",1)
editor.commit()
}
if(noButton.isChecked){
editor.putInt("c14_3",1)
editor.commit()
}
if(jeonsaeButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_2",1)
editor.commit()
}
if(wolseButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_3",1)
editor.commit()
}
if(kongkongButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_4",1)
editor.commit()
}
if(moosangButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_5",1)
editor.commit()
}
if(bojangButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_6",1)
editor.commit()
}
if(guitarButton.isChecked){
editor.putInt("c7_31",1)
editor.putInt("c16_7",1)
editor.commit()
}
var intent = Intent(this, InputProfilFourthTwoActivity::class.java)
startActivity(intent)
}
......
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 kotlinx.android.synthetic.main.activity_input_profil_fourth_three.*
......@@ -16,7 +18,24 @@ class InputProfilFourthThreeActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}
if(jeosodeukButton.isChecked){editor.putInt("c8_3",1); editor.commit()}
if(hanboomoButton.isChecked){editor.putInt("c8_7",1); editor.commit()}
if(oegookinButton.isChecked){editor.putInt("c8_5",1); editor.commit()}
if(damoonhwaButton.isChecked){editor.putInt("c8_4",1); editor.commit()}
if(jaangaeButton.isChecked){editor.putInt("c8_2",1); editor.commit()}
if(imshinchoolsanButton.isChecked){editor.putInt("c7_1",1); editor.commit()}
if(ipyaangButton.isChecked){editor.putInt("c8_10",1); editor.commit()}
if(gaajungButton.isChecked){editor.putInt("c8_11",1); editor.commit()}
if(bookhanButton.isChecked){editor.putInt("c8_6",1); editor.commit()}
if(gookgayoogongButton.isChecked){editor.putInt("c8_8",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
var intent = Intent(this, InputProfilFourthFourActivity::class.java)
startActivity(intent)
}
......
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.GONE
import android.view.View.VISIBLE
import kotlinx.android.synthetic.main.activity_input_profil_fourth_two.*
class InputProfilFourthTwoActivity : AppCompatActivity() {
......@@ -16,10 +20,31 @@ class InputProfilFourthTwoActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(yesButton.isChecked){editor.putInt("c15_2",1); editor.commit()}
if(noButton.isChecked){editor.putInt("c15_3",1); editor.commit()}
if(jeonsaeButton.isChecked){editor.putInt("c16_2",1); editor.commit()}
if(wolseButton.isChecked){editor.putInt("c16_3",1); editor.commit()}
if(kongkongButton.isChecked){editor.putInt("c16_4",1); editor.commit()}
if(moosangButton.isChecked){editor.putInt("c16_5",1); editor.commit()}
if(bojangButton.isChecked){editor.putInt("c16_6",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c16_7",1); editor.commit()}
var intent = Intent(this, InputProfilFourthThreeActivity::class.java)
startActivity(intent)
}
yesButton.setOnClickListener {
subLayout.visibility=GONE
noButton.isChecked=false
}
noButton.setOnClickListener {
subLayout.visibility=VISIBLE
yesButton.isChecked=false
}
}
}
......
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.widget.Button
import android.widget.EditText
import android.widget.RatingBar
import android.widget.TextView
......@@ -55,9 +58,39 @@ class InputProfilSecondOneActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(baewoojaButton.isChecked){editor.putInt("c10_2",1); editor.commit()}
if(baewoojaboomoButton.isChecked){editor.putInt("c10_3",1); editor.commit()}
if(baewoojajoboomoButton.isChecked){editor.putInt("c10_4",1); editor.commit()}
if(brotherButton.isChecked){editor.putInt("c10_5",1); editor.commit()
editor.putString("with_brothersister","yes")}
if(baewoojabrotherButton.isChecked){editor.putInt("c10_6",1); editor.commit()}
if(donggeoButton.isChecked){editor.putInt("c10_7",1); editor.commit()}
if(fatherButton.isChecked){editor.putInt("c10_8",1); editor.commit()}
if(motherButton.isChecked){editor.putInt("c10_9",1); editor.commit()}
if(grandsonbaewoojaButton.isChecked){editor.putInt("c10_10",1); editor.commit()}
if(grandfatherButton.isChecked){editor.putInt("c10_11",1); editor.commit()}
if(grandmotherButton.isChecked){editor.putInt("c10_12",1); editor.commit()}
if(grandsonButton.isChecked){editor.putInt("c10_13",1); editor.commit()}
if(janyeoButton.isChecked){editor.putInt("c10_14",1); editor.commit()
editor.putString("with_child","yes")}
if(janyeobaewoojaButton.isChecked){editor.putInt("c10_15",1); editor.commit()}
if(nothingButton.isChecked){editor.putInt("c10_18",1); editor.commit()}
if(janyeoButton.isChecked
//prof.getString("with_child","none")=="yes"
){
var intent = Intent(this, InputProfilSecondTwoActivity::class.java)
startActivity(intent)
}else{
var intent = Intent(this, InputProfilThirdOneActivity::class.java)
startActivity(intent)
}
}
}
}
......
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.widget.EditText
import kotlinx.android.synthetic.main.activity_input_profil_second_three.*
import kotlinx.android.synthetic.main.activity_input_profil_second_three.nextButton
import kotlinx.android.synthetic.main.activity_input_profil_second_three.previousButton
import kotlinx.android.synthetic.main.activity_input_profil_second_three.skipButton
import kotlinx.android.synthetic.main.activity_input_profil_second_three.toolbar
class InputProfilSecondThreeActivity : AppCompatActivity() {
......@@ -11,6 +18,10 @@ class InputProfilSecondThreeActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_input_profil_second_three)
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
setSupportActionBar(toolbar)
skipButton.setOnClickListener {
......@@ -24,8 +35,40 @@ class InputProfilSecondThreeActivity : AppCompatActivity() {
}
nextButton.setOnClickListener {
var numOfBS=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt()
if(numOfBS>=2){
editor.putInt("c10_16",1); editor.commit()
}
if(numOfBS<2){
editor.putInt("c10_17",1); editor.commit()
}
var intent = Intent(this, InputProfilThirdOneActivity::class.java)
startActivity(intent)
}
val bsList = ArrayList<BSItem>()
bsNumberInputButton.setOnClickListener {
if(findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt()>0){
var bsNum=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt()
var cnt=1
while(bsNum>=cnt){
bsList.add(
BSItem(cnt)
)
cnt++
}
//Toast.makeText(this, cnt.toString(), Toast.LENGTH_SHORT).show()
}
else{
var bsNum=0
}
val adapter = BSAdapter(bsList)
bsRecyclerView.adapter = adapter
}
}
}
......
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.GONE
import android.view.View.VISIBLE
import android.widget.EditText
import android.widget.Toast
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_input_profil_second_two.*
import kotlinx.android.synthetic.main.item_child.view.*
class InputProfilSecondTwoActivity : AppCompatActivity() {
......@@ -13,34 +19,73 @@ class InputProfilSecondTwoActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_input_profil_second_two)
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
setSupportActionBar(toolbar)
skipButton.setOnClickListener {
var intent = Intent(this, InputProfilSecondOneActivity::class.java)
startActivity(intent)
}
previousButton.setOnClickListener {
var intent = Intent(this, InputProfilSecondOneActivity::class.java)
startActivity(intent)
}
nextButton.setOnClickListener {
var numOfChild=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()
if(numOfChild>=3){
editor.putInt("c10_16",1); editor.commit()
}
if(numOfChild<3){
editor.putInt("c10_17",1); editor.commit()
}
/*
editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo birth", childRecyclerView.childBirthEditText.text.toString()); editor.commit()
if(childRecyclerView.womanButton.isChecked){
editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo gender","woman"); editor.commit()
}else{
editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo gender","man"); editor.commit()
}
*/
if(prof.getString("with_brothersister","none")=="yes"){
var intent = Intent(this, InputProfilSecondThreeActivity::class.java)
startActivity(intent)
}else{
var intent = Intent(this, InputProfilThirdOneActivity::class.java)
startActivity(intent)
}
}
//val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
//mainTv.text = dialogText.text.toString()
val childList = ArrayList<ChildItem>()
childNumberInputButton.setOnClickListener {
var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString()
if(childNum=="3"){
child1LinearLayout.visibility=VISIBLE
child2LinearLayout.visibility=VISIBLE
child3LinearLayout.visibility=VISIBLE
if(findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()>0){
var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()
var cnt=1
while(childNum>=cnt){
childList.add(
ChildItem(cnt)
)
cnt++
}
//Toast.makeText(this, cnt.toString(), Toast.LENGTH_SHORT).show()
}
else{
var childNum=0
}
val adapter = ChildAdapter(childList)
childRecyclerView.adapter = adapter
}
}
}
......
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.GONE
import android.view.View.VISIBLE
import kotlinx.android.synthetic.main.activity_input_profil_third_four.*
class InputProfilThirdFourActivity : AppCompatActivity() {
......@@ -17,9 +21,51 @@ class InputProfilThirdFourActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(yesButton.isChecked){
editor.putInt("c8_2",1); editor.commit()
}
if(jichaeButton.isChecked){editor.putInt("c9_2",1); editor.commit()}
if(noebyungbyunButton.isChecked){editor.putInt("c9_3",1); editor.commit()}
if(sigaakButton.isChecked){editor.putInt("c9_4",1); editor.commit()}
if(chungkaakButton.isChecked){editor.putInt("c9_5",1); editor.commit()}
if(unuhButton.isChecked){editor.putInt("c9_6",1); editor.commit()}
if(ahnmyunButton.isChecked){editor.putInt("c9_7",1); editor.commit()}
if(sinjaangButton.isChecked){editor.putInt("c9_8",1); editor.commit()}
if(simjaangButton.isChecked){editor.putInt("c9_9",1); editor.commit()}
if(gaanjaangButton.isChecked){editor.putInt("c9_10",1); editor.commit()}
if(jaangrooButton.isChecked){editor.putInt("c9_11",1); editor.commit()}
if(noejungjeungButton.isChecked){editor.putInt("c9_12",1); editor.commit()}
if(hoheupkiButton.isChecked){editor.putInt("c9_13",1); editor.commit()}
if(jijukButton.isChecked){editor.putInt("c9_14",1); editor.commit()}
if(japyeahButton.isChecked){editor.putInt("c9_15",1); editor.commit()}
if(jeongshinButton.isChecked){editor.putInt("c9_16",1); editor.commit()}
if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}//DB,pref 뻑 주의
if(imshinButton.isChecked){editor.putInt("c7_2",1); editor.commit()}
if(nanchiButton.isChecked){editor.putInt("c9_17",1); editor.commit()}
if(oeButton.isChecked){editor.putInt("c9_18",1); editor.commit()}
if(yoyaangButton.isChecked){editor.putInt("c9_19",1); editor.commit()}
if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()}
var intent = Intent(this, InputProfilFourthOneActivity::class.java)
startActivity(intent)
}
yesButton.setOnClickListener {
eightoneLayout.visibility=VISIBLE
eighttwoLayout.visibility= GONE
}
noButton.setOnClickListener {
eightoneLayout.visibility= GONE
eighttwoLayout.visibility= VISIBLE
}
}
}
......
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.widget.Button
import android.widget.TextView
import kotlinx.android.synthetic.main.activity_input_profil_third_one.*
......@@ -20,12 +23,89 @@ class InputProfilThirdOneActivity : AppCompatActivity() {
startActivity(intent)
}
elementaryButton.setOnClickListener {
middleButton.isChecked=false
highButton.isChecked=false
specialButton.isChecked=false
universityButton.isChecked=false
graduateButton.isChecked=false
nothingButton.isChecked=false
}
middleButton.setOnClickListener {
elementaryButton.isChecked=false
highButton.isChecked=false
specialButton.isChecked=false
universityButton.isChecked=false
graduateButton.isChecked=false
nothingButton.isChecked=false
}
highButton.setOnClickListener {
elementaryButton.isChecked=false
middleButton.isChecked=false
specialButton.isChecked=false
universityButton.isChecked=false
graduateButton.isChecked=false
nothingButton.isChecked=false
}
specialButton.setOnClickListener {
elementaryButton.isChecked=false
middleButton.isChecked=false
highButton.isChecked=false
universityButton.isChecked=false
graduateButton.isChecked=false
nothingButton.isChecked=false
}
universityButton.setOnClickListener {
elementaryButton.isChecked=false
middleButton.isChecked=false
highButton.isChecked=false
specialButton.isChecked=false
graduateButton.isChecked=false
nothingButton.isChecked=false
}
graduateButton.setOnClickListener {
elementaryButton.isChecked=false
middleButton.isChecked=false
highButton.isChecked=false
specialButton.isChecked=false
universityButton.isChecked=false
nothingButton.isChecked=false
}
nothingButton.setOnClickListener {
elementaryButton.isChecked=false
middleButton.isChecked=false
highButton.isChecked=false
specialButton.isChecked=false
universityButton.isChecked=false
graduateButton.isChecked=false
}
previousButton.setOnClickListener {
var intent = Intent(this, InputProfilSecondThreeActivity::class.java)
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(elementaryButton.isChecked){
editor.putInt("c6_2",1); editor.commit()
}else if(middleButton.isChecked){
editor.putInt("c6_3",1); editor.commit()
}else if(highButton.isChecked){
editor.putInt("c6_4",1); editor.commit()
}else if(universityButton.isChecked){
editor.putInt("c6_5",1); editor.commit()
}else if(graduateButton.isChecked){
editor.putInt("c6_6",1); editor.commit()
}else if(nothingButton.isChecked){
editor.putInt("c6_7",1); editor.commit()
}else{
}
var intent = Intent(this, InputProfilThirdTwoActivity::class.java)
startActivity(intent)
}
......
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 kotlinx.android.synthetic.main.activity_input_profil_third_three.*
......@@ -24,9 +26,135 @@ class InputProfilThirdThreeActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(nothingButton.isChecked){ editor.putInt("c4_11",1); editor.commit()}
if(mipilButton.isChecked){ editor.putInt("c4_2",1); editor.commit()}
if(myunjaeButton.isChecked){ editor.putInt("c4_3",1); editor.commit()}
if(jobsoldierButton.isChecked){ editor.putInt("c4_4",1); editor.commit()}
if(bokmoojoongButton.isChecked){ editor.putInt("c4_5",1); editor.commit()}
if(mangijedaeButton.isChecked){ editor.putInt("c4_6",1); editor.commit()}
if(specialmanryoButton.isChecked){ editor.putInt("c4_7",1); editor.commit()}
if(specialbokmoosanupButton.isChecked){ editor.putInt("c4_8",1); editor.commit()}
if(specialbokmoojeonmoonButton.isChecked){ editor.putInt("c4_9",1); editor.commit()}
if(jedaeguitarButton.isChecked){ editor.putInt("c4_10",1); editor.commit()}
var intent = Intent(this, InputProfilThirdFourActivity::class.java)
startActivity(intent)
}
nothingButton.setOnClickListener {
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
mipilButton.setOnClickListener {
nothingButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
myunjaeButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
jobsoldierButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
bokmoojoongButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
mangijedaeButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
specialmanryoButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
specialbokmoosanupButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
jedaeguitarButton.isChecked=false
}
specialbokmoojeonmoonButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
jedaeguitarButton.isChecked=false
}
jedaeguitarButton.setOnClickListener {
nothingButton.isChecked=false
mipilButton.isChecked=false
myunjaeButton.isChecked=false
jobsoldierButton.isChecked=false
bokmoojoongButton.isChecked=false
mangijedaeButton.isChecked=false
specialmanryoButton.isChecked=false
specialbokmoosanupButton.isChecked=false
specialbokmoojeonmoonButton.isChecked=false
}
}
}
......
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.GONE
import android.view.View.VISIBLE
import kotlinx.android.synthetic.main.activity_input_profil_third_two.*
class InputProfilThirdTwoActivity : AppCompatActivity() {
......@@ -24,9 +28,48 @@ class InputProfilThirdTwoActivity : AppCompatActivity() {
startActivity(intent)
}
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
nextButton.setOnClickListener {
if(companyButton.isChecked){ editor.putInt("c5_6",1); editor.commit()}
if(workerButton.isChecked){ editor.putInt("c5_7",1); editor.commit()}
if(entireButton.isChecked){ editor.putInt("c5_9",1); editor.commit()}
if(startupButton.isChecked){ editor.putInt("c5_5",1); editor.commit()}
if(seekButton.isChecked){ editor.putInt("c5_5",1); editor.commit()}
//창업예정자랑 취준생이랑 같은 카테고리 맞음????
var intent = Intent(this, InputProfilThirdThreeActivity::class.java)
startActivity(intent)
}
jobButton.setOnClickListener {
nojobButton.isChecked=false
sixoneLayout.visibility=VISIBLE
sixtwoLayout.visibility= GONE
}
nojobButton.setOnClickListener {
jobButton.isChecked=false
sixoneLayout.visibility=GONE
sixtwoLayout.visibility= VISIBLE
}
companyButton.setOnClickListener {
workerButton.isChecked=false
}
workerButton.setOnClickListener {
companyButton.isChecked=false
}
entireButton.setOnClickListener {
startupButton.isChecked=false
seekButton.isChecked=false
}
startupButton.setOnClickListener {
entireButton.isChecked=false
seekButton.isChecked=false
}
seekButton.setOnClickListener {
entireButton.isChecked=false
startupButton.isChecked=false
}
}
}
......
......@@ -26,6 +26,9 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
//onboarding start
//onboarding end
......
package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_notice.*
class NoticeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_notice)
}
}
package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_push_alarm.*
class PushInfoActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_push_alarm)
}
}
package com.example.vip
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.view.isGone
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.qna_rv_item.view.*
class QnAAdapter : RecyclerView.Adapter<QnAAdapter.MainViewHolder>() {
var items: MutableList<QnAItem> = mutableListOf(
QnAItem("1. 버그가 있어요.", "\n사용 중에 버그를 발견하셨다면\n" +
"‘wello.khu@gmail.com’을 통해 건의해주세요.\n" +
"보다 나은 서비스를 제공하기 위해 늘 노력하는 wello팀이 되도록 노력하겠습니다.\n", "asdf"),
QnAItem("2. 회원탈퇴는 어떻게 하나요?", "\n아래 메뉴를 통해 회원탈퇴가 가능합니다.\n" +
"\n" +
"홈 화면 오른쪽 하단의 \n" +
"내 정보> 설정 > 계정설정 > 회원탈퇴 \n" +
"\n" +
"wello 서비스에 불편한 점을 느끼셨다면\n" +
"회원탈퇴 경로 및 wello.khu@gmail.com를 통해 건의해주세요.\n" +
"보다 나은 서비스를 제공하기 위해 늘 노력하는 wello팀이 되도록 노력하겠습니다.\n", "asdff"),
QnAItem("3. 'Wello'가 무슨 뜻인가요?", "\n‘Wello’는 ‘복지(Welfare) + 안녕(Hello)’의 합성어로, \n" +
"\n" +
"1) 당신만을 위한 복지정보를 만날 수 있는 어플리케이션\n" +
"2) 전국민의 복지의 안녕을 챙기는 어플리케이션\n" +
"\n" +
"이 되겠다는 Wello의 다짐을 담고 있습니다.\n", "asdff"),
QnAItem("4. 'Wello'는 어떤 어플인가요?", "\nWello는 복지정책알림 통합 어플리케이션으로, 사용자에게 적합한 복지정책을 알려주는 서비스를 제공합니다. \n 주요 기능으로는 1) 프로필 정보 입력 2) 추천정책리스트 3) 정책 찜하기 4) 푸시알림 등이 있습니다.\n", "asdff"),
QnAItem("5. 프로필정보를 왜 수집하나요?", "\n수집한 사용자의 프로필정보는 보다 정확한 복지정책을 추천하기 위해 사용됩니다.\n", "asdff"),
QnAItem("6. 추천정책리스트는 어떤 서비스인가요?", "\n추천정책리스트를 통해 자신이 수혜 받을 수 있는 정책 정보를 한 눈에 확인할 수 있습니다.\n", "asdff"),
QnAItem("7. 푸시 알림설정/해제는 어떻게 하나요?", "\n아래 메뉴를 통해 푸시 알림설정/해제를 할 수 있습니다.\n" +
"\n" +
"홈 화면 오른쪽 하단의 \n" +
"내 정보> 설정> 푸시 알림> 찜한 목록 소식받기에서 설정/해제 가능합니다.\n", "asdff"),
QnAItem("8. 푸시 알림은 어떤 내용인가요?", "\n‘사용자의 찜한 목록에 있는 정책의 마감일’과 ‘새로 업데이트된 정책’에 대한 내용이 알림으로 가게 됩니다.\n", "asdff"),
QnAItem("9. 푸시 알림은 언제 받을 수 있나요?", "\n푸시 알림은 3일에 한 번씩, 9:00~18:00 사이에 보내드립니다.\n", "asdff"),
QnAItem("10. 정책 찜하기는 어떤 기능인가요?", "\n마감일을 확인하고 싶은 정책, 좀 더 관심이 가는 정책 등 사용자가 한 번 더 확인하고 싶은 정책을 체크해두는 기능입니다.\n", "asdff"),
QnAItem("11. 민간 복지서비스 등록은 어떻게 하나요?", "\n현재 서비스 준비 중에 있습니다.\n", "adffff"))
override fun onCreateViewHolder(parent: ViewGroup, p1: Int) = MainViewHolder(parent)
override fun getItemCount(): Int = items.size
override fun onBindViewHolder(holer: MainViewHolder, position: Int) {
items[position].let { item ->
with(holer) {
tvTitle.text = item.answer
tvContent.text = item.question
tvSecond.setOnClickListener{
tvTitle.setVisibility(View.GONE)
}
/* if (item.arrow != "") {
val resourceId = context.resources.getIdentifier(dog.photo, "drawable", context.packageName)
tvSecond?.setImageResource(resourceId)
} else {
tvSecond?.setImageResource(R.mipmap.ic_launcher)
}*/
}
}
}
inner class MainViewHolder(parent: ViewGroup) : RecyclerView.ViewHolder(
LayoutInflater.from(parent.context).inflate(R.layout.qna_rv_item, parent, false)) {
val tvTitle = itemView.answerText
val tvContent = itemView.questionText
val tvSecond = itemView.bottomArrow
}
}
\ No newline at end of file
package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.android.synthetic.main.activity_questions.*
var QnAList = arrayListOf<QnAItem>()
class QuestionsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_questions)
qna_rv.adapter = QnAAdapter()
qna_rv.layoutManager = LinearLayoutManager(this)
}
}
......@@ -98,7 +98,6 @@ class RecommendActivity : AppCompatActivity() {
)
)
}
val adapter = PolicyAdapter(policyList)
policyRecyclerView.adapter = adapter
}
......
package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_settings_in_form.*
class SettingsInForm : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_settings_in_form)
info_push.setOnClickListener {
var intent = Intent(this, PushInfoActivity::class.java)
startActivity(intent)
// 설정 눌렀을 때
}
terms_of_use.setOnClickListener{
var intent = Intent(this, TermsOfUserActivity::class.java)
startActivity(intent)
}
}
}
package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_terms_of_use.*
class TermsOfUserActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_terms_of_use)
terms_use.setOnClickListener{
var intent = Intent(this, TermsDetailActivity::class.java)
startActivity(intent)
}
terms_use2.setOnClickListener {
var intent = Intent(this, PrivacyPolicyActivity::class.java)
startActivity(intent)
}
}
}
......@@ -14,6 +14,8 @@ class WelcomeViewPagerAdapter(private val context : Context) : PagerAdapter() {
val Image = arrayOf(
R.drawable.hwajilgooji1,
R.drawable.hwajilgooji2,
R.drawable.hwajilgooji3,
R.drawable.hwajilgooji3,
R.drawable.hwajilgooji3
)
......
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 배경 -->
<item
android:drawable="@color/colorPrimary"/>
<!-- 로고 -->
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash_main"/>
</item>
</layer-list>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 배경 -->
<item
android:drawable="@color/colorPrimary"/>
<!-- 로고 -->
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash_main"/>
</item>
</layer-list>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 배경 -->
<item
android:drawable="@color/colorPrimary"/>
<!-- 로고 -->
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash_main"/>
</item>
</layer-list>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
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.
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.
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.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.