신기성

prototype complete. previous button pressed

Showing 28 changed files with 498 additions and 20 deletions
......@@ -53,6 +53,8 @@ class InputProfilFifthFourActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("fifth_four_editText1","")!=""){editText1.setText(prof.getString("fifth_four_editText1",""))}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -53,6 +53,9 @@ class InputProfilFifthOneActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("fifth_one_editText1","")!=""){editText1.setText(prof.getString("fifth_one_editText1",""))}
if(prof.getString("fifth_one_editText2","")!=""){editText2.setText(prof.getString("fifth_one_editText2",""))}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -52,6 +52,10 @@ class InputProfilFifthThreeActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("fifth_three_editText1","")!=""){editText1.setText(prof.getString("fifth_three_editText1",""))}
if(prof.getString("fifth_three_editText2","")!=""){editText2.setText(prof.getString("fifth_three_editText2",""))}
if(prof.getString("fifth_three_editText3","")!=""){editText3.setText(prof.getString("fifth_three_editText3",""))}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -54,6 +54,14 @@ class InputProfilFifthTwoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("fifth_two_jikjaangButton","none")=="isChecked"){ subLinearLayout.visibility=VISIBLE;jikjaangButton.isChecked=true;}
if(prof.getString("fifth_two_jiyeokButton","none")=="isChecked"){ subLinearLayout.visibility=VISIBLE;jiyeokButton.isChecked=true;}
if(prof.getString("fifth_two_pibooyaangjikjaangButton","none")=="isChecked"){ pibooyaangjikjaangButton.isChecked=true}
if(prof.getString("fifth_two_pibooyaangjiyeokButton","none")=="isChecked"){ pibooyaangjiyeokButton.isChecked=true}
if(prof.getString("fifth_two_uieryoButton","none")=="isChecked"){ uieryoButton.isChecked=true}
if(prof.getString("fifth_two_editText1","")!=""){editText1.setText(prof.getString("fifth_two_editText1",""))}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -7,6 +7,7 @@ import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
......@@ -60,6 +61,12 @@ class InputProfilFirstFiveActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c1_2",0)==1){
inmanButton.isChecked=true}
if(prof.getInt("c1_3",0)==1){outmanButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -139,6 +139,24 @@ class InputProfilFirstFourActivity : AppCompatActivity() {
doSpinner.setSelection(1)
if(prof.getInt("c11_2",0)==1){doSpinner.setSelection(1)}
if(prof.getInt("c11_3",0)==1){doSpinner.setSelection(2)}
if(prof.getInt("c11_4",0)==1){doSpinner.setSelection(3)}
if(prof.getInt("c11_5",0)==1){doSpinner.setSelection(4)}
if(prof.getInt("c11_6",0)==1){doSpinner.setSelection(5)}
if(prof.getInt("c11_7",0)==1){doSpinner.setSelection(6)}
if(prof.getInt("c11_8",0)==1){doSpinner.setSelection(7)}
if(prof.getInt("c11_9",0)==1){doSpinner.setSelection(8)}
if(prof.getInt("c11_10",0)==1){doSpinner.setSelection(9)}
if(prof.getInt("c11_11",0)==1){doSpinner.setSelection(10)}
if(prof.getInt("c11_12",0)==1){doSpinner.setSelection(11)}
if(prof.getInt("c11_13",0)==1){doSpinner.setSelection(12)}
if(prof.getInt("c11_14",0)==1){doSpinner.setSelection(13)}
if(prof.getInt("c11_15",0)==1){doSpinner.setSelection(14)}
if(prof.getInt("c11_16",0)==1){doSpinner.setSelection(15)}
if(prof.getInt("c11_17",0)==1){doSpinner.setSelection(16)}
if(prof.getInt("c11_18",0)==1){doSpinner.setSelection(17)}
doSpinner.onItemSelectedListener = object: AdapterView.OnItemSelectedListener {
override fun onNothingSelected(parent: AdapterView<*>?) {
}
......@@ -216,8 +234,259 @@ class InputProfilFirstFourActivity : AppCompatActivity() {
gooSpinner.adapter = gooadapter
}
}
}
}
if(prof.getInt("c12_100",0)==1){gooSpinner.setSelection(1)}
if(prof.getInt("c12_101",0)==1){gooSpinner.setSelection(2)}
if(prof.getInt("c12_102",0)==1){gooSpinner.setSelection(3)}
if(prof.getInt("c12_103",0)==1){gooSpinner.setSelection(4)}
if(prof.getInt("c12_104",0)==1){gooSpinner.setSelection(5)}
if(prof.getInt("c12_105",0)==1){gooSpinner.setSelection(6)}
if(prof.getInt("c12_106",0)==1){gooSpinner.setSelection(7)}
if(prof.getInt("c12_107",0)==1){gooSpinner.setSelection(8)}
if(prof.getInt("c12_108",0)==1){gooSpinner.setSelection(9)}
if(prof.getInt("c12_109",0)==1){gooSpinner.setSelection(10)}
if(prof.getInt("c12_110",0)==1){gooSpinner.setSelection(11)}
if(prof.getInt("c12_111",0)==1){gooSpinner.setSelection(12)}
if(prof.getInt("c12_112",0)==1){gooSpinner.setSelection(13)}
if(prof.getInt("c12_113",0)==1){gooSpinner.setSelection(14)}
if(prof.getInt("c12_114",0)==1){gooSpinner.setSelection(15)}
if(prof.getInt("c12_115",0)==1){gooSpinner.setSelection(16)}
if(prof.getInt("c12_116",0)==1){gooSpinner.setSelection(17)}
if(prof.getInt("c12_117",0)==1){gooSpinner.setSelection(18)}
if(prof.getInt("c12_118",0)==1){gooSpinner.setSelection(19)}
if(prof.getInt("c12_119",0)==1){gooSpinner.setSelection(20)}
if(prof.getInt("c12_120",0)==1){gooSpinner.setSelection(21)}
if(prof.getInt("c12_121",0)==1){gooSpinner.setSelection(22)}
if(prof.getInt("c12_122",0)==1){gooSpinner.setSelection(23)}
if(prof.getInt("c12_123",0)==1){gooSpinner.setSelection(24)}
if(prof.getInt("c12_124",0)==1){gooSpinner.setSelection(25)}
if(prof.getInt("c12_125",0)==1){gooSpinner.setSelection(26)}
if(prof.getInt("c12_126",0)==1){gooSpinner.setSelection(27)}
if(prof.getInt("c12_127",0)==1){gooSpinner.setSelection(28)}
if(prof.getInt("c12_128",0)==1){gooSpinner.setSelection(29)}
if(prof.getInt("c12_129",0)==1){gooSpinner.setSelection(30)}
if(prof.getInt("c12_130",0)==1){gooSpinner.setSelection(31)}
if(prof.getInt("c12_131",0)==1){gooSpinner.setSelection(32)}
if(prof.getInt("c12_132",0)==1){gooSpinner.setSelection(33)}
if(prof.getInt("c12_133",0)==1){gooSpinner.setSelection(34)}
if(prof.getInt("c12_134",0)==1){gooSpinner.setSelection(35)}
if(prof.getInt("c12_135",0)==1){gooSpinner.setSelection(36)}
if(prof.getInt("c12_136",0)==1){gooSpinner.setSelection(37)}
if(prof.getInt("c12_137",0)==1){gooSpinner.setSelection(38)}
if(prof.getInt("c12_138",0)==1){gooSpinner.setSelection(39)}
if(prof.getInt("c12_139",0)==1){gooSpinner.setSelection(40)}
if(prof.getInt("c12_140",0)==1){gooSpinner.setSelection(41)}
if(prof.getInt("c12_141",0)==1){gooSpinner.setSelection(42)}
if(prof.getInt("c12_142",0)==1){gooSpinner.setSelection(43)}
if(prof.getInt("c12_143",0)==1){gooSpinner.setSelection(44)}
if(prof.getInt("c12_144",0)==1){gooSpinner.setSelection(45)}
if(prof.getInt("c12_145",0)==1){gooSpinner.setSelection(46)}
if(prof.getInt("c12_146",0)==1){gooSpinner.setSelection(47)}
if(prof.getInt("c12_147",0)==1){gooSpinner.setSelection(48)}
if(prof.getInt("c12_148",0)==1){gooSpinner.setSelection(49)}
if(prof.getInt("c12_149",0)==1){gooSpinner.setSelection(50)}
if(prof.getInt("c12_150",0)==1){gooSpinner.setSelection(51)}
if(prof.getInt("c12_151",0)==1){gooSpinner.setSelection(52)}
if(prof.getInt("c12_152",0)==1){gooSpinner.setSelection(53)}
if(prof.getInt("c12_153",0)==1){gooSpinner.setSelection(54)}
if(prof.getInt("c12_154",0)==1){gooSpinner.setSelection(55)}
if(prof.getInt("c12_155",0)==1){gooSpinner.setSelection(56)}
if(prof.getInt("c12_156",0)==1){gooSpinner.setSelection(57)}
if(prof.getInt("c12_157",0)==1){gooSpinner.setSelection(58)}
if(prof.getInt("c12_158",0)==1){gooSpinner.setSelection(59)}
if(prof.getInt("c12_159",0)==1){gooSpinner.setSelection(60)}
if(prof.getInt("c12_160",0)==1){gooSpinner.setSelection(61)}
if(prof.getInt("c12_161",0)==1){gooSpinner.setSelection(62)}
if(prof.getInt("c12_162",0)==1){gooSpinner.setSelection(63)}
if(prof.getInt("c12_163",0)==1){gooSpinner.setSelection(64)}
if(prof.getInt("c12_164",0)==1){gooSpinner.setSelection(65)}
if(prof.getInt("c12_165",0)==1){gooSpinner.setSelection(66)}
if(prof.getInt("c12_166",0)==1){gooSpinner.setSelection(67)}
if(prof.getInt("c12_167",0)==1){gooSpinner.setSelection(68)}
if(prof.getInt("c12_168",0)==1){gooSpinner.setSelection(69)}
if(prof.getInt("c12_169",0)==1){gooSpinner.setSelection(70)}
if(prof.getInt("c12_170",0)==1){gooSpinner.setSelection(71)}
if(prof.getInt("c12_171",0)==1){gooSpinner.setSelection(72)}
if(prof.getInt("c12_172",0)==1){gooSpinner.setSelection(73)}
if(prof.getInt("c12_173",0)==1){gooSpinner.setSelection(74)}
if(prof.getInt("c12_174",0)==1){gooSpinner.setSelection(75)}
if(prof.getInt("c12_175",0)==1){gooSpinner.setSelection(76)}
if(prof.getInt("c12_176",0)==1){gooSpinner.setSelection(77)}
if(prof.getInt("c12_177",0)==1){gooSpinner.setSelection(78)}
if(prof.getInt("c12_178",0)==1){gooSpinner.setSelection(79)}
if(prof.getInt("c12_179",0)==1){gooSpinner.setSelection(80)}
if(prof.getInt("c12_180",0)==1){gooSpinner.setSelection(81)}
if(prof.getInt("c12_181",0)==1){gooSpinner.setSelection(82)}
if(prof.getInt("c12_182",0)==1){gooSpinner.setSelection(83)}
if(prof.getInt("c12_183",0)==1){gooSpinner.setSelection(84)}
if(prof.getInt("c12_184",0)==1){gooSpinner.setSelection(85)}
if(prof.getInt("c12_185",0)==1){gooSpinner.setSelection(86)}
if(prof.getInt("c12_186",0)==1){gooSpinner.setSelection(87)}
if(prof.getInt("c12_187",0)==1){gooSpinner.setSelection(88)}
if(prof.getInt("c12_188",0)==1){gooSpinner.setSelection(89)}
if(prof.getInt("c12_189",0)==1){gooSpinner.setSelection(90)}
if(prof.getInt("c12_190",0)==1){gooSpinner.setSelection(91)}
if(prof.getInt("c12_191",0)==1){gooSpinner.setSelection(92)}
if(prof.getInt("c12_192",0)==1){gooSpinner.setSelection(93)}
if(prof.getInt("c12_193",0)==1){gooSpinner.setSelection(94)}
if(prof.getInt("c12_194",0)==1){gooSpinner.setSelection(95)}
if(prof.getInt("c12_195",0)==1){gooSpinner.setSelection(96)}
if(prof.getInt("c12_196",0)==1){gooSpinner.setSelection(97)}
if(prof.getInt("c12_197",0)==1){gooSpinner.setSelection(98)}
if(prof.getInt("c12_198",0)==1){gooSpinner.setSelection(99)}
if(prof.getInt("c12_199",0)==1){gooSpinner.setSelection(100)}
if(prof.getInt("c12_200",0)==1){gooSpinner.setSelection(101)}
if(prof.getInt("c12_201",0)==1){gooSpinner.setSelection(102)}
if(prof.getInt("c12_202",0)==1){gooSpinner.setSelection(103)}
if(prof.getInt("c12_203",0)==1){gooSpinner.setSelection(104)}
if(prof.getInt("c12_204",0)==1){gooSpinner.setSelection(105)}
if(prof.getInt("c12_205",0)==1){gooSpinner.setSelection(106)}
if(prof.getInt("c12_206",0)==1){gooSpinner.setSelection(107)}
if(prof.getInt("c12_207",0)==1){gooSpinner.setSelection(108)}
if(prof.getInt("c12_208",0)==1){gooSpinner.setSelection(109)}
if(prof.getInt("c12_209",0)==1){gooSpinner.setSelection(110)}
if(prof.getInt("c12_210",0)==1){gooSpinner.setSelection(111)}
if(prof.getInt("c12_211",0)==1){gooSpinner.setSelection(112)}
if(prof.getInt("c12_212",0)==1){gooSpinner.setSelection(113)}
if(prof.getInt("c12_213",0)==1){gooSpinner.setSelection(114)}
if(prof.getInt("c12_214",0)==1){gooSpinner.setSelection(115)}
if(prof.getInt("c12_215",0)==1){gooSpinner.setSelection(116)}
if(prof.getInt("c12_216",0)==1){gooSpinner.setSelection(117)}
if(prof.getInt("c12_217",0)==1){gooSpinner.setSelection(118)}
if(prof.getInt("c12_218",0)==1){gooSpinner.setSelection(119)}
if(prof.getInt("c12_219",0)==1){gooSpinner.setSelection(120)}
if(prof.getInt("c12_220",0)==1){gooSpinner.setSelection(121)}
if(prof.getInt("c12_221",0)==1){gooSpinner.setSelection(122)}
if(prof.getInt("c12_222",0)==1){gooSpinner.setSelection(123)}
if(prof.getInt("c12_223",0)==1){gooSpinner.setSelection(124)}
if(prof.getInt("c12_224",0)==1){gooSpinner.setSelection(125)}
if(prof.getInt("c12_225",0)==1){gooSpinner.setSelection(126)}
if(prof.getInt("c12_226",0)==1){gooSpinner.setSelection(127)}
if(prof.getInt("c12_227",0)==1){gooSpinner.setSelection(128)}
if(prof.getInt("c12_228",0)==1){gooSpinner.setSelection(129)}
if(prof.getInt("c12_229",0)==1){gooSpinner.setSelection(130)}
if(prof.getInt("c12_230",0)==1){gooSpinner.setSelection(131)}
if(prof.getInt("c12_231",0)==1){gooSpinner.setSelection(132)}
if(prof.getInt("c12_232",0)==1){gooSpinner.setSelection(133)}
if(prof.getInt("c12_233",0)==1){gooSpinner.setSelection(134)}
if(prof.getInt("c12_234",0)==1){gooSpinner.setSelection(135)}
if(prof.getInt("c12_235",0)==1){gooSpinner.setSelection(136)}
if(prof.getInt("c12_236",0)==1){gooSpinner.setSelection(137)}
if(prof.getInt("c12_237",0)==1){gooSpinner.setSelection(138)}
if(prof.getInt("c12_238",0)==1){gooSpinner.setSelection(139)}
if(prof.getInt("c12_239",0)==1){gooSpinner.setSelection(140)}
if(prof.getInt("c12_240",0)==1){gooSpinner.setSelection(141)}
if(prof.getInt("c12_241",0)==1){gooSpinner.setSelection(142)}
if(prof.getInt("c12_242",0)==1){gooSpinner.setSelection(143)}
if(prof.getInt("c12_243",0)==1){gooSpinner.setSelection(144)}
if(prof.getInt("c12_244",0)==1){gooSpinner.setSelection(145)}
if(prof.getInt("c12_245",0)==1){gooSpinner.setSelection(146)}
if(prof.getInt("c12_246",0)==1){gooSpinner.setSelection(147)}
if(prof.getInt("c12_247",0)==1){gooSpinner.setSelection(148)}
if(prof.getInt("c12_248",0)==1){gooSpinner.setSelection(149)}
if(prof.getInt("c12_249",0)==1){gooSpinner.setSelection(150)}
if(prof.getInt("c12_250",0)==1){gooSpinner.setSelection(151)}
if(prof.getInt("c12_251",0)==1){gooSpinner.setSelection(152)}
if(prof.getInt("c12_252",0)==1){gooSpinner.setSelection(153)}
if(prof.getInt("c12_253",0)==1){gooSpinner.setSelection(154)}
if(prof.getInt("c12_254",0)==1){gooSpinner.setSelection(155)}
if(prof.getInt("c12_255",0)==1){gooSpinner.setSelection(156)}
if(prof.getInt("c12_256",0)==1){gooSpinner.setSelection(157)}
if(prof.getInt("c12_257",0)==1){gooSpinner.setSelection(158)}
if(prof.getInt("c12_258",0)==1){gooSpinner.setSelection(159)}
if(prof.getInt("c12_259",0)==1){gooSpinner.setSelection(160)}
if(prof.getInt("c12_260",0)==1){gooSpinner.setSelection(161)}
if(prof.getInt("c12_261",0)==1){gooSpinner.setSelection(162)}
if(prof.getInt("c12_262",0)==1){gooSpinner.setSelection(163)}
if(prof.getInt("c12_263",0)==1){gooSpinner.setSelection(164)}
if(prof.getInt("c12_264",0)==1){gooSpinner.setSelection(165)}
if(prof.getInt("c12_265",0)==1){gooSpinner.setSelection(166)}
if(prof.getInt("c12_266",0)==1){gooSpinner.setSelection(167)}
if(prof.getInt("c12_267",0)==1){gooSpinner.setSelection(168)}
if(prof.getInt("c12_268",0)==1){gooSpinner.setSelection(169)}
if(prof.getInt("c12_269",0)==1){gooSpinner.setSelection(170)}
if(prof.getInt("c12_270",0)==1){gooSpinner.setSelection(171)}
if(prof.getInt("c12_271",0)==1){gooSpinner.setSelection(172)}
if(prof.getInt("c12_272",0)==1){gooSpinner.setSelection(173)}
if(prof.getInt("c12_273",0)==1){gooSpinner.setSelection(174)}
if(prof.getInt("c12_274",0)==1){gooSpinner.setSelection(175)}
if(prof.getInt("c12_275",0)==1){gooSpinner.setSelection(176)}
if(prof.getInt("c12_276",0)==1){gooSpinner.setSelection(177)}
if(prof.getInt("c12_277",0)==1){gooSpinner.setSelection(178)}
if(prof.getInt("c12_278",0)==1){gooSpinner.setSelection(179)}
if(prof.getInt("c12_279",0)==1){gooSpinner.setSelection(180)}
if(prof.getInt("c12_280",0)==1){gooSpinner.setSelection(181)}
if(prof.getInt("c12_281",0)==1){gooSpinner.setSelection(182)}
if(prof.getInt("c12_282",0)==1){gooSpinner.setSelection(183)}
if(prof.getInt("c12_283",0)==1){gooSpinner.setSelection(184)}
if(prof.getInt("c12_284",0)==1){gooSpinner.setSelection(185)}
if(prof.getInt("c12_285",0)==1){gooSpinner.setSelection(186)}
if(prof.getInt("c12_286",0)==1){gooSpinner.setSelection(187)}
if(prof.getInt("c12_287",0)==1){gooSpinner.setSelection(188)}
if(prof.getInt("c12_288",0)==1){gooSpinner.setSelection(189)}
if(prof.getInt("c12_289",0)==1){gooSpinner.setSelection(190)}
if(prof.getInt("c12_290",0)==1){gooSpinner.setSelection(191)}
if(prof.getInt("c12_291",0)==1){gooSpinner.setSelection(192)}
if(prof.getInt("c12_292",0)==1){gooSpinner.setSelection(193)}
if(prof.getInt("c12_293",0)==1){gooSpinner.setSelection(194)}
if(prof.getInt("c12_294",0)==1){gooSpinner.setSelection(195)}
if(prof.getInt("c12_295",0)==1){gooSpinner.setSelection(196)}
if(prof.getInt("c12_296",0)==1){gooSpinner.setSelection(197)}
if(prof.getInt("c12_297",0)==1){gooSpinner.setSelection(198)}
if(prof.getInt("c12_298",0)==1){gooSpinner.setSelection(199)}
if(prof.getInt("c12_299",0)==1){gooSpinner.setSelection(200)}
if(prof.getInt("c12_300",0)==1){gooSpinner.setSelection(201)}
if(prof.getInt("c12_301",0)==1){gooSpinner.setSelection(202)}
if(prof.getInt("c12_302",0)==1){gooSpinner.setSelection(203)}
if(prof.getInt("c12_303",0)==1){gooSpinner.setSelection(204)}
if(prof.getInt("c12_304",0)==1){gooSpinner.setSelection(205)}
if(prof.getInt("c12_305",0)==1){gooSpinner.setSelection(206)}
if(prof.getInt("c12_306",0)==1){gooSpinner.setSelection(207)}
if(prof.getInt("c12_307",0)==1){gooSpinner.setSelection(208)}
if(prof.getInt("c12_308",0)==1){gooSpinner.setSelection(209)}
if(prof.getInt("c12_309",0)==1){gooSpinner.setSelection(210)}
if(prof.getInt("c12_310",0)==1){gooSpinner.setSelection(211)}
if(prof.getInt("c12_311",0)==1){gooSpinner.setSelection(212)}
if(prof.getInt("c12_312",0)==1){gooSpinner.setSelection(213)}
if(prof.getInt("c12_313",0)==1){gooSpinner.setSelection(214)}
if(prof.getInt("c12_314",0)==1){gooSpinner.setSelection(215)}
if(prof.getInt("c12_315",0)==1){gooSpinner.setSelection(216)}
if(prof.getInt("c12_316",0)==1){gooSpinner.setSelection(217)}
if(prof.getInt("c12_317",0)==1){gooSpinner.setSelection(218)}
if(prof.getInt("c12_318",0)==1){gooSpinner.setSelection(219)}
if(prof.getInt("c12_319",0)==1){gooSpinner.setSelection(220)}
if(prof.getInt("c12_320",0)==1){gooSpinner.setSelection(221)}
if(prof.getInt("c12_321",0)==1){gooSpinner.setSelection(222)}
if(prof.getInt("c12_322",0)==1){gooSpinner.setSelection(223)}
if(prof.getInt("c12_323",0)==1){gooSpinner.setSelection(224)}
if(prof.getInt("c12_324",0)==1){gooSpinner.setSelection(225)}
if(prof.getInt("c12_325",0)==1){gooSpinner.setSelection(226)}
if(prof.getInt("c12_326",0)==1){gooSpinner.setSelection(227)}
if(prof.getInt("c12_327",0)==1){gooSpinner.setSelection(228)}
if(prof.getInt("c12_328",0)==1){gooSpinner.setSelection(229)}
if(prof.getInt("c12_329",0)==1){gooSpinner.setSelection(230)}
if(prof.getInt("c12_330",0)==1){gooSpinner.setSelection(231)}
if(prof.getInt("c12_331",0)==1){gooSpinner.setSelection(232)}
if(prof.getInt("c12_332",0)==1){gooSpinner.setSelection(233)}
if(prof.getInt("c12_333",0)==1){gooSpinner.setSelection(234)}
if(prof.getInt("c12_334",0)==1){gooSpinner.setSelection(235)}
if(prof.getInt("c12_335",0)==1){gooSpinner.setSelection(236)}
if(prof.getInt("c12_336",0)==1){gooSpinner.setSelection(237)}
if(prof.getInt("c12_337",0)==1){gooSpinner.setSelection(238)}
if(prof.getInt("c12_338",0)==1){gooSpinner.setSelection(239)}
if(prof.getInt("c12_339",0)==1){gooSpinner.setSelection(240)}
if(prof.getInt("c12_340",0)==1){gooSpinner.setSelection(241)}
if(prof.getInt("c12_341",0)==1){gooSpinner.setSelection(242)}
if(prof.getInt("c12_342",0)==1){gooSpinner.setSelection(243)}
if(prof.getInt("c12_343",0)==1){gooSpinner.setSelection(244)}
if(prof.getInt("c12_344",0)==1){gooSpinner.setSelection(245)}
if(prof.getInt("c12_345",0)==1){gooSpinner.setSelection(246)}
if(prof.getInt("c12_346",0)==1){gooSpinner.setSelection(247)}
if(prof.getInt("c12_347",0)==1){gooSpinner.setSelection(248)}
if(prof.getInt("c12_348",0)==1){gooSpinner.setSelection(249)}
if(prof.getInt("c12_349",0)==1){gooSpinner.setSelection(250)}
if(prof.getInt("c12_350",0)==1){gooSpinner.setSelection(251)}
nextButton.setOnClickListener {
editor.remove("first_four")
editor.remove("c11_2")
......
......@@ -52,6 +52,12 @@ class InputProfilFirstSixActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c13_2",0)==1){gagoojooButton.isChecked=true}
if(prof.getInt("c13_3",0)==1){gagoowonButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -54,6 +54,11 @@ class InputProfilFirstThreeActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c3_2",0)==1){manButton.isChecked=true}
if(prof.getInt("c3_3",0)==1){womanButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -6,6 +6,7 @@ import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
......@@ -51,6 +52,16 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c1_2",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
if(prof.getInt("c1_3",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
if(prof.getInt("c1_4",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
if(prof.getInt("c1_5",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
if(prof.getInt("c1_6",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
if(prof.getInt("c1_7",0)==1){findViewById<EditText>(R.id.editText).setText(prof.getString("birthdateinput",""))}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......@@ -138,31 +149,35 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
}
nextButton.setOnClickListener {
editor.remove("c1_2")
editor.remove("c1_3")
editor.remove("c1_4")
editor.remove("c1_5")
editor.remove("c1_6")
editor.remove("c1_7")
editor.remove("c2_2")
editor.remove("c2_3")
editor.remove("c2_4")
editor.remove("c2_5")
editor.remove("c2_6")
editor.remove("c2_7")
editor.remove("first_two")
editor.commit()
editor.remove("birthdateinput")
editor.commit()
var birthdateinput=findViewById<EditText>(R.id.editText).text.toString()
var birthdateint:Int
if (birthdateinput == "") {
}
else {
editor.putString("birthdateinput",birthdateinput)
editor.commit()
birthdateint = birthdateinput.toInt()
if ((2019-birthdateint)<19){
editor.putInt("c1_2",1)
editor.putInt("c2_2",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
Toast.makeText(baseContext, prof.getInt("c1_2",0).toString(), Toast.LENGTH_SHORT).show()
//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)
......@@ -170,34 +185,37 @@ class InputProfilFirstTwoActivity : AppCompatActivity() {
msg = getString(R.string.msg_subscribe_failed)
}
}
*/
}
else if((2019-birthdateint)<34){
editor.putInt("c1_3",1)
editor.putInt("c2_3",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
}
else if((2019-birthdateint)<40){
editor.putInt("c1_4",1)
editor.putInt("c2_4",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
}
else if((2019-birthdateint)<49){
editor.putInt("c1_5",1)
editor.putInt("c2_5",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
}
else if((2019-birthdateint)<59){
editor.putInt("c1_6",1)
editor.putInt("c2_6",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
}
else{
editor.putInt("c1_7",1)
editor.putInt("c2_7",1)
editor.commit()
editor.putString("first_two","done");editor.commit()
......
......@@ -51,6 +51,12 @@ class InputProfilFourthFiveActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c8_1",0)==1){ nothingButton.isChecked=true}
if(prof.getInt("c8_12",0)==1){ iljaeButton.isChecked=true}
if(prof.getInt("c8_13",0)==1){ specialpihaeButton.isChecked=true}
if(prof.getInt("c8_14",0)==1){ sanuppihaeButton.isChecked=true}
if(prof.getInt("c8_17",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -54,6 +54,18 @@ class InputProfilFourthFourActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c8_1",0)==1){ nothingButton.isChecked=true}
if(prof.getInt("c8_9",0)==1){ pokryukButton.isChecked=true}
if(prof.getInt("c8_9",0)==1){ pihaeButton.isChecked=true}
if(prof.getInt("c8_9",0)==1){ kachoolButton.isChecked=true}
if(prof.getInt("c8_9",0)==1){ sagoButton.isChecked=true}
if(prof.getInt("c8_15",0)==1){ ihonButton.isChecked=true}
if(prof.getInt("c8_9",0)==1){ jaehaeButton.isChecked=true}
if(prof.getInt("c8_16",0)==1){ hakkyobaakButton.isChecked=true}
if(prof.getInt("c5_9",0)==1){ siljikButton.isChecked=true}
if(prof.getInt("c8_17",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -55,6 +55,16 @@ class InputProfilFourthOneActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c14_2",0)==1){ yesButton.isChecked=true}
if(prof.getInt("c14_3",0)==1){ subLinearLayout.visibility=VISIBLE;noButton.isChecked=true;}
if(prof.getInt("c16_2",0)==1){ jeonsaeButton.isChecked=true}
if(prof.getInt("c16_3",0)==1){ wolseButton.isChecked=true}
if(prof.getInt("c16_4",0)==1){ kongkongButton.isChecked=true}
if(prof.getInt("c16_5",0)==1){ moosangButton.isChecked=true}
if(prof.getInt("c16_6",0)==1){ bojangButton.isChecked=true}
if(prof.getInt("c16_7",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -54,6 +54,19 @@ class InputProfilFourthThreeActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c8_1",0)==1){ nothingButton.isChecked=true}
if(prof.getInt("c8_3",0)==1){ jeosodeukButton.isChecked=true}
if(prof.getInt("c8_7",0)==1){ hanboomoButton.isChecked=true}
if(prof.getInt("c8_5",0)==1){ oegookinButton.isChecked=true}
if(prof.getInt("c8_4",0)==1){ damoonhwaButton.isChecked=true}
if(prof.getInt("c8_2",0)==1){ jaangaeButton.isChecked=true}
if(prof.getInt("c7_1",0)==1){ imshinchoolsanButton.isChecked=true}
if(prof.getInt("c8_10",0)==1){ ipyaangButton.isChecked=true}
if(prof.getInt("c8_11",0)==1){ gaajungButton.isChecked=true}
if(prof.getInt("c8_6",0)==1){ bookhanButton.isChecked=true}
if(prof.getInt("c8_8",0)==1){ gookgayoogongButton.isChecked=true}
if(prof.getInt("c8_17",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -8,6 +8,7 @@ import android.os.Bundle
import android.util.Log
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
......@@ -54,6 +55,15 @@ class InputProfilFourthTwoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c15_2",0)==1){ yesButton.isChecked=true}
if(prof.getInt("c15_3",0)==1){ subLinearLayout.visibility= VISIBLE;noButton.isChecked=true;}
if(prof.getInt("c16_2",0)==1){ jeonsaeButton.isChecked=true}
if(prof.getInt("c16_3",0)==1){ wolseButton.isChecked=true}
if(prof.getInt("c16_4",0)==1){ kongkongButton.isChecked=true}
if(prof.getInt("c16_5",0)==1){ moosangButton.isChecked=true}
if(prof.getInt("c16_6",0)==1){ bojangButton.isChecked=true}
if(prof.getInt("c16_7",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -6,6 +6,7 @@ import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
......@@ -49,6 +50,41 @@ class InputProfilSecondOneActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c10_2 ",0)==1){baewoojaButton.isChecked=true}
if(prof.getInt("c10_3 ",0)==1){baewoojaboomoButton.isChecked=true}
if(prof.getInt("c10_4 ",0)==1){baewoojajoboomoButton.isChecked=true}
if(prof.getInt("c10_5 ",0)==1){brotherButton.isChecked=true}
if(prof.getInt("c10_6 ",0)==1){baewoojabrotherButton.isChecked=true}
if(prof.getInt("c10_7 ",0)==1){donggeoButton.isChecked=true}
if(prof.getInt("c10_8 ",0)==1){fatherButton.isChecked=true}
if(prof.getInt("c10_9 ",0)==1){motherButton.isChecked=true}
if(prof.getInt("c10_10",0)==1){grandsonbaewoojaButton.isChecked=true}
if(prof.getInt("c10_11",0)==1){grandfatherButton.isChecked=true}
if(prof.getInt("c10_12",0)==1){grandmotherButton.isChecked=true}
if(prof.getInt("c10_13",0)==1){grandsonButton.isChecked=true}
if(prof.getInt("c10_14",0)==1){janyeoButton.isChecked=true}
if(prof.getInt("c10_15",0)==1){janyeobaewoojaButton.isChecked=true}
if(prof.getInt("c10_18",0)==1){nothingButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -57,6 +57,10 @@ class InputProfilSecondThreeActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("numOfBS","")!=""){
findViewById<EditText>(R.id.bsNumberEditText).setText(prof.getString("numOfBS",""))
}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......@@ -151,6 +155,7 @@ class InputProfilSecondThreeActivity : AppCompatActivity() {
numOfBS=0
}else{
numOfBS=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt()
editor.putString("numOfBS",findViewById<EditText>(R.id.bsNumberEditText).text.toString())
if(numOfBS>=2){
editor.putInt("c10_16",1); editor.commit();editor.putString("second_three","done");editor.commit()
}else if(numOfBS<2){
......
......@@ -54,6 +54,9 @@ class InputProfilSecondTwoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getString("numOfChild","")!=""){
findViewById<EditText>(R.id.childNumberEditText).setText(prof.getString("numOfChild",""))
}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......@@ -140,6 +143,8 @@ class InputProfilSecondTwoActivity : AppCompatActivity() {
numOfChild=0
}else{
numOfChild=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()
editor.putString("numOfChild",findViewById<EditText>(R.id.childNumberEditText).text.toString())
editor.commit()
if(numOfChild>=3){
editor.putInt("c10_16",1); editor.commit();editor.putString("second_two","done");editor.commit()
}else if(numOfChild<3){
......
......@@ -56,6 +56,13 @@ class InputProfilThirdFiveActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c8_1",0)==1){ nothingButton.isChecked=true}
if(prof.getInt("c7_2",0)==1){ imshinButton.isChecked=true}
if(prof.getInt("c9_17",0)==1){ nanchiButton.isChecked=true}
if(prof.getInt("c9_18",0)==1){ oeButton.isChecked=true}
if(prof.getInt("c9_19",0)==1){ yoyaangButton.isChecked=true}
if(prof.getInt("c8_17",0)==1){ guitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -8,6 +8,7 @@ import android.os.Bundle
import android.util.Log
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
......@@ -55,6 +56,25 @@ class InputProfilThirdFourActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c8_2",0)==1){ yesButton.isChecked=true}
if(prof.getInt("c9_2",0)==1){ jichaeButton.isChecked=true}
if(prof.getInt("c9_3",0)==1){ noebyungbyunButton.isChecked=true}
if(prof.getInt("c9_4",0)==1){ sigaakButton.isChecked=true}
if(prof.getInt("c9_5",0)==1){ chungkaakButton.isChecked=true}
if(prof.getInt("c9_6",0)==1){ unuhButton.isChecked=true}
if(prof.getInt("c9_7",0)==1){ ahnmyunButton.isChecked=true}
if(prof.getInt("c9_8",0)==1){ sinjaangButton.isChecked=true}
if(prof.getInt("c9_9",0)==1){ simjaangButton.isChecked=true}
if(prof.getInt("c9_10",0)==1){ gaanjaangButton.isChecked=true}
if(prof.getInt("c9_11",0)==1){ jaangrooButton.isChecked=true}
if(prof.getInt("c9_12",0)==1){ noejungjeungButton.isChecked=true}
if(prof.getInt("c9_13",0)==1){ hoheupkiButton.isChecked=true}
if(prof.getInt("c9_14",0)==1){ jijukButton.isChecked=true}
if(prof.getInt("c9_15",0)==1){ japyeahButton.isChecked=true}
if(prof.getInt("c9_16",0)==1){ jeongshinButton.isChecked=true}
if(prof.getString("noButton","")=="isChecked"){noButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......@@ -150,11 +170,19 @@ class InputProfilThirdFourActivity : AppCompatActivity() {
editor.remove("c9_14")
editor.remove("c9_15")
editor.remove("c9_16")
editor.remove("noButton")
editor.commit()
if(yesButton.isChecked){
editor.putInt("c8_2",1); editor.commit()
}
if(noButton.isChecked){
editor.putString("noButton","isChecked")
editor.commit()
}
if(jichaeButton.isChecked){editor.putInt("c9_2",1); editor.commit();editor.putString("third_four","done");editor.commit()}
if(noebyungbyunButton.isChecked){editor.putInt("c9_3",1); editor.commit();editor.putString("third_four","done");editor.commit()}
if(sigaakButton.isChecked){editor.putInt("c9_4",1); editor.commit();editor.putString("third_four","done");editor.commit()}
......
......@@ -53,6 +53,13 @@ class InputProfilThirdOneActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c6_2",0)==1){elementaryButton.isChecked=true}
if(prof.getInt("c6_3",0)==1){middleButton.isChecked=true}
if(prof.getInt("c6_4",0)==1){highButton.isChecked=true}
if(prof.getInt("c6_5",0)==1){universityButton.isChecked=true}
if(prof.getInt("c6_6",0)==1){graduateButton.isChecked=true}
if(prof.getInt("c6_7",0)==1){specialButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -6,6 +6,7 @@ import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
......@@ -52,6 +53,17 @@ class InputProfilThirdThreeActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c4_11",0)==1){nothingButton.isChecked=true}
if(prof.getInt("c4_2",0)==1){ mipilButton.isChecked=true}
if(prof.getInt("c4_3",0)==1){ myunjaeButton.isChecked=true}
if(prof.getInt("c4_4",0)==1){ jobsoldierButton.isChecked=true}
if(prof.getInt("c4_5",0)==1){ bokmoojoongButton.isChecked=true}
if(prof.getInt("c4_6",0)==1){ mangijedaeButton.isChecked=true}
if(prof.getInt("c4_7",0)==1){ specialmanryoButton.isChecked=true}
if(prof.getInt("c4_8",0)==1){ specialbokmoosanupButton.isChecked=true}
if(prof.getInt("c4_9",0)==1){ specialbokmoojeonmoonButton.isChecked=true}
if(prof.getInt("c4_10",0)==1){jedaeguitarButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -55,6 +55,11 @@ class InputProfilThirdTwoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
if(prof.getInt("c5_6",0)==1){companyButton.isChecked=true}
if(prof.getInt("c5_7",0)==1){workerButton.isChecked=true}
if(prof.getInt("c5_9",0)==1){entireButton.isChecked=true}
if(prof.getInt("c5_5",0)==1){startupButton.isChecked=true}
if(prof.getInt("c5_5",0)==1){seekButton.isChecked=true}
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
......
......@@ -12,11 +12,11 @@ class WelcomeViewPagerAdapter(private val context : Context) : PagerAdapter() {
private var layoutInflater : LayoutInflater? = null
val Image = arrayOf(
R.drawable.onboarding1,
R.drawable.onboarding2,
R.drawable.onboarding3,
R.drawable.onboarding4,
R.drawable.onboarding5
R.drawable.a,
R.drawable.b,
R.drawable.c,
R.drawable.d,
R.drawable.e
)
......