Showing
204 changed files
with
0 additions
and
3451 deletions
README.md
deleted
100644 → 0
sample_data.csv
deleted
100644 → 0
This diff could not be displayed because it is too large.
vip/.gitignore
deleted
100644 → 0
vip/.idea/codeStyles/Project.xml
deleted
100644 → 0
1 | -<component name="ProjectCodeStyleConfiguration"> | ||
2 | - <code_scheme name="Project" version="173"> | ||
3 | - <AndroidXmlCodeStyleSettings> | ||
4 | - <option name="ARRANGEMENT_SETTINGS_MIGRATED_TO_191" value="true" /> | ||
5 | - </AndroidXmlCodeStyleSettings> | ||
6 | - <JetCodeStyleSettings> | ||
7 | - <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> | ||
8 | - </JetCodeStyleSettings> | ||
9 | - <codeStyleSettings language="XML"> | ||
10 | - <indentOptions> | ||
11 | - <option name="CONTINUATION_INDENT_SIZE" value="4" /> | ||
12 | - </indentOptions> | ||
13 | - <arrangement> | ||
14 | - <rules> | ||
15 | - <section> | ||
16 | - <rule> | ||
17 | - <match> | ||
18 | - <AND> | ||
19 | - <NAME>xmlns:android</NAME> | ||
20 | - <XML_ATTRIBUTE /> | ||
21 | - <XML_NAMESPACE>^$</XML_NAMESPACE> | ||
22 | - </AND> | ||
23 | - </match> | ||
24 | - </rule> | ||
25 | - </section> | ||
26 | - <section> | ||
27 | - <rule> | ||
28 | - <match> | ||
29 | - <AND> | ||
30 | - <NAME>xmlns:.*</NAME> | ||
31 | - <XML_ATTRIBUTE /> | ||
32 | - <XML_NAMESPACE>^$</XML_NAMESPACE> | ||
33 | - </AND> | ||
34 | - </match> | ||
35 | - <order>BY_NAME</order> | ||
36 | - </rule> | ||
37 | - </section> | ||
38 | - <section> | ||
39 | - <rule> | ||
40 | - <match> | ||
41 | - <AND> | ||
42 | - <NAME>.*:id</NAME> | ||
43 | - <XML_ATTRIBUTE /> | ||
44 | - <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | ||
45 | - </AND> | ||
46 | - </match> | ||
47 | - </rule> | ||
48 | - </section> | ||
49 | - <section> | ||
50 | - <rule> | ||
51 | - <match> | ||
52 | - <AND> | ||
53 | - <NAME>.*:name</NAME> | ||
54 | - <XML_ATTRIBUTE /> | ||
55 | - <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | ||
56 | - </AND> | ||
57 | - </match> | ||
58 | - </rule> | ||
59 | - </section> | ||
60 | - <section> | ||
61 | - <rule> | ||
62 | - <match> | ||
63 | - <AND> | ||
64 | - <NAME>name</NAME> | ||
65 | - <XML_ATTRIBUTE /> | ||
66 | - <XML_NAMESPACE>^$</XML_NAMESPACE> | ||
67 | - </AND> | ||
68 | - </match> | ||
69 | - </rule> | ||
70 | - </section> | ||
71 | - <section> | ||
72 | - <rule> | ||
73 | - <match> | ||
74 | - <AND> | ||
75 | - <NAME>style</NAME> | ||
76 | - <XML_ATTRIBUTE /> | ||
77 | - <XML_NAMESPACE>^$</XML_NAMESPACE> | ||
78 | - </AND> | ||
79 | - </match> | ||
80 | - </rule> | ||
81 | - </section> | ||
82 | - <section> | ||
83 | - <rule> | ||
84 | - <match> | ||
85 | - <AND> | ||
86 | - <NAME>.*</NAME> | ||
87 | - <XML_ATTRIBUTE /> | ||
88 | - <XML_NAMESPACE>^$</XML_NAMESPACE> | ||
89 | - </AND> | ||
90 | - </match> | ||
91 | - <order>BY_NAME</order> | ||
92 | - </rule> | ||
93 | - </section> | ||
94 | - <section> | ||
95 | - <rule> | ||
96 | - <match> | ||
97 | - <AND> | ||
98 | - <NAME>.*</NAME> | ||
99 | - <XML_ATTRIBUTE /> | ||
100 | - <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | ||
101 | - </AND> | ||
102 | - </match> | ||
103 | - <order>ANDROID_ATTRIBUTE_ORDER</order> | ||
104 | - </rule> | ||
105 | - </section> | ||
106 | - <section> | ||
107 | - <rule> | ||
108 | - <match> | ||
109 | - <AND> | ||
110 | - <NAME>.*</NAME> | ||
111 | - <XML_ATTRIBUTE /> | ||
112 | - <XML_NAMESPACE>.*</XML_NAMESPACE> | ||
113 | - </AND> | ||
114 | - </match> | ||
115 | - <order>BY_NAME</order> | ||
116 | - </rule> | ||
117 | - </section> | ||
118 | - </rules> | ||
119 | - </arrangement> | ||
120 | - </codeStyleSettings> | ||
121 | - <codeStyleSettings language="kotlin"> | ||
122 | - <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> | ||
123 | - </codeStyleSettings> | ||
124 | - </code_scheme> | ||
125 | -</component> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/.idea/gradle.xml
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<project version="4"> | ||
3 | - <component name="GradleSettings"> | ||
4 | - <option name="linkedExternalProjectsSettings"> | ||
5 | - <GradleProjectSettings> | ||
6 | - <option name="distributionType" value="DEFAULT_WRAPPED" /> | ||
7 | - <option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
8 | - <option name="modules"> | ||
9 | - <set> | ||
10 | - <option value="$PROJECT_DIR$" /> | ||
11 | - <option value="$PROJECT_DIR$/app" /> | ||
12 | - </set> | ||
13 | - </option> | ||
14 | - <option name="resolveModulePerSourceSet" value="false" /> | ||
15 | - <option name="testRunner" value="PLATFORM" /> | ||
16 | - </GradleProjectSettings> | ||
17 | - </option> | ||
18 | - </component> | ||
19 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/.idea/misc.xml
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<project version="4"> | ||
3 | - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | ||
4 | - <output url="file://$PROJECT_DIR$/build/classes" /> | ||
5 | - </component> | ||
6 | - <component name="ProjectType"> | ||
7 | - <option name="id" value="Android" /> | ||
8 | - </component> | ||
9 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/.idea/runConfigurations.xml
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<project version="4"> | ||
3 | - <component name="RunConfigurationProducerService"> | ||
4 | - <option name="ignoredProducers"> | ||
5 | - <set> | ||
6 | - <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" /> | ||
7 | - <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" /> | ||
8 | - <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" /> | ||
9 | - </set> | ||
10 | - </option> | ||
11 | - </component> | ||
12 | -</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/.idea/vcs.xml
deleted
100644 → 0
vip/app/.gitignore
deleted
100644 → 0
1 | -/build |
vip/app/build.gradle
deleted
100644 → 0
1 | -apply plugin: 'com.android.application' | ||
2 | - | ||
3 | -apply plugin: 'kotlin-android' | ||
4 | - | ||
5 | -apply plugin: 'kotlin-android-extensions' | ||
6 | - | ||
7 | -android { | ||
8 | - compileSdkVersion 29 | ||
9 | - buildToolsVersion "29.0.2" | ||
10 | - defaultConfig { | ||
11 | - applicationId "com.example.vip" | ||
12 | - minSdkVersion 23 | ||
13 | - targetSdkVersion 29 | ||
14 | - versionCode 1 | ||
15 | - versionName "1.0" | ||
16 | - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
17 | - } | ||
18 | - buildTypes { | ||
19 | - release { | ||
20 | - minifyEnabled false | ||
21 | - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
22 | - } | ||
23 | - } | ||
24 | -} | ||
25 | - | ||
26 | -dependencies { | ||
27 | - implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
28 | - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
29 | - implementation 'androidx.appcompat:appcompat:1.1.0' | ||
30 | - implementation 'androidx.core:core-ktx:1.0.2' | ||
31 | - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||
32 | - implementation 'com.google.firebase:firebase-analytics:17.2.0' | ||
33 | - implementation 'com.google.firebase:firebase-auth:19.0.0' | ||
34 | - implementation 'com.google.android.gms:play-services-auth:17.0.0' | ||
35 | - implementation 'androidx.recyclerview:recyclerview:1.1.0-beta05' | ||
36 | - implementation 'com.android.support:appcompat-v7:27.1.1' | ||
37 | - implementation 'com.android.support:design:28.0.0' | ||
38 | - | ||
39 | - implementation 'com.google.firebase:firebase-analytics:17.2.0' | ||
40 | - implementation 'com.google.firebase:firebase-messaging:20.0.0' | ||
41 | - | ||
42 | - implementation 'com.google.firebase:firebase-database:17.0.0' | ||
43 | - testImplementation 'junit:junit:4.12' | ||
44 | - androidTestImplementation 'androidx.test:runner:1.2.0' | ||
45 | - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' | ||
46 | - | ||
47 | - | ||
48 | -} | ||
49 | - | ||
50 | -apply plugin: 'com.google.gms.google-services' |
vip/app/google-services.json
deleted
100644 → 0
1 | -{ | ||
2 | - "project_info": { | ||
3 | - "project_number": "1004426035643", | ||
4 | - "firebase_url": "https://capstone-vip.firebaseio.com", | ||
5 | - "project_id": "capstone-vip", | ||
6 | - "storage_bucket": "capstone-vip.appspot.com" | ||
7 | - }, | ||
8 | - "client": [ | ||
9 | - { | ||
10 | - "client_info": { | ||
11 | - "mobilesdk_app_id": "1:1004426035643:android:fe0fc57d688873dd4f849e", | ||
12 | - "android_client_info": { | ||
13 | - "package_name": "com.example.vip" | ||
14 | - } | ||
15 | - }, | ||
16 | - "oauth_client": [ | ||
17 | - { | ||
18 | - "client_id": "1004426035643-ju8i4dbd1psjka5qqjsntos2kodrt2ca.apps.googleusercontent.com", | ||
19 | - "client_type": 1, | ||
20 | - "android_info": { | ||
21 | - "package_name": "com.example.vip", | ||
22 | - "certificate_hash": "8ac95d8222d265210a8ef81c0f1fa04561152680" | ||
23 | - } | ||
24 | - }, | ||
25 | - { | ||
26 | - "client_id": "1004426035643-0id5kb6rfoi38qi0ji2tvm7o8vvinvbe.apps.googleusercontent.com", | ||
27 | - "client_type": 1, | ||
28 | - "android_info": { | ||
29 | - "package_name": "com.example.vip", | ||
30 | - "certificate_hash": "0620fb977bfe2437393ecbf8fc4e3a84a4bd2574" | ||
31 | - } | ||
32 | - }, | ||
33 | - { | ||
34 | - "client_id": "1004426035643-n8hi0ab3i0km4j1srujtl0q70s97r93g.apps.googleusercontent.com", | ||
35 | - "client_type": 3 | ||
36 | - } | ||
37 | - ], | ||
38 | - "api_key": [ | ||
39 | - { | ||
40 | - "current_key": "AIzaSyC_eN3CjxzZwyH2oquqQYGAB3lMVolxVBE" | ||
41 | - } | ||
42 | - ], | ||
43 | - "services": { | ||
44 | - "appinvite_service": { | ||
45 | - "other_platform_oauth_client": [ | ||
46 | - { | ||
47 | - "client_id": "1004426035643-n8hi0ab3i0km4j1srujtl0q70s97r93g.apps.googleusercontent.com", | ||
48 | - "client_type": 3 | ||
49 | - } | ||
50 | - ] | ||
51 | - } | ||
52 | - } | ||
53 | - } | ||
54 | - ], | ||
55 | - "configuration_version": "1" | ||
56 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/app/proguard-rules.pro
deleted
100644 → 0
1 | -# Add project specific ProGuard rules here. | ||
2 | -# You can control the set of applied configuration files using the | ||
3 | -# proguardFiles setting in build.gradle. | ||
4 | -# | ||
5 | -# For more details, see | ||
6 | -# http://developer.android.com/guide/developing/tools/proguard.html | ||
7 | - | ||
8 | -# If your project uses WebView with JS, uncomment the following | ||
9 | -# and specify the fully qualified class name to the JavaScript interface | ||
10 | -# class: | ||
11 | -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
12 | -# public *; | ||
13 | -#} | ||
14 | - | ||
15 | -# Uncomment this to preserve the line number information for | ||
16 | -# debugging stack traces. | ||
17 | -#-keepattributes SourceFile,LineNumberTable | ||
18 | - | ||
19 | -# If you keep the line number information, uncomment this to | ||
20 | -# hide the original source file name. | ||
21 | -#-renamesourcefileattribute SourceFile |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import androidx.test.platform.app.InstrumentationRegistry | ||
4 | -import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
5 | - | ||
6 | -import org.junit.Test | ||
7 | -import org.junit.runner.RunWith | ||
8 | - | ||
9 | -import org.junit.Assert.* | ||
10 | - | ||
11 | -/** | ||
12 | - * Instrumented test, which will execute on an Android device. | ||
13 | - * | ||
14 | - * See [testing documentation](http://d.android.com/tools/testing). | ||
15 | - */ | ||
16 | -@RunWith(AndroidJUnit4::class) | ||
17 | -class ExampleInstrumentedTest { | ||
18 | - @Test | ||
19 | - fun useAppContext() { | ||
20 | - // Context of the app under test. | ||
21 | - val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
22 | - assertEquals("com.example.vip", appContext.packageName) | ||
23 | - } | ||
24 | -} |
vip/app/src/main/AndroidManifest.xml
deleted
100644 → 0
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - package="com.example.vip"> | ||
4 | - | ||
5 | - <application | ||
6 | - android:allowBackup="true" | ||
7 | - android:icon="@mipmap/ic_launcher" | ||
8 | - android:label="@string/app_name" | ||
9 | - android:roundIcon="@mipmap/ic_launcher_round" | ||
10 | - android:supportsRtl="true" | ||
11 | - android:theme="@style/NoActionBar"> | ||
12 | - <activity android:name=".ChildAdapter"></activity> | ||
13 | - <activity android:name=".InputProfilFifthFourActivity" /> | ||
14 | - <activity android:name=".InputProfilFifthThreeActivity" /> | ||
15 | - <activity android:name=".InputProfilFifthTwoActivity" /> | ||
16 | - <activity android:name=".InputProfilFifthOneActivity" /> | ||
17 | - <activity android:name=".InputProfilFourthFiveActivity" /> | ||
18 | - <activity android:name=".InputProfilFourthFourActivity" /> | ||
19 | - <activity android:name=".InputProfilFourthThreeActivity" /> | ||
20 | - <activity android:name=".InputProfilFourthTwoActivity" /> | ||
21 | - <activity android:name=".InputProfilFourthOneActivity" /> | ||
22 | - <activity android:name=".InputProfilThirdFourActivity" /> | ||
23 | - <activity android:name=".InputProfilThirdThreeActivity" /> | ||
24 | - <activity android:name=".InputProfilThirdTwoActivity" /> | ||
25 | - <activity android:name=".InputProfilThirdOneActivity" /> | ||
26 | - <activity android:name=".InputProfilSecondThreeActivity" /> | ||
27 | - <activity android:name=".InputProfilSecondTwoActivity" /> | ||
28 | - <activity android:name=".InputProfilSecondOneActivity" /> | ||
29 | - <activity android:name=".InputProfilFirstSixActivity" /> | ||
30 | - <activity android:name=".InputProfilFirstFiveActivity" /> | ||
31 | - <activity android:name=".InputProfilFirstFourActivity" /> | ||
32 | - <activity android:name=".InputProfilFirstThreeActivity" /> | ||
33 | - <activity android:name=".InputProfilFirstTwoActivity" /> | ||
34 | - <activity android:name=".FragmentActivity" /> | ||
35 | - <activity android:name=".FragmentLayout" /> | ||
36 | - <activity android:name=".InputProfilFirstOneActivity" /> | ||
37 | - <activity android:name=".WelcomeActivity" /> | ||
38 | - <activity android:name=".SettingActivity" /> | ||
39 | - <activity android:name=".DetailActivity" /> | ||
40 | - <activity android:name=".InfoActivity" /> | ||
41 | - <activity android:name=".FavoritesActivity" /> | ||
42 | - <activity android:name=".RecommendActivity" /> | ||
43 | - <activity android:name=".SignInActivity" /> | ||
44 | - <activity android:name=".SignUpActivity" /> | ||
45 | - <activity android:name=".MainActivity" /> | ||
46 | - <activity | ||
47 | - android:name=".SearchActivity" | ||
48 | - android:windowSoftInputMode="adjustNothing" /> | ||
49 | - <activity | ||
50 | - android:name=".SplashActivity" | ||
51 | - android:theme="@style/SplashTheme"> | ||
52 | - <intent-filter> | ||
53 | - <action android:name="android.intent.action.MAIN" /> | ||
54 | - | ||
55 | - <category android:name="android.intent.category.LAUNCHER" /> | ||
56 | - </intent-filter> | ||
57 | - </activity> | ||
58 | - </application> | ||
59 | - | ||
60 | -</manifest> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
vip/app/src/main/ic_launcher-web.png
deleted
100644 → 0
63.4 KB
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.LayoutInflater | ||
9 | -import android.view.View | ||
10 | -import android.view.ViewGroup | ||
11 | -import androidx.recyclerview.widget.RecyclerView | ||
12 | -import kotlinx.android.synthetic.main.item_bs.view.* | ||
13 | - | ||
14 | -class BSAdapter(private val items: ArrayList<BSItem>) : | ||
15 | - RecyclerView.Adapter<BSAdapter.ViewHolder>() { | ||
16 | - | ||
17 | - override fun getItemCount() = items.size | ||
18 | - | ||
19 | - override fun onBindViewHolder(holder: BSAdapter.ViewHolder, position: Int) { | ||
20 | - val item = items[position] | ||
21 | - | ||
22 | - holder.apply { | ||
23 | - bind(item) | ||
24 | - itemView.tag = item | ||
25 | - } | ||
26 | - } | ||
27 | - | ||
28 | - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): | ||
29 | - BSAdapter.ViewHolder { | ||
30 | - val inflatedView = LayoutInflater.from(parent.context) | ||
31 | - .inflate(R.layout.item_bs, parent, false) | ||
32 | - return BSAdapter.ViewHolder(inflatedView) | ||
33 | - } | ||
34 | - | ||
35 | - class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { | ||
36 | - | ||
37 | - private var view: View = v | ||
38 | - | ||
39 | - fun bind(item: BSItem) { | ||
40 | - view.circleformButton.text=item.numOfBS.toString() | ||
41 | - view.bsTextView.text=" 형제자매 "+item.numOfBS.toString() | ||
42 | - | ||
43 | - view.womanButton.setOnClickListener { | ||
44 | - if(view.manButton.isChecked){ | ||
45 | - view.manButton.isChecked=false | ||
46 | - }else{ | ||
47 | - } | ||
48 | - } | ||
49 | - view.manButton.setOnClickListener { | ||
50 | - if(view.womanButton.isChecked){ | ||
51 | - view.womanButton.isChecked=false | ||
52 | - }else{ | ||
53 | - } | ||
54 | - } | ||
55 | - | ||
56 | - } | ||
57 | - } | ||
58 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.LayoutInflater | ||
9 | -import android.view.View | ||
10 | -import android.view.ViewGroup | ||
11 | -import androidx.recyclerview.widget.RecyclerView | ||
12 | -import kotlinx.android.synthetic.main.item_child.view.* | ||
13 | -import kotlinx.android.synthetic.main.item_policyfield.view.* | ||
14 | - | ||
15 | -class ChildAdapter(private val items: ArrayList<ChildItem>) : | ||
16 | - RecyclerView.Adapter<ChildAdapter.ViewHolder>() { | ||
17 | - | ||
18 | - override fun getItemCount() = items.size | ||
19 | - | ||
20 | - override fun onBindViewHolder(holder: ChildAdapter.ViewHolder, position: Int) { | ||
21 | - val item = items[position] | ||
22 | - | ||
23 | - holder.apply { | ||
24 | - bind(item) | ||
25 | - itemView.tag = item | ||
26 | - } | ||
27 | - } | ||
28 | - | ||
29 | - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): | ||
30 | - ChildAdapter.ViewHolder { | ||
31 | - val inflatedView = LayoutInflater.from(parent.context) | ||
32 | - .inflate(R.layout.item_child, parent, false) | ||
33 | - return ChildAdapter.ViewHolder(inflatedView) | ||
34 | - } | ||
35 | - | ||
36 | - class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { | ||
37 | - | ||
38 | - private var view: View = v | ||
39 | - | ||
40 | - fun bind(item: ChildItem) { | ||
41 | - view.circleformButton.text=item.numOfChild.toString() | ||
42 | - view.childTextView.text=" 자녀 "+item.numOfChild.toString() | ||
43 | - | ||
44 | - view.womanButton.setOnClickListener { | ||
45 | - if(view.manButton.isChecked){ | ||
46 | - view.manButton.isChecked=false | ||
47 | - }else{ | ||
48 | - } | ||
49 | - } | ||
50 | - view.manButton.setOnClickListener { | ||
51 | - if(view.womanButton.isChecked){ | ||
52 | - view.womanButton.isChecked=false | ||
53 | - }else{ | ||
54 | - } | ||
55 | - } | ||
56 | - | ||
57 | - } | ||
58 | - } | ||
59 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.app.Activity | ||
4 | -import android.content.Intent | ||
5 | -import android.os.Bundle | ||
6 | -import android.util.Half.toFloat | ||
7 | -import android.view.Menu | ||
8 | -import android.view.MenuItem | ||
9 | -import android.view.View | ||
10 | -import android.webkit.WebView | ||
11 | -import android.widget.ImageView | ||
12 | -import android.widget.RatingBar | ||
13 | -import android.widget.TextView | ||
14 | -import android.widget.Toast | ||
15 | -import androidx.appcompat.app.ActionBar | ||
16 | -import androidx.appcompat.app.AppCompatActivity | ||
17 | -import androidx.core.content.ContextCompat | ||
18 | -import androidx.viewpager.widget.ViewPager | ||
19 | -import com.google.android.material.bottomnavigation.BottomNavigationView | ||
20 | -import com.google.android.material.snackbar.Snackbar | ||
21 | -import com.google.firebase.database.DataSnapshot | ||
22 | -import com.google.firebase.database.DatabaseError | ||
23 | -import com.google.firebase.database.FirebaseDatabase | ||
24 | -import com.google.firebase.database.ValueEventListener | ||
25 | -import kotlinx.android.synthetic.main.activity_detail.* | ||
26 | -import kotlinx.android.synthetic.main.activity_recommend.* | ||
27 | -import kotlinx.android.synthetic.main.activity_signin.* | ||
28 | -import kotlinx.android.synthetic.main.activity_signin.toolbar | ||
29 | -import kotlinx.android.synthetic.main.search.* | ||
30 | -import androidx.core.app.ComponentActivity.ExtraData | ||
31 | -import androidx.core.content.ContextCompat.getSystemService | ||
32 | -import android.icu.lang.UCharacter.GraphemeClusterBreak.T | ||
33 | -import android.net.Uri | ||
34 | -import android.view.MotionEvent | ||
35 | - | ||
36 | - | ||
37 | -data class MemoItemDetail( | ||
38 | - val Target : String = "", | ||
39 | - val Policy : String = "", | ||
40 | - val Content : String = "", | ||
41 | - val Link : String = "", | ||
42 | - val Date : String = "상시" | ||
43 | -) | ||
44 | - | ||
45 | -class DetailActivity : AppCompatActivity() { | ||
46 | - | ||
47 | - ////bottom navigation view operation start 1 | ||
48 | - lateinit var bottomBar: ActionBar | ||
49 | - ////bottom navigation view operation end 1 | ||
50 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
51 | - super.onCreate(savedInstanceState) | ||
52 | - setContentView(R.layout.activity_detail) | ||
53 | - | ||
54 | - var detaildatabase = FirebaseDatabase.getInstance().reference | ||
55 | - | ||
56 | - if (intent.hasExtra("key")) { | ||
57 | - //textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임 | ||
58 | - | ||
59 | - detaildatabase.orderByChild("Policy").startAt(intent.getStringExtra("key")).endAt(intent.getStringExtra("key")+"\uf8ff").addListenerForSingleValueEvent(object : | ||
60 | - ValueEventListener { | ||
61 | - override fun onCancelled(p0: DatabaseError) { | ||
62 | - Toast.makeText(this@DetailActivity, "실패부분", Toast.LENGTH_SHORT).show() | ||
63 | - } | ||
64 | - override fun onDataChange(dataSnapshot: DataSnapshot) { | ||
65 | - for (memoSnapshot in dataSnapshot.children){ | ||
66 | - val memo = memoSnapshot.getValue(MemoItemDetail::class.java) | ||
67 | - | ||
68 | - var detailImage: ImageView =findViewById(R.id.policyImageDetail) | ||
69 | - var detailDday: TextView =findViewById(R.id.policyDdayDetail) | ||
70 | - var detailTitle: TextView =findViewById(R.id.policyTitleDetail) | ||
71 | - var detailScore: RatingBar =findViewById(R.id.policyScoreDetail) | ||
72 | - var detailFavor: TextView =findViewById(R.id.policyFavorDetail) | ||
73 | - | ||
74 | - detailImage.setImageResource(R.drawable.image01) | ||
75 | - detailDday.text=memo!!.Date | ||
76 | - detailTitle.text=memo!!.Policy | ||
77 | - detailScore.rating=4.toFloat() | ||
78 | - detailFavor.text="0" | ||
79 | - | ||
80 | - val web : WebView = findViewById(R.id.policy_context) | ||
81 | - val summary : String = memo!!.Content | ||
82 | - web.loadData(summary, "text/html", "UTF-8") | ||
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener{item-> | ||
88 | - when (item.itemId){ | ||
89 | - | ||
90 | - R.id.shareBtn ->{ | ||
91 | - //val intent = Intent(this, SignInActivity::class.java) | ||
92 | - //startActivity(intent) | ||
93 | - //return@OnNavigationItemSelectedListener true | ||
94 | - } | ||
95 | - R.id.favorBtn ->{ | ||
96 | - | ||
97 | - } | ||
98 | - R.id.linkBtn ->{ | ||
99 | - val intent = Intent(Intent.ACTION_VIEW, Uri.parse(memo.Link)) | ||
100 | - startActivity(intent) | ||
101 | - } | ||
102 | - } | ||
103 | - false | ||
104 | - } | ||
105 | - ////bottom navigation view operation start 2 | ||
106 | - bottomBar=supportActionBar!! | ||
107 | - val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) | ||
108 | - bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) | ||
109 | - ////bottom navigation view operation end 2 | ||
110 | - | ||
111 | - | ||
112 | - } | ||
113 | - } | ||
114 | - }) | ||
115 | - | ||
116 | - | ||
117 | - } else { | ||
118 | - Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show() | ||
119 | - } | ||
120 | - | ||
121 | - | ||
122 | - // 1. 툴바 사용 설정 | ||
123 | - setSupportActionBar(toolbar) | ||
124 | - | ||
125 | - // 2. 툴바 왼쪽 버튼 설정 | ||
126 | - supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true | ||
127 | - supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정 | ||
128 | - supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기 | ||
129 | - | ||
130 | - | ||
131 | - } | ||
132 | - // 3.툴바 메뉴 버튼을 설정 | ||
133 | - override fun onCreateOptionsMenu(menu: Menu?): Boolean { | ||
134 | - menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정 | ||
135 | - return true | ||
136 | - } | ||
137 | - | ||
138 | - // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백 | ||
139 | - override fun onOptionsItemSelected(item: MenuItem?): Boolean { | ||
140 | - // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다. | ||
141 | - when(item!!.itemId){ | ||
142 | - android.R.id.home->{ // 메뉴 버튼 | ||
143 | - Snackbar.make(toolbar,"Menu pressed",Snackbar.LENGTH_SHORT).show() | ||
144 | - } | ||
145 | - R.id.menu_search->{ // 검색 버튼 | ||
146 | - val search_Intent = Intent(this, SearchActivity::class.java) | ||
147 | - startActivity(search_Intent) | ||
148 | - //Snackbar.make(toolbar,"Search menu pressed",Snackbar.LENGTH_SHORT).show() | ||
149 | - } | ||
150 | - } | ||
151 | - return super.onOptionsItemSelected(item) | ||
152 | - } | ||
153 | - | ||
154 | - //bottom navigation view operation start 3 | ||
155 | - | ||
156 | -//bottom navigation view operation end 3 | ||
157 | - | ||
158 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.Menu | ||
9 | -import android.view.MenuItem | ||
10 | -import android.widget.Toast | ||
11 | -import androidx.appcompat.app.ActionBar | ||
12 | -import androidx.core.content.ContextCompat | ||
13 | -import androidx.core.content.ContextCompat.startActivity | ||
14 | -import com.google.android.material.bottomnavigation.BottomNavigationView | ||
15 | -import com.google.android.material.snackbar.Snackbar | ||
16 | -import com.google.firebase.database.DataSnapshot | ||
17 | -import com.google.firebase.database.DatabaseError | ||
18 | -import com.google.firebase.database.FirebaseDatabase | ||
19 | -import com.google.firebase.database.ValueEventListener | ||
20 | -import kotlinx.android.synthetic.main.activity_recommend.* | ||
21 | -import kotlinx.android.synthetic.main.activity_recommend.toolbar | ||
22 | -import kotlinx.android.synthetic.main.activity_signin.* | ||
23 | - | ||
24 | -data class MemoItemFavor( | ||
25 | - val Target : String = "", | ||
26 | - val Policy : String = "", | ||
27 | - val Content : String = "", | ||
28 | - val Link : String = "" | ||
29 | -) | ||
30 | - | ||
31 | -class FavoritesActivity : AppCompatActivity() { | ||
32 | - | ||
33 | - ////bottom navigation view operation start 1 | ||
34 | - lateinit var bottomBar: ActionBar | ||
35 | - ////bottom navigation view operation end 1 | ||
36 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
37 | - super.onCreate(savedInstanceState) | ||
38 | - setContentView(R.layout.activity_favorites) | ||
39 | - | ||
40 | - val policyList = ArrayList<PolicyItem>() | ||
41 | - var favordatabase = FirebaseDatabase.getInstance().reference | ||
42 | - | ||
43 | - | ||
44 | - val prof: SharedPreferences = getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
45 | - val editor: SharedPreferences.Editor=prof.edit() | ||
46 | - | ||
47 | - var tempstring=prof.getString("favorstringlist","") | ||
48 | - var sepstr=tempstring!!.split("@") | ||
49 | - var sepstrset=sepstr.toMutableSet() | ||
50 | - | ||
51 | - for (favor in sepstrset){ | ||
52 | - | ||
53 | - favordatabase.orderByChild("Policy").startAt(favor).endAt(favor).addListenerForSingleValueEvent(object : | ||
54 | - ValueEventListener { | ||
55 | - override fun onCancelled(p0: DatabaseError) { | ||
56 | - Toast.makeText(this@FavoritesActivity, "실패부분", Toast.LENGTH_SHORT).show() | ||
57 | - } | ||
58 | - override fun onDataChange(dataSnapshot: DataSnapshot) { | ||
59 | - for (memoSnapshot in dataSnapshot.children){ | ||
60 | - val memo = memoSnapshot.getValue(MemoItemFavor::class.java) | ||
61 | - | ||
62 | - policyList.add( | ||
63 | - PolicyItem( | ||
64 | - ContextCompat.getDrawable(this@FavoritesActivity, R.drawable.image01)!!, | ||
65 | - memo!!.Policy, | ||
66 | - memo!!.Policy, | ||
67 | - memo!!.Policy, | ||
68 | - 4.toFloat(), | ||
69 | - " " | ||
70 | - | ||
71 | - ) | ||
72 | - ) | ||
73 | - } | ||
74 | - | ||
75 | - val adapter = PolicyAdapter(policyList) | ||
76 | - policyRecyclerView.adapter = adapter | ||
77 | - | ||
78 | - } | ||
79 | - | ||
80 | - }) | ||
81 | - | ||
82 | - } | ||
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 | - | ||
91 | - | ||
92 | - | ||
93 | - // 1. 툴바 사용 설정 | ||
94 | - setSupportActionBar(toolbar) | ||
95 | - | ||
96 | - // 2. 툴바 왼쪽 버튼 설정 | ||
97 | - supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true | ||
98 | - supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정 | ||
99 | - supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기 | ||
100 | - | ||
101 | - ////bottom navigation view operation start 2 | ||
102 | - bottomBar=supportActionBar!! | ||
103 | - val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) | ||
104 | - bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) | ||
105 | - ////bottom navigation view operation end 2 | ||
106 | - | ||
107 | - } | ||
108 | - // 3.툴바 메뉴 버튼을 설정 | ||
109 | - override fun onCreateOptionsMenu(menu: Menu?): Boolean { | ||
110 | - menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정 | ||
111 | - return true | ||
112 | - } | ||
113 | - | ||
114 | - // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백 | ||
115 | - override fun onOptionsItemSelected(item: MenuItem?): Boolean { | ||
116 | - // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다. | ||
117 | - when(item!!.itemId){ | ||
118 | - android.R.id.home->{ // 메뉴 버튼 | ||
119 | - Snackbar.make(toolbar,"Menu pressed", Snackbar.LENGTH_SHORT).show() | ||
120 | - } | ||
121 | - R.id.menu_search->{ // 검색 버튼 | ||
122 | - val search_Intent = Intent(this, SearchActivity::class.java) | ||
123 | - startActivity(search_Intent) | ||
124 | - //Snackbar.make(toolbar,"Search menu pressed",Snackbar.LENGTH_SHORT).show() | ||
125 | - } | ||
126 | - } | ||
127 | - return super.onOptionsItemSelected(item) | ||
128 | - } | ||
129 | - | ||
130 | - //bottom navigation view operation start 3 | ||
131 | - private val mOnNavigationItemSelectedListener= | ||
132 | - BottomNavigationView.OnNavigationItemSelectedListener{ item-> | ||
133 | - when (item.itemId){ | ||
134 | - | ||
135 | - R.id.bottomHome ->{ | ||
136 | - val intent = Intent(this, SignInActivity::class.java) | ||
137 | - startActivity(intent) | ||
138 | - return@OnNavigationItemSelectedListener true | ||
139 | - } | ||
140 | - R.id.bottomRecommend ->{ | ||
141 | - val intent = Intent(this, RecommendActivity::class.java) | ||
142 | - startActivity(intent) | ||
143 | - return@OnNavigationItemSelectedListener true | ||
144 | - } | ||
145 | - R.id.bottomFavorites ->{ | ||
146 | - val intent = Intent(this, FavoritesActivity::class.java) | ||
147 | - startActivity(intent) | ||
148 | - return@OnNavigationItemSelectedListener true | ||
149 | - } | ||
150 | - R.id.bottomInfo ->{ | ||
151 | - val intent = Intent(this, InfoActivity::class.java) | ||
152 | - startActivity(intent) | ||
153 | - return@OnNavigationItemSelectedListener true | ||
154 | - } | ||
155 | - | ||
156 | - | ||
157 | - } | ||
158 | - false | ||
159 | - } | ||
160 | -//bottom navigation view operation end 3 | ||
161 | - | ||
162 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.widget.ImageView | ||
9 | -import android.widget.Toast | ||
10 | -import kotlinx.android.synthetic.main.activity_info.* | ||
11 | - | ||
12 | -class InfoActivity : AppCompatActivity() { | ||
13 | - | ||
14 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
15 | - super.onCreate(savedInstanceState) | ||
16 | - setContentView(R.layout.activity_info) | ||
17 | - | ||
18 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
19 | - val editor: SharedPreferences.Editor=prof.edit() | ||
20 | - | ||
21 | - Toast.makeText(applicationContext,prof.getString("manorwoman","nothing"), | ||
22 | - Toast.LENGTH_SHORT).show() | ||
23 | - | ||
24 | - //temp | ||
25 | - var accountImage: ImageView =findViewById(R.id.infoAccountImage) | ||
26 | - var profilImage: ImageView =findViewById(R.id.InfoProfilImage) | ||
27 | - | ||
28 | - accountImage.setImageResource(R.drawable.image01) | ||
29 | - profilImage.setImageResource(R.drawable.image01) | ||
30 | - | ||
31 | - //temp | ||
32 | - | ||
33 | - InfoButtonLaw.setOnClickListener { | ||
34 | - var intent = Intent(this, SettingActivity::class.java) | ||
35 | - startActivity(intent) | ||
36 | - } | ||
37 | - | ||
38 | - //pushing test start | ||
39 | - InfoButtonSettings.setOnClickListener { | ||
40 | - //var intent = Intent(this, SettingActivity::class.java) | ||
41 | - //test start | ||
42 | - var intent = Intent(this, InputProfilFirstOneActivity::class.java) | ||
43 | - //test end | ||
44 | - startActivity(intent) | ||
45 | - } | ||
46 | - //pushing test end | ||
47 | - } | ||
48 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_fifth_four.* | ||
9 | - | ||
10 | -class InputProfilFifthFourActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_fifth_four) | ||
15 | - | ||
16 | - previousButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFifthThreeActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - nextButton.setOnClickListener { | ||
25 | - | ||
26 | - editor.putInt("c1_1",1); editor.commit() | ||
27 | - editor.putInt("c2_1",1); editor.commit() | ||
28 | - editor.putInt("c3_1",1); editor.commit() | ||
29 | - editor.putInt("c4_1",1); editor.commit() | ||
30 | - editor.putInt("c5_1",1); editor.commit() | ||
31 | - editor.putInt("c6_1",1); editor.commit() | ||
32 | - editor.putInt("c7_1",1); editor.commit() | ||
33 | - editor.putInt("c8_1",1); editor.commit() | ||
34 | - editor.putInt("c9_1",1); editor.commit() | ||
35 | - editor.putInt("c10_1",1); editor.commit() | ||
36 | - editor.putInt("c11_1",1); editor.commit() | ||
37 | - editor.putInt("c12_1",1); editor.commit() | ||
38 | - editor.putInt("c13_1",1); editor.commit() | ||
39 | - editor.putInt("c14_1",1); editor.commit() | ||
40 | - editor.putInt("c15_1",1); editor.commit() | ||
41 | - editor.putInt("c16_1",1); editor.commit() | ||
42 | - | ||
43 | - var intent = Intent(this, SignInActivity::class.java) | ||
44 | - startActivity(intent) | ||
45 | - } | ||
46 | - | ||
47 | - | ||
48 | - | ||
49 | - } | ||
50 | -} |
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_fifth_one.* | ||
7 | - | ||
8 | -class InputProfilFifthOneActivity : AppCompatActivity() { | ||
9 | - | ||
10 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
11 | - super.onCreate(savedInstanceState) | ||
12 | - setContentView(R.layout.activity_input_profil_fifth_one) | ||
13 | - | ||
14 | - previousButton.setOnClickListener { | ||
15 | - var intent = Intent(this, InputProfilFourthFiveActivity::class.java) | ||
16 | - startActivity(intent) | ||
17 | - } | ||
18 | - | ||
19 | - nextButton.setOnClickListener { | ||
20 | - var intent = Intent(this, InputProfilFifthTwoActivity::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_fifth_three.* | ||
7 | - | ||
8 | -class InputProfilFifthThreeActivity : AppCompatActivity() { | ||
9 | - | ||
10 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
11 | - super.onCreate(savedInstanceState) | ||
12 | - setContentView(R.layout.activity_input_profil_fifth_three) | ||
13 | - | ||
14 | - | ||
15 | - previousButton.setOnClickListener { | ||
16 | - var intent = Intent(this, InputProfilFifthTwoActivity::class.java) | ||
17 | - startActivity(intent) | ||
18 | - } | ||
19 | - | ||
20 | - nextButton.setOnClickListener { | ||
21 | - var intent = Intent(this, InputProfilFifthFourActivity::class.java) | ||
22 | - startActivity(intent) | ||
23 | - } | ||
24 | - } | ||
25 | -} |
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_fifth_two.* | ||
7 | - | ||
8 | -class InputProfilFifthTwoActivity : AppCompatActivity() { | ||
9 | - | ||
10 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
11 | - super.onCreate(savedInstanceState) | ||
12 | - setContentView(R.layout.activity_input_profil_fifth_two) | ||
13 | - | ||
14 | - | ||
15 | - previousButton.setOnClickListener { | ||
16 | - var intent = Intent(this, InputProfilFifthOneActivity::class.java) | ||
17 | - startActivity(intent) | ||
18 | - } | ||
19 | - | ||
20 | - nextButton.setOnClickListener { | ||
21 | - var intent = Intent(this, InputProfilFifthThreeActivity::class.java) | ||
22 | - startActivity(intent) | ||
23 | - } | ||
24 | - } | ||
25 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import android.graphics.Color | ||
7 | -import androidx.appcompat.app.AppCompatActivity | ||
8 | -import android.os.Bundle | ||
9 | -import kotlinx.android.synthetic.main.activity_input_profil_first_five.* | ||
10 | - | ||
11 | -class InputProfilFirstFiveActivity : AppCompatActivity() { | ||
12 | - | ||
13 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
14 | - super.onCreate(savedInstanceState) | ||
15 | - setContentView(R.layout.activity_input_profil_first_five) | ||
16 | - | ||
17 | - inmanButton.setOnClickListener { | ||
18 | - if(outmanButton.isChecked){ | ||
19 | - outmanButton.isChecked=false | ||
20 | - } | ||
21 | - } | ||
22 | - outmanButton.setOnClickListener { | ||
23 | - if(inmanButton.isChecked){ | ||
24 | - inmanButton.isChecked=false | ||
25 | - } | ||
26 | - } | ||
27 | - | ||
28 | - previousButton.setOnClickListener { | ||
29 | - var intent = Intent(this, InputProfilFirstFourActivity::class.java) | ||
30 | - startActivity(intent) | ||
31 | - } | ||
32 | - | ||
33 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
34 | - val editor: SharedPreferences.Editor=prof.edit() | ||
35 | - | ||
36 | - nextButton.setOnClickListener { | ||
37 | - if(inmanButton.isChecked){ | ||
38 | - editor.putInt("c1_2",1); editor.commit() | ||
39 | - }else if(outmanButton.isChecked){ | ||
40 | - editor.putInt("c1_3",1); editor.commit() | ||
41 | - }else{ | ||
42 | - | ||
43 | - } | ||
44 | - var intent = Intent(this, InputProfilFirstSixActivity::class.java) | ||
45 | - startActivity(intent) | ||
46 | - } | ||
47 | - | ||
48 | - } | ||
49 | -} |
This diff is collapsed. Click to expand it.
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_one.* | ||
7 | - | ||
8 | -class InputProfilFirstOneActivity : AppCompatActivity() { | ||
9 | - | ||
10 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
11 | - super.onCreate(savedInstanceState) | ||
12 | - setContentView(R.layout.activity_input_profil_first_one) | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | - inputStartButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFirstTwoActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - } | ||
22 | - | ||
23 | - | ||
24 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_first_six.* | ||
9 | - | ||
10 | -class InputProfilFirstSixActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_first_six) | ||
15 | - | ||
16 | - previousButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFirstFiveActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - nextButton.setOnClickListener { | ||
25 | - if(gagoojooButton.isChecked){ | ||
26 | - editor.putInt("c13_2",1); editor.commit() | ||
27 | - }else if(gagoowonButton.isChecked){ | ||
28 | - editor.putInt("c13_3",1); editor.commit() | ||
29 | - }else{ | ||
30 | - | ||
31 | - } | ||
32 | - | ||
33 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
34 | - startActivity(intent) | ||
35 | - } | ||
36 | - | ||
37 | - } | ||
38 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.util.Log | ||
9 | -import android.util.MonthDisplayHelper | ||
10 | -import android.view.View | ||
11 | -import android.widget.EditText | ||
12 | -import android.widget.RadioButton | ||
13 | -import android.widget.RadioGroup | ||
14 | -import android.widget.Toast | ||
15 | -import kotlinx.android.synthetic.main.activity_input_profil_first_one.* | ||
16 | -import kotlinx.android.synthetic.main.activity_input_profil_first_three.* | ||
17 | -import kotlinx.android.synthetic.main.activity_input_profil_first_three.nextButton | ||
18 | -import kotlinx.android.synthetic.main.activity_input_profil_first_two.* | ||
19 | - | ||
20 | -class InputProfilFirstThreeActivity : AppCompatActivity() { | ||
21 | - | ||
22 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
23 | - super.onCreate(savedInstanceState) | ||
24 | - setContentView(R.layout.activity_input_profil_first_three) | ||
25 | - | ||
26 | - /* not use this code start | ||
27 | - radio_group.setOnCheckedChangeListener( | ||
28 | - RadioGroup.OnCheckedChangeListener { group, checkedId -> | ||
29 | - val radio: RadioButton = findViewById(checkedId) | ||
30 | - Toast.makeText(applicationContext," On checked change : ${radio.text}", | ||
31 | - Toast.LENGTH_SHORT).show() | ||
32 | - }) | ||
33 | - not use this code end */ | ||
34 | - | ||
35 | - previousButton.setOnClickListener { | ||
36 | - var intent = Intent(this, InputProfilFirstTwoActivity::class.java) | ||
37 | - startActivity(intent) | ||
38 | - } | ||
39 | - | ||
40 | - val prof: SharedPreferences=getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
41 | - val editor: SharedPreferences.Editor=prof.edit() | ||
42 | - | ||
43 | - nextButton.setOnClickListener { | ||
44 | - var intent = Intent(this, InputProfilFirstFourActivity::class.java) | ||
45 | - startActivity(intent) | ||
46 | - | ||
47 | - if (manButton.isChecked){ | ||
48 | - editor.putInt("c3_2",1) | ||
49 | - editor.commit() | ||
50 | - //마지막장에 상관없음 추가 | ||
51 | - } | ||
52 | - else{ | ||
53 | - editor.putInt("c3_3",1) | ||
54 | - editor.commit() | ||
55 | - } | ||
56 | - } | ||
57 | - } | ||
58 | - | ||
59 | -/* i will not use this code start | ||
60 | - fun radio_button_click(view: View){ | ||
61 | - // Get the clicked radio button instance | ||
62 | - val radio: RadioButton = findViewById(radio_group.checkedRadioButtonId) | ||
63 | - Toast.makeText(applicationContext,"On click : ${radio.text}", | ||
64 | - Toast.LENGTH_SHORT).show() | ||
65 | - } | ||
66 | -i will not use this code start end*/ | ||
67 | - | ||
68 | - | ||
69 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.util.Log | ||
9 | -import android.widget.EditText | ||
10 | -import android.widget.Toast | ||
11 | -import com.google.firebase.messaging.FirebaseMessaging | ||
12 | -import kotlinx.android.synthetic.main.activity_input_profil_first_two.* | ||
13 | -import kotlinx.android.synthetic.main.activity_input_profil_first_two.nextButton | ||
14 | -import kotlinx.android.synthetic.main.activity_input_profil_second_two.* | ||
15 | - | ||
16 | -class InputProfilFirstTwoActivity : AppCompatActivity() { | ||
17 | - | ||
18 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
19 | - super.onCreate(savedInstanceState) | ||
20 | - setContentView(R.layout.activity_input_profil_first_two) | ||
21 | - | ||
22 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
23 | - val editor: SharedPreferences.Editor=prof.edit() | ||
24 | - | ||
25 | - //editor.putString("birthdate","none") | ||
26 | - | ||
27 | - | ||
28 | - nextButton.setOnClickListener { | ||
29 | - | ||
30 | - | ||
31 | - var birthdateinput=findViewById<EditText>(R.id.editText).text.toString() | ||
32 | - var birthdateint = 0 | ||
33 | - if (birthdateinput == "") { | ||
34 | - birthdateint = 0 | ||
35 | - } | ||
36 | - else { | ||
37 | - birthdateint = birthdateinput.toInt() | ||
38 | - } | ||
39 | - | ||
40 | - if ((2019-birthdateint)<19){ | ||
41 | - editor.putInt("c1_2",1) | ||
42 | - editor.commit() | ||
43 | - Toast.makeText(baseContext, prof.getInt("c1_2",0).toString(), Toast.LENGTH_SHORT).show() | ||
44 | - //마지막장에 상관없음 추가 | ||
45 | - FirebaseMessaging.getInstance().subscribeToTopic("c1_2") | ||
46 | - .addOnCompleteListener { task -> | ||
47 | - var msg = getString(R.string.msg_subscribed) | ||
48 | - if (!task.isSuccessful) { | ||
49 | - msg = getString(R.string.msg_subscribe_failed) | ||
50 | - } | ||
51 | - } | ||
52 | - } | ||
53 | - else if((2019-birthdateint)<34){ | ||
54 | - editor.putInt("c1_3",1) | ||
55 | - editor.commit() | ||
56 | - } | ||
57 | - else if((2019-birthdateint)<40){ | ||
58 | - editor.putInt("c1_4",1) | ||
59 | - editor.commit() | ||
60 | - } | ||
61 | - else if((2019-birthdateint)<49){ | ||
62 | - editor.putInt("c1_5",1) | ||
63 | - editor.commit() | ||
64 | - } | ||
65 | - else if((2019-birthdateint)<59){ | ||
66 | - editor.putInt("c1_6",1) | ||
67 | - editor.commit() | ||
68 | - } | ||
69 | - else{ | ||
70 | - editor.putInt("c1_7",1) | ||
71 | - editor.commit() | ||
72 | - } | ||
73 | - var intent = Intent(this, InputProfilFirstThreeActivity::class.java) | ||
74 | - startActivity(intent) | ||
75 | - | ||
76 | - } | ||
77 | - | ||
78 | - } | ||
79 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_fourth_five.* | ||
9 | - | ||
10 | -class InputProfilFourthFiveActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_fourth_five) | ||
15 | - | ||
16 | - previousButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFourthFourActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - nextButton.setOnClickListener { | ||
25 | - if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()} | ||
26 | - if(iljaeButton.isChecked){editor.putInt("c8_12",1); editor.commit()} | ||
27 | - if(specialpihaeButton.isChecked){editor.putInt("c8_13",1); editor.commit()} | ||
28 | - if(sanuppihaeButton.isChecked){editor.putInt("c8_14",1); editor.commit()} | ||
29 | - if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()} | ||
30 | - //기타가 똑같은거 지정 | ||
31 | - | ||
32 | - editor.putInt("c1_1",1); editor.commit() | ||
33 | - editor.putInt("c2_1",1); editor.commit() | ||
34 | - editor.putInt("c3_1",1); editor.commit() | ||
35 | - editor.putInt("c4_1",1); editor.commit() | ||
36 | - editor.putInt("c5_1",1); editor.commit() | ||
37 | - editor.putInt("c6_1",1); editor.commit() | ||
38 | - editor.putInt("c7_1",1); editor.commit() | ||
39 | - editor.putInt("c8_1",1); editor.commit() | ||
40 | - editor.putInt("c9_1",1); editor.commit() | ||
41 | - editor.putInt("c10_1",1); editor.commit() | ||
42 | - editor.putInt("c11_1",1); editor.commit() | ||
43 | - editor.putInt("c12_1",1); editor.commit() | ||
44 | - editor.putInt("c13_1",1); editor.commit() | ||
45 | - editor.putInt("c14_1",1); editor.commit() | ||
46 | - editor.putInt("c15_1",1); editor.commit() | ||
47 | - editor.putInt("c16_1",1); editor.commit() | ||
48 | - | ||
49 | - | ||
50 | - | ||
51 | - var intent = Intent(this, InputProfilFifthOneActivity::class.java) | ||
52 | - startActivity(intent) | ||
53 | - } | ||
54 | - | ||
55 | - | ||
56 | - } | ||
57 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_fourth_four.* | ||
9 | - | ||
10 | -class InputProfilFourthFourActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_fourth_four) | ||
15 | - | ||
16 | - previousButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFourthThreeActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - nextButton.setOnClickListener { | ||
25 | - | ||
26 | - if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()} | ||
27 | - if(pokryukButton.isChecked){editor.putInt("c8_9",1); editor.commit()} | ||
28 | - if(pihaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()} | ||
29 | - if(kachoolButton.isChecked){editor.putInt("c8_9",1); editor.commit()} | ||
30 | - if(sagoButton.isChecked){editor.putInt("c8_9",1); editor.commit()} | ||
31 | - if(ihonButton.isChecked){editor.putInt("c8_15",1); editor.commit()} | ||
32 | - if(jaehaeButton.isChecked){editor.putInt("c8_9",1); editor.commit()} | ||
33 | - if(hakkyobaakButton.isChecked){editor.putInt("c8_16",1); editor.commit()} | ||
34 | - if(siljikButton.isChecked){editor.putInt("c5_9",1); editor.commit()} | ||
35 | - if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()} | ||
36 | - | ||
37 | - var intent = Intent(this, InputProfilFourthFiveActivity::class.java) | ||
38 | - startActivity(intent) | ||
39 | - } | ||
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
44 | - | ||
45 | - | ||
46 | - } | ||
47 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.View.GONE | ||
9 | -import android.view.View.VISIBLE | ||
10 | -import android.widget.TextView | ||
11 | -import androidx.appcompat.app.AlertDialog | ||
12 | -import kotlinx.android.synthetic.main.activity_input_profil_fourth_one.* | ||
13 | - | ||
14 | -class InputProfilFourthOneActivity : AppCompatActivity() { | ||
15 | - | ||
16 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
17 | - super.onCreate(savedInstanceState) | ||
18 | - setContentView(R.layout.activity_input_profil_fourth_one) | ||
19 | - //보유 | ||
20 | - //미보유 - 전세 월세 공공주택 무상임대 보장기관 기타 | ||
21 | - | ||
22 | - //소유 | ||
23 | - //주택세대주 주택세대구성원 무주택자 무주택세대주 무주택세대구성원 | ||
24 | - | ||
25 | - //그냥 소유 미소유-모두무주택자 2개로 함 | ||
26 | - | ||
27 | -// 1. 툴바 사용 설정 | ||
28 | - setSupportActionBar(toolbar) | ||
29 | - | ||
30 | - skipButton.setOnClickListener { | ||
31 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
32 | - startActivity(intent) | ||
33 | - } | ||
34 | - | ||
35 | - questionButton.setOnClickListener { | ||
36 | - val builder = AlertDialog.Builder(this) | ||
37 | - val dialogView = layoutInflater.inflate(R.layout.family_member_dialog, null) | ||
38 | - //val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt) | ||
39 | - //val dialogRatingBar = dialogView.findViewById<RatingBar>(R.id.dialogRb) | ||
40 | - dialogView.findViewById<TextView>(R.id.dialogTitle).text="가족구성원이란?" | ||
41 | - dialogView.findViewById<TextView>(R.id.dialogContent).text="주민등록상 같은 거주지에 사는 사람" | ||
42 | - | ||
43 | - builder.setView(dialogView) | ||
44 | - .setPositiveButton("확인") { dialogInterface, i -> | ||
45 | - //mainTv.text = dialogText.text.toString() | ||
46 | - //mainRb.rating = dialogRatingBar.rating | ||
47 | - /* 확인일 때 main의 View의 값에 dialog View에 있는 값을 적용 */ | ||
48 | - | ||
49 | - } | ||
50 | - /* | ||
51 | - .setNegativeButton("취소") { dialogInterface, i -> | ||
52 | - /* 취소일 때 아무 액션이 없으므로 빈칸 */ | ||
53 | - } | ||
54 | - */ | ||
55 | - | ||
56 | - .show() | ||
57 | - | ||
58 | - } | ||
59 | - | ||
60 | - val prof: SharedPreferences=getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
61 | - val editor: SharedPreferences.Editor=prof.edit() | ||
62 | - | ||
63 | - previousButton.setOnClickListener { | ||
64 | - var intent = Intent(this, InputProfilThirdFourActivity::class.java) | ||
65 | - startActivity(intent) | ||
66 | - } | ||
67 | - | ||
68 | - yesButton.setOnClickListener { | ||
69 | - subLinearLayout.visibility=GONE | ||
70 | - noButton.isChecked=false | ||
71 | - } | ||
72 | - | ||
73 | - noButton.setOnClickListener { | ||
74 | - subLinearLayout.visibility=VISIBLE | ||
75 | - yesButton.isChecked=false | ||
76 | - } | ||
77 | - | ||
78 | - nextButton.setOnClickListener { | ||
79 | - | ||
80 | - if(yesButton.isChecked){ | ||
81 | - editor.putInt("c14_2",1) | ||
82 | - editor.commit() | ||
83 | - } | ||
84 | - if(noButton.isChecked){ | ||
85 | - editor.putInt("c14_3",1) | ||
86 | - editor.commit() | ||
87 | - } | ||
88 | - if(jeonsaeButton.isChecked){ | ||
89 | - editor.putInt("c16_2",1) | ||
90 | - editor.commit() | ||
91 | - } | ||
92 | - if(wolseButton.isChecked){ | ||
93 | - editor.putInt("c16_3",1) | ||
94 | - editor.commit() | ||
95 | - } | ||
96 | - if(kongkongButton.isChecked){ | ||
97 | - editor.putInt("c16_4",1) | ||
98 | - editor.commit() | ||
99 | - } | ||
100 | - if(moosangButton.isChecked){ | ||
101 | - editor.putInt("c16_5",1) | ||
102 | - editor.commit() | ||
103 | - } | ||
104 | - if(bojangButton.isChecked){ | ||
105 | - editor.putInt("c16_6",1) | ||
106 | - editor.commit() | ||
107 | - } | ||
108 | - if(guitarButton.isChecked){ | ||
109 | - editor.putInt("c16_7",1) | ||
110 | - editor.commit() | ||
111 | - } | ||
112 | - | ||
113 | - var intent = Intent(this, InputProfilFourthTwoActivity::class.java) | ||
114 | - startActivity(intent) | ||
115 | - } | ||
116 | - } | ||
117 | - | ||
118 | - | ||
119 | - | ||
120 | - | ||
121 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_fourth_three.* | ||
9 | - | ||
10 | -class InputProfilFourthThreeActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_fourth_three) | ||
15 | - | ||
16 | - previousButton.setOnClickListener { | ||
17 | - var intent = Intent(this, InputProfilFourthTwoActivity::class.java) | ||
18 | - startActivity(intent) | ||
19 | - } | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - | ||
25 | - nextButton.setOnClickListener { | ||
26 | - if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()} | ||
27 | - if(jeosodeukButton.isChecked){editor.putInt("c8_3",1); editor.commit()} | ||
28 | - if(hanboomoButton.isChecked){editor.putInt("c8_7",1); editor.commit()} | ||
29 | - if(oegookinButton.isChecked){editor.putInt("c8_5",1); editor.commit()} | ||
30 | - if(damoonhwaButton.isChecked){editor.putInt("c8_4",1); editor.commit()} | ||
31 | - if(jaangaeButton.isChecked){editor.putInt("c8_2",1); editor.commit()} | ||
32 | - if(imshinchoolsanButton.isChecked){editor.putInt("c7_1",1); editor.commit()} | ||
33 | - if(ipyaangButton.isChecked){editor.putInt("c8_10",1); editor.commit()} | ||
34 | - if(gaajungButton.isChecked){editor.putInt("c8_11",1); editor.commit()} | ||
35 | - if(bookhanButton.isChecked){editor.putInt("c8_6",1); editor.commit()} | ||
36 | - if(gookgayoogongButton.isChecked){editor.putInt("c8_8",1); editor.commit()} | ||
37 | - if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()} | ||
38 | - | ||
39 | - var intent = Intent(this, InputProfilFourthFourActivity::class.java) | ||
40 | - startActivity(intent) | ||
41 | - } | ||
42 | - | ||
43 | - } | ||
44 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.View.GONE | ||
9 | -import android.view.View.VISIBLE | ||
10 | -import kotlinx.android.synthetic.main.activity_input_profil_fourth_two.* | ||
11 | - | ||
12 | -class InputProfilFourthTwoActivity : AppCompatActivity() { | ||
13 | - | ||
14 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
15 | - super.onCreate(savedInstanceState) | ||
16 | - setContentView(R.layout.activity_input_profil_fourth_two) | ||
17 | - | ||
18 | - previousButton.setOnClickListener { | ||
19 | - var intent = Intent(this, InputProfilFourthOneActivity::class.java) | ||
20 | - startActivity(intent) | ||
21 | - } | ||
22 | - | ||
23 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
24 | - val editor: SharedPreferences.Editor=prof.edit() | ||
25 | - | ||
26 | - nextButton.setOnClickListener { | ||
27 | - if(yesButton.isChecked){editor.putInt("c15_2",1); editor.commit()} | ||
28 | - if(noButton.isChecked){editor.putInt("c15_3",1); editor.commit()} | ||
29 | - if(jeonsaeButton.isChecked){editor.putInt("c16_2",1); editor.commit()} | ||
30 | - if(wolseButton.isChecked){editor.putInt("c16_3",1); editor.commit()} | ||
31 | - if(kongkongButton.isChecked){editor.putInt("c16_4",1); editor.commit()} | ||
32 | - if(moosangButton.isChecked){editor.putInt("c16_5",1); editor.commit()} | ||
33 | - if(bojangButton.isChecked){editor.putInt("c16_6",1); editor.commit()} | ||
34 | - if(guitarButton.isChecked){editor.putInt("c16_7",1); editor.commit()} | ||
35 | - | ||
36 | - var intent = Intent(this, InputProfilFourthThreeActivity::class.java) | ||
37 | - startActivity(intent) | ||
38 | - } | ||
39 | - | ||
40 | - yesButton.setOnClickListener { | ||
41 | - subLayout.visibility=GONE | ||
42 | - noButton.isChecked=false | ||
43 | - } | ||
44 | - noButton.setOnClickListener { | ||
45 | - subLayout.visibility=VISIBLE | ||
46 | - yesButton.isChecked=false | ||
47 | - } | ||
48 | - | ||
49 | - } | ||
50 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.widget.Button | ||
9 | -import android.widget.EditText | ||
10 | -import android.widget.RatingBar | ||
11 | -import android.widget.TextView | ||
12 | -import androidx.appcompat.app.AlertDialog | ||
13 | -import kotlinx.android.synthetic.main.activity_input_profil_second_one.* | ||
14 | -import kotlinx.android.synthetic.main.family_member_dialog.* | ||
15 | -import kotlinx.android.synthetic.main.family_member_dialog.view.* | ||
16 | - | ||
17 | -class InputProfilSecondOneActivity : AppCompatActivity() { | ||
18 | - | ||
19 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
20 | - super.onCreate(savedInstanceState) | ||
21 | - setContentView(R.layout.activity_input_profil_second_one) | ||
22 | - | ||
23 | - // 1. 툴바 사용 설정 | ||
24 | - setSupportActionBar(toolbar) | ||
25 | - | ||
26 | - skipButton.setOnClickListener { | ||
27 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
28 | - startActivity(intent) | ||
29 | - } | ||
30 | - | ||
31 | - questionButton.setOnClickListener { | ||
32 | - val builder = AlertDialog.Builder(this) | ||
33 | - val dialogView = layoutInflater.inflate(R.layout.family_member_dialog, null) | ||
34 | - //val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt) | ||
35 | - //val dialogRatingBar = dialogView.findViewById<RatingBar>(R.id.dialogRb) | ||
36 | - dialogView.findViewById<TextView>(R.id.dialogTitle).text="가족구성원이란?" | ||
37 | - dialogView.findViewById<TextView>(R.id.dialogContent).text="주민등록상 같은 거주지에 사는 사람" | ||
38 | - | ||
39 | - builder.setView(dialogView) | ||
40 | - .setPositiveButton("확인") { dialogInterface, i -> | ||
41 | - //mainTv.text = dialogText.text.toString() | ||
42 | - //mainRb.rating = dialogRatingBar.rating | ||
43 | - /* 확인일 때 main의 View의 값에 dialog View에 있는 값을 적용 */ | ||
44 | - | ||
45 | - } | ||
46 | - /* | ||
47 | - .setNegativeButton("취소") { dialogInterface, i -> | ||
48 | - /* 취소일 때 아무 액션이 없으므로 빈칸 */ | ||
49 | - } | ||
50 | - */ | ||
51 | - | ||
52 | - .show() | ||
53 | - | ||
54 | - } | ||
55 | - | ||
56 | - previousButton.setOnClickListener { | ||
57 | - var intent = Intent(this, InputProfilFirstFiveActivity::class.java) | ||
58 | - startActivity(intent) | ||
59 | - } | ||
60 | - | ||
61 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
62 | - val editor: SharedPreferences.Editor=prof.edit() | ||
63 | - | ||
64 | - | ||
65 | - nextButton.setOnClickListener { | ||
66 | - | ||
67 | - if(baewoojaButton.isChecked){editor.putInt("c10_2",1); editor.commit()} | ||
68 | - if(baewoojaboomoButton.isChecked){editor.putInt("c10_3",1); editor.commit()} | ||
69 | - if(baewoojajoboomoButton.isChecked){editor.putInt("c10_4",1); editor.commit()} | ||
70 | - if(brotherButton.isChecked){editor.putInt("c10_5",1); editor.commit() | ||
71 | - editor.putString("with_brothersister","yes")} | ||
72 | - if(baewoojabrotherButton.isChecked){editor.putInt("c10_6",1); editor.commit()} | ||
73 | - if(donggeoButton.isChecked){editor.putInt("c10_7",1); editor.commit()} | ||
74 | - if(fatherButton.isChecked){editor.putInt("c10_8",1); editor.commit()} | ||
75 | - if(motherButton.isChecked){editor.putInt("c10_9",1); editor.commit()} | ||
76 | - if(grandsonbaewoojaButton.isChecked){editor.putInt("c10_10",1); editor.commit()} | ||
77 | - if(grandfatherButton.isChecked){editor.putInt("c10_11",1); editor.commit()} | ||
78 | - if(grandmotherButton.isChecked){editor.putInt("c10_12",1); editor.commit()} | ||
79 | - if(grandsonButton.isChecked){editor.putInt("c10_13",1); editor.commit()} | ||
80 | - if(janyeoButton.isChecked){editor.putInt("c10_14",1); editor.commit() | ||
81 | - editor.putString("with_child","yes")} | ||
82 | - if(janyeobaewoojaButton.isChecked){editor.putInt("c10_15",1); editor.commit()} | ||
83 | - if(nothingButton.isChecked){editor.putInt("c10_18",1); editor.commit()} | ||
84 | - | ||
85 | - if(janyeoButton.isChecked | ||
86 | - //prof.getString("with_child","none")=="yes" | ||
87 | - ){ | ||
88 | - var intent = Intent(this, InputProfilSecondTwoActivity::class.java) | ||
89 | - startActivity(intent) | ||
90 | - }else{ | ||
91 | - var intent = Intent(this, InputProfilThirdOneActivity::class.java) | ||
92 | - startActivity(intent) | ||
93 | - } | ||
94 | - } | ||
95 | - } | ||
96 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.widget.EditText | ||
9 | -import kotlinx.android.synthetic.main.activity_input_profil_second_three.* | ||
10 | -import kotlinx.android.synthetic.main.activity_input_profil_second_three.nextButton | ||
11 | -import kotlinx.android.synthetic.main.activity_input_profil_second_three.previousButton | ||
12 | -import kotlinx.android.synthetic.main.activity_input_profil_second_three.skipButton | ||
13 | -import kotlinx.android.synthetic.main.activity_input_profil_second_three.toolbar | ||
14 | - | ||
15 | -class InputProfilSecondThreeActivity : AppCompatActivity() { | ||
16 | - | ||
17 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
18 | - super.onCreate(savedInstanceState) | ||
19 | - setContentView(R.layout.activity_input_profil_second_three) | ||
20 | - | ||
21 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
22 | - val editor: SharedPreferences.Editor=prof.edit() | ||
23 | - | ||
24 | - | ||
25 | - setSupportActionBar(toolbar) | ||
26 | - | ||
27 | - skipButton.setOnClickListener { | ||
28 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
29 | - startActivity(intent) | ||
30 | - } | ||
31 | - | ||
32 | - previousButton.setOnClickListener { | ||
33 | - var intent = Intent(this, InputProfilSecondTwoActivity::class.java) | ||
34 | - startActivity(intent) | ||
35 | - } | ||
36 | - | ||
37 | - nextButton.setOnClickListener { | ||
38 | - var numOfBS=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt() | ||
39 | - if(numOfBS>=2){ | ||
40 | - editor.putInt("c10_16",1); editor.commit() | ||
41 | - } | ||
42 | - if(numOfBS<2){ | ||
43 | - editor.putInt("c10_17",1); editor.commit() | ||
44 | - } | ||
45 | - var intent = Intent(this, InputProfilThirdOneActivity::class.java) | ||
46 | - startActivity(intent) | ||
47 | - } | ||
48 | - | ||
49 | - val bsList = ArrayList<BSItem>() | ||
50 | - bsNumberInputButton.setOnClickListener { | ||
51 | - | ||
52 | - if(findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt()>0){ | ||
53 | - var bsNum=findViewById<EditText>(R.id.bsNumberEditText).text.toString().toInt() | ||
54 | - var cnt=1 | ||
55 | - while(bsNum>=cnt){ | ||
56 | - bsList.add( | ||
57 | - BSItem(cnt) | ||
58 | - ) | ||
59 | - cnt++ | ||
60 | - } | ||
61 | - //Toast.makeText(this, cnt.toString(), Toast.LENGTH_SHORT).show() | ||
62 | - } | ||
63 | - else{ | ||
64 | - var bsNum=0 | ||
65 | - } | ||
66 | - | ||
67 | - val adapter = BSAdapter(bsList) | ||
68 | - bsRecyclerView.adapter = adapter | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - } | ||
73 | - } | ||
74 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.View.GONE | ||
9 | -import android.view.View.VISIBLE | ||
10 | -import android.widget.EditText | ||
11 | -import android.widget.Toast | ||
12 | -import androidx.core.content.ContextCompat | ||
13 | -import kotlinx.android.synthetic.main.activity_input_profil_second_two.* | ||
14 | -import kotlinx.android.synthetic.main.item_child.view.* | ||
15 | - | ||
16 | -class InputProfilSecondTwoActivity : AppCompatActivity() { | ||
17 | - | ||
18 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
19 | - super.onCreate(savedInstanceState) | ||
20 | - setContentView(R.layout.activity_input_profil_second_two) | ||
21 | - | ||
22 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
23 | - val editor: SharedPreferences.Editor=prof.edit() | ||
24 | - | ||
25 | - setSupportActionBar(toolbar) | ||
26 | - skipButton.setOnClickListener { | ||
27 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
28 | - startActivity(intent) | ||
29 | - } | ||
30 | - previousButton.setOnClickListener { | ||
31 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
32 | - startActivity(intent) | ||
33 | - } | ||
34 | - nextButton.setOnClickListener { | ||
35 | - var numOfChild=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() | ||
36 | - if(numOfChild>=3){ | ||
37 | - editor.putInt("c10_16",1); editor.commit() | ||
38 | - } | ||
39 | - if(numOfChild<3){ | ||
40 | - editor.putInt("c10_17",1); editor.commit() | ||
41 | - } | ||
42 | - | ||
43 | - | ||
44 | - | ||
45 | - /* | ||
46 | - editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo birth", childRecyclerView.childBirthEditText.text.toString()); editor.commit() | ||
47 | - if(childRecyclerView.womanButton.isChecked){ | ||
48 | - editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo gender","woman"); editor.commit() | ||
49 | - }else{ | ||
50 | - editor.putString(childRecyclerView.circleformButton.text.toString()+"st janyeo gender","man"); editor.commit() | ||
51 | - } | ||
52 | - */ | ||
53 | - | ||
54 | - if(prof.getString("with_brothersister","none")=="yes"){ | ||
55 | - var intent = Intent(this, InputProfilSecondThreeActivity::class.java) | ||
56 | - startActivity(intent) | ||
57 | - }else{ | ||
58 | - var intent = Intent(this, InputProfilThirdOneActivity::class.java) | ||
59 | - startActivity(intent) | ||
60 | - } | ||
61 | - } | ||
62 | -//val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt) | ||
63 | - //mainTv.text = dialogText.text.toString() | ||
64 | - val childList = ArrayList<ChildItem>() | ||
65 | - childNumberInputButton.setOnClickListener { | ||
66 | - | ||
67 | - if(findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt()>0){ | ||
68 | - var childNum=findViewById<EditText>(R.id.childNumberEditText).text.toString().toInt() | ||
69 | - var cnt=1 | ||
70 | - while(childNum>=cnt){ | ||
71 | - childList.add( | ||
72 | - ChildItem(cnt) | ||
73 | - ) | ||
74 | - cnt++ | ||
75 | - } | ||
76 | - //Toast.makeText(this, cnt.toString(), Toast.LENGTH_SHORT).show() | ||
77 | - } | ||
78 | - else{ | ||
79 | - var childNum=0 | ||
80 | - } | ||
81 | - | ||
82 | - val adapter = ChildAdapter(childList) | ||
83 | - childRecyclerView.adapter = adapter | ||
84 | - | ||
85 | - | ||
86 | - | ||
87 | - } | ||
88 | - | ||
89 | - | ||
90 | - } | ||
91 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.View.GONE | ||
9 | -import android.view.View.VISIBLE | ||
10 | -import kotlinx.android.synthetic.main.activity_input_profil_third_four.* | ||
11 | - | ||
12 | -class InputProfilThirdFourActivity : AppCompatActivity() { | ||
13 | - | ||
14 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
15 | - super.onCreate(savedInstanceState) | ||
16 | - setContentView(R.layout.activity_input_profil_third_four) | ||
17 | - | ||
18 | - | ||
19 | - previousButton.setOnClickListener { | ||
20 | - var intent = Intent(this, InputProfilThirdThreeActivity::class.java) | ||
21 | - startActivity(intent) | ||
22 | - } | ||
23 | - | ||
24 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
25 | - val editor: SharedPreferences.Editor=prof.edit() | ||
26 | - | ||
27 | - nextButton.setOnClickListener { | ||
28 | - | ||
29 | - if(yesButton.isChecked){ | ||
30 | - editor.putInt("c8_2",1); editor.commit() | ||
31 | - } | ||
32 | - if(jichaeButton.isChecked){editor.putInt("c9_2",1); editor.commit()} | ||
33 | - if(noebyungbyunButton.isChecked){editor.putInt("c9_3",1); editor.commit()} | ||
34 | - if(sigaakButton.isChecked){editor.putInt("c9_4",1); editor.commit()} | ||
35 | - if(chungkaakButton.isChecked){editor.putInt("c9_5",1); editor.commit()} | ||
36 | - if(unuhButton.isChecked){editor.putInt("c9_6",1); editor.commit()} | ||
37 | - if(ahnmyunButton.isChecked){editor.putInt("c9_7",1); editor.commit()} | ||
38 | - if(sinjaangButton.isChecked){editor.putInt("c9_8",1); editor.commit()} | ||
39 | - if(simjaangButton.isChecked){editor.putInt("c9_9",1); editor.commit()} | ||
40 | - if(gaanjaangButton.isChecked){editor.putInt("c9_10",1); editor.commit()} | ||
41 | - if(jaangrooButton.isChecked){editor.putInt("c9_11",1); editor.commit()} | ||
42 | - if(noejungjeungButton.isChecked){editor.putInt("c9_12",1); editor.commit()} | ||
43 | - if(hoheupkiButton.isChecked){editor.putInt("c9_13",1); editor.commit()} | ||
44 | - if(jijukButton.isChecked){editor.putInt("c9_14",1); editor.commit()} | ||
45 | - if(japyeahButton.isChecked){editor.putInt("c9_15",1); editor.commit()} | ||
46 | - if(jeongshinButton.isChecked){editor.putInt("c9_16",1); editor.commit()} | ||
47 | - | ||
48 | - if(nothingButton.isChecked){editor.putInt("c8_1",1); editor.commit()}//DB,pref 뻑 주의 | ||
49 | - if(imshinButton.isChecked){editor.putInt("c7_2",1); editor.commit()} | ||
50 | - if(nanchiButton.isChecked){editor.putInt("c9_17",1); editor.commit()} | ||
51 | - if(oeButton.isChecked){editor.putInt("c9_18",1); editor.commit()} | ||
52 | - if(yoyaangButton.isChecked){editor.putInt("c9_19",1); editor.commit()} | ||
53 | - if(guitarButton.isChecked){editor.putInt("c8_17",1); editor.commit()} | ||
54 | - | ||
55 | - var intent = Intent(this, InputProfilFourthOneActivity::class.java) | ||
56 | - startActivity(intent) | ||
57 | - } | ||
58 | - | ||
59 | - yesButton.setOnClickListener { | ||
60 | - eightoneLayout.visibility=VISIBLE | ||
61 | - eighttwoLayout.visibility= GONE | ||
62 | - | ||
63 | - } | ||
64 | - noButton.setOnClickListener { | ||
65 | - eightoneLayout.visibility= GONE | ||
66 | - eighttwoLayout.visibility= VISIBLE | ||
67 | - } | ||
68 | - | ||
69 | - | ||
70 | - } | ||
71 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.widget.Button | ||
9 | -import android.widget.TextView | ||
10 | -import kotlinx.android.synthetic.main.activity_input_profil_third_one.* | ||
11 | - | ||
12 | -class InputProfilThirdOneActivity : AppCompatActivity() { | ||
13 | - | ||
14 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
15 | - super.onCreate(savedInstanceState) | ||
16 | - setContentView(R.layout.activity_input_profil_third_one) | ||
17 | - | ||
18 | - // 1. 툴바 사용 설정 | ||
19 | - setSupportActionBar(toolbar) | ||
20 | - | ||
21 | - skipButton.setOnClickListener { | ||
22 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
23 | - startActivity(intent) | ||
24 | - } | ||
25 | - | ||
26 | - elementaryButton.setOnClickListener { | ||
27 | - middleButton.isChecked=false | ||
28 | - highButton.isChecked=false | ||
29 | - specialButton.isChecked=false | ||
30 | - universityButton.isChecked=false | ||
31 | - graduateButton.isChecked=false | ||
32 | - nothingButton.isChecked=false | ||
33 | - } | ||
34 | - middleButton.setOnClickListener { | ||
35 | - elementaryButton.isChecked=false | ||
36 | - highButton.isChecked=false | ||
37 | - specialButton.isChecked=false | ||
38 | - universityButton.isChecked=false | ||
39 | - graduateButton.isChecked=false | ||
40 | - nothingButton.isChecked=false | ||
41 | - } | ||
42 | - highButton.setOnClickListener { | ||
43 | - elementaryButton.isChecked=false | ||
44 | - middleButton.isChecked=false | ||
45 | - specialButton.isChecked=false | ||
46 | - universityButton.isChecked=false | ||
47 | - graduateButton.isChecked=false | ||
48 | - nothingButton.isChecked=false | ||
49 | - } | ||
50 | - specialButton.setOnClickListener { | ||
51 | - elementaryButton.isChecked=false | ||
52 | - middleButton.isChecked=false | ||
53 | - highButton.isChecked=false | ||
54 | - universityButton.isChecked=false | ||
55 | - graduateButton.isChecked=false | ||
56 | - nothingButton.isChecked=false | ||
57 | - } | ||
58 | - universityButton.setOnClickListener { | ||
59 | - elementaryButton.isChecked=false | ||
60 | - middleButton.isChecked=false | ||
61 | - highButton.isChecked=false | ||
62 | - specialButton.isChecked=false | ||
63 | - graduateButton.isChecked=false | ||
64 | - nothingButton.isChecked=false | ||
65 | - } | ||
66 | - graduateButton.setOnClickListener { | ||
67 | - elementaryButton.isChecked=false | ||
68 | - middleButton.isChecked=false | ||
69 | - highButton.isChecked=false | ||
70 | - specialButton.isChecked=false | ||
71 | - universityButton.isChecked=false | ||
72 | - nothingButton.isChecked=false | ||
73 | - } | ||
74 | - nothingButton.setOnClickListener { | ||
75 | - elementaryButton.isChecked=false | ||
76 | - middleButton.isChecked=false | ||
77 | - highButton.isChecked=false | ||
78 | - specialButton.isChecked=false | ||
79 | - universityButton.isChecked=false | ||
80 | - graduateButton.isChecked=false | ||
81 | - } | ||
82 | - | ||
83 | - previousButton.setOnClickListener { | ||
84 | - var intent = Intent(this, InputProfilSecondThreeActivity::class.java) | ||
85 | - startActivity(intent) | ||
86 | - } | ||
87 | - | ||
88 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
89 | - val editor: SharedPreferences.Editor=prof.edit() | ||
90 | - | ||
91 | - nextButton.setOnClickListener { | ||
92 | - if(elementaryButton.isChecked){ | ||
93 | - editor.putInt("c6_2",1); editor.commit() | ||
94 | - }else if(middleButton.isChecked){ | ||
95 | - editor.putInt("c6_3",1); editor.commit() | ||
96 | - }else if(highButton.isChecked){ | ||
97 | - editor.putInt("c6_4",1); editor.commit() | ||
98 | - }else if(universityButton.isChecked){ | ||
99 | - editor.putInt("c6_5",1); editor.commit() | ||
100 | - }else if(graduateButton.isChecked){ | ||
101 | - editor.putInt("c6_6",1); editor.commit() | ||
102 | - }else if(nothingButton.isChecked){ | ||
103 | - editor.putInt("c6_7",1); editor.commit() | ||
104 | - }else{ | ||
105 | - | ||
106 | - } | ||
107 | - | ||
108 | - | ||
109 | - var intent = Intent(this, InputProfilThirdTwoActivity::class.java) | ||
110 | - startActivity(intent) | ||
111 | - } | ||
112 | - } | ||
113 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import kotlinx.android.synthetic.main.activity_input_profil_third_three.* | ||
9 | - | ||
10 | -class InputProfilThirdThreeActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
13 | - super.onCreate(savedInstanceState) | ||
14 | - setContentView(R.layout.activity_input_profil_third_three) | ||
15 | - | ||
16 | - // 1. 툴바 사용 설정 | ||
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, InputProfilThirdTwoActivity::class.java) | ||
26 | - startActivity(intent) | ||
27 | - } | ||
28 | - | ||
29 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
30 | - val editor: SharedPreferences.Editor=prof.edit() | ||
31 | - | ||
32 | - nextButton.setOnClickListener { | ||
33 | - if(nothingButton.isChecked){ editor.putInt("c4_11",1); editor.commit()} | ||
34 | - if(mipilButton.isChecked){ editor.putInt("c4_2",1); editor.commit()} | ||
35 | - if(myunjaeButton.isChecked){ editor.putInt("c4_3",1); editor.commit()} | ||
36 | - if(jobsoldierButton.isChecked){ editor.putInt("c4_4",1); editor.commit()} | ||
37 | - if(bokmoojoongButton.isChecked){ editor.putInt("c4_5",1); editor.commit()} | ||
38 | - if(mangijedaeButton.isChecked){ editor.putInt("c4_6",1); editor.commit()} | ||
39 | - if(specialmanryoButton.isChecked){ editor.putInt("c4_7",1); editor.commit()} | ||
40 | - if(specialbokmoosanupButton.isChecked){ editor.putInt("c4_8",1); editor.commit()} | ||
41 | - if(specialbokmoojeonmoonButton.isChecked){ editor.putInt("c4_9",1); editor.commit()} | ||
42 | - if(jedaeguitarButton.isChecked){ editor.putInt("c4_10",1); editor.commit()} | ||
43 | - | ||
44 | - var intent = Intent(this, InputProfilThirdFourActivity::class.java) | ||
45 | - startActivity(intent) | ||
46 | - } | ||
47 | - | ||
48 | - nothingButton.setOnClickListener { | ||
49 | - mipilButton.isChecked=false | ||
50 | - myunjaeButton.isChecked=false | ||
51 | - jobsoldierButton.isChecked=false | ||
52 | - bokmoojoongButton.isChecked=false | ||
53 | - mangijedaeButton.isChecked=false | ||
54 | - specialmanryoButton.isChecked=false | ||
55 | - specialbokmoosanupButton.isChecked=false | ||
56 | - specialbokmoojeonmoonButton.isChecked=false | ||
57 | - jedaeguitarButton.isChecked=false | ||
58 | - } | ||
59 | - mipilButton.setOnClickListener { | ||
60 | - nothingButton.isChecked=false | ||
61 | - myunjaeButton.isChecked=false | ||
62 | - jobsoldierButton.isChecked=false | ||
63 | - bokmoojoongButton.isChecked=false | ||
64 | - mangijedaeButton.isChecked=false | ||
65 | - specialmanryoButton.isChecked=false | ||
66 | - specialbokmoosanupButton.isChecked=false | ||
67 | - specialbokmoojeonmoonButton.isChecked=false | ||
68 | - jedaeguitarButton.isChecked=false | ||
69 | - } | ||
70 | - myunjaeButton.setOnClickListener { | ||
71 | - nothingButton.isChecked=false | ||
72 | - mipilButton.isChecked=false | ||
73 | - jobsoldierButton.isChecked=false | ||
74 | - bokmoojoongButton.isChecked=false | ||
75 | - mangijedaeButton.isChecked=false | ||
76 | - specialmanryoButton.isChecked=false | ||
77 | - specialbokmoosanupButton.isChecked=false | ||
78 | - specialbokmoojeonmoonButton.isChecked=false | ||
79 | - jedaeguitarButton.isChecked=false | ||
80 | - } | ||
81 | - jobsoldierButton.setOnClickListener { | ||
82 | - nothingButton.isChecked=false | ||
83 | - mipilButton.isChecked=false | ||
84 | - myunjaeButton.isChecked=false | ||
85 | - bokmoojoongButton.isChecked=false | ||
86 | - mangijedaeButton.isChecked=false | ||
87 | - specialmanryoButton.isChecked=false | ||
88 | - specialbokmoosanupButton.isChecked=false | ||
89 | - specialbokmoojeonmoonButton.isChecked=false | ||
90 | - jedaeguitarButton.isChecked=false | ||
91 | - } | ||
92 | - bokmoojoongButton.setOnClickListener { | ||
93 | - nothingButton.isChecked=false | ||
94 | - mipilButton.isChecked=false | ||
95 | - myunjaeButton.isChecked=false | ||
96 | - jobsoldierButton.isChecked=false | ||
97 | - mangijedaeButton.isChecked=false | ||
98 | - specialmanryoButton.isChecked=false | ||
99 | - specialbokmoosanupButton.isChecked=false | ||
100 | - specialbokmoojeonmoonButton.isChecked=false | ||
101 | - jedaeguitarButton.isChecked=false | ||
102 | - } | ||
103 | - mangijedaeButton.setOnClickListener { | ||
104 | - nothingButton.isChecked=false | ||
105 | - mipilButton.isChecked=false | ||
106 | - myunjaeButton.isChecked=false | ||
107 | - jobsoldierButton.isChecked=false | ||
108 | - bokmoojoongButton.isChecked=false | ||
109 | - specialmanryoButton.isChecked=false | ||
110 | - specialbokmoosanupButton.isChecked=false | ||
111 | - specialbokmoojeonmoonButton.isChecked=false | ||
112 | - jedaeguitarButton.isChecked=false | ||
113 | - } | ||
114 | - specialmanryoButton.setOnClickListener { | ||
115 | - nothingButton.isChecked=false | ||
116 | - mipilButton.isChecked=false | ||
117 | - myunjaeButton.isChecked=false | ||
118 | - jobsoldierButton.isChecked=false | ||
119 | - bokmoojoongButton.isChecked=false | ||
120 | - mangijedaeButton.isChecked=false | ||
121 | - specialbokmoosanupButton.isChecked=false | ||
122 | - specialbokmoojeonmoonButton.isChecked=false | ||
123 | - jedaeguitarButton.isChecked=false | ||
124 | - } | ||
125 | - specialbokmoosanupButton.setOnClickListener { | ||
126 | - nothingButton.isChecked=false | ||
127 | - mipilButton.isChecked=false | ||
128 | - myunjaeButton.isChecked=false | ||
129 | - jobsoldierButton.isChecked=false | ||
130 | - bokmoojoongButton.isChecked=false | ||
131 | - mangijedaeButton.isChecked=false | ||
132 | - specialmanryoButton.isChecked=false | ||
133 | - specialbokmoojeonmoonButton.isChecked=false | ||
134 | - jedaeguitarButton.isChecked=false | ||
135 | - } | ||
136 | - specialbokmoojeonmoonButton.setOnClickListener { | ||
137 | - nothingButton.isChecked=false | ||
138 | - mipilButton.isChecked=false | ||
139 | - myunjaeButton.isChecked=false | ||
140 | - jobsoldierButton.isChecked=false | ||
141 | - bokmoojoongButton.isChecked=false | ||
142 | - mangijedaeButton.isChecked=false | ||
143 | - specialmanryoButton.isChecked=false | ||
144 | - specialbokmoosanupButton.isChecked=false | ||
145 | - jedaeguitarButton.isChecked=false | ||
146 | - } | ||
147 | - jedaeguitarButton.setOnClickListener { | ||
148 | - nothingButton.isChecked=false | ||
149 | - mipilButton.isChecked=false | ||
150 | - myunjaeButton.isChecked=false | ||
151 | - jobsoldierButton.isChecked=false | ||
152 | - bokmoojoongButton.isChecked=false | ||
153 | - mangijedaeButton.isChecked=false | ||
154 | - specialmanryoButton.isChecked=false | ||
155 | - specialbokmoosanupButton.isChecked=false | ||
156 | - specialbokmoojeonmoonButton.isChecked=false | ||
157 | - } | ||
158 | - | ||
159 | - } | ||
160 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import android.os.Bundle | ||
8 | -import android.view.View.GONE | ||
9 | -import android.view.View.VISIBLE | ||
10 | -import kotlinx.android.synthetic.main.activity_input_profil_third_two.* | ||
11 | - | ||
12 | -class InputProfilThirdTwoActivity : AppCompatActivity() { | ||
13 | - | ||
14 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
15 | - super.onCreate(savedInstanceState) | ||
16 | - setContentView(R.layout.activity_input_profil_third_two) | ||
17 | - | ||
18 | - // 1. 툴바 사용 설정 | ||
19 | - setSupportActionBar(toolbar) | ||
20 | - | ||
21 | - skipButton.setOnClickListener { | ||
22 | - var intent = Intent(this, InputProfilSecondOneActivity::class.java) | ||
23 | - startActivity(intent) | ||
24 | - } | ||
25 | - | ||
26 | - previousButton.setOnClickListener { | ||
27 | - var intent = Intent(this, InputProfilThirdOneActivity::class.java) | ||
28 | - startActivity(intent) | ||
29 | - } | ||
30 | - | ||
31 | - val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE) | ||
32 | - val editor: SharedPreferences.Editor=prof.edit() | ||
33 | - | ||
34 | - nextButton.setOnClickListener { | ||
35 | - if(companyButton.isChecked){ editor.putInt("c5_6",1); editor.commit()} | ||
36 | - if(workerButton.isChecked){ editor.putInt("c5_7",1); editor.commit()} | ||
37 | - if(entireButton.isChecked){ editor.putInt("c5_9",1); editor.commit()} | ||
38 | - if(startupButton.isChecked){ editor.putInt("c5_5",1); editor.commit()} | ||
39 | - if(seekButton.isChecked){ editor.putInt("c5_5",1); editor.commit()} | ||
40 | - //창업예정자랑 취준생이랑 같은 카테고리 맞음???? | ||
41 | - | ||
42 | - var intent = Intent(this, InputProfilThirdThreeActivity::class.java) | ||
43 | - startActivity(intent) | ||
44 | - } | ||
45 | - | ||
46 | - jobButton.setOnClickListener { | ||
47 | - nojobButton.isChecked=false | ||
48 | - sixoneLayout.visibility=VISIBLE | ||
49 | - sixtwoLayout.visibility= GONE | ||
50 | - } | ||
51 | - nojobButton.setOnClickListener { | ||
52 | - jobButton.isChecked=false | ||
53 | - sixoneLayout.visibility=GONE | ||
54 | - sixtwoLayout.visibility= VISIBLE | ||
55 | - } | ||
56 | - companyButton.setOnClickListener { | ||
57 | - workerButton.isChecked=false | ||
58 | - } | ||
59 | - workerButton.setOnClickListener { | ||
60 | - companyButton.isChecked=false | ||
61 | - } | ||
62 | - entireButton.setOnClickListener { | ||
63 | - startupButton.isChecked=false | ||
64 | - seekButton.isChecked=false | ||
65 | - } | ||
66 | - startupButton.setOnClickListener { | ||
67 | - entireButton.isChecked=false | ||
68 | - seekButton.isChecked=false | ||
69 | - } | ||
70 | - seekButton.setOnClickListener { | ||
71 | - entireButton.isChecked=false | ||
72 | - startupButton.isChecked=false | ||
73 | - } | ||
74 | - } | ||
75 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.animation.Animator | ||
4 | -import android.animation.AnimatorInflater | ||
5 | -import android.content.Context | ||
6 | -import android.content.Intent | ||
7 | -import android.content.SharedPreferences | ||
8 | -import androidx.appcompat.app.AppCompatActivity | ||
9 | -import android.os.Bundle | ||
10 | -import android.preference.PreferenceManager | ||
11 | -import android.util.Log | ||
12 | -import android.view.LayoutInflater | ||
13 | -import android.view.View | ||
14 | -import android.view.ViewGroup | ||
15 | -import android.widget.ImageView | ||
16 | -import android.widget.Toast | ||
17 | -import com.google.firebase.auth.FirebaseAuth | ||
18 | -import kotlinx.android.synthetic.main.activity_main.* | ||
19 | -import org.w3c.dom.Node | ||
20 | -import java.lang.Boolean.getBoolean | ||
21 | - | ||
22 | - | ||
23 | -class MainActivity : AppCompatActivity() { | ||
24 | - | ||
25 | - private val firebaseAuth = FirebaseAuth.getInstance() | ||
26 | - | ||
27 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
28 | - super.onCreate(savedInstanceState) | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - //onboarding start | ||
33 | - | ||
34 | - //onboarding end | ||
35 | - setContentView(R.layout.activity_main) | ||
36 | - | ||
37 | - | ||
38 | - emailSigninBtn.setOnClickListener{ | ||
39 | - loginEmail() | ||
40 | - | ||
41 | - } | ||
42 | - | ||
43 | - emailSignupBtn.setOnClickListener { | ||
44 | - var intent = Intent(this, SignUpActivity::class.java) | ||
45 | - startActivity(intent) | ||
46 | - } | ||
47 | - | ||
48 | - } | ||
49 | - | ||
50 | - private fun loginEmail(){ | ||
51 | - firebaseAuth!!.signInWithEmailAndPassword(edit_email.text.toString(), edit_password.text.toString()) | ||
52 | - .addOnCompleteListener(this) { | ||
53 | - if (it.isSuccessful) { | ||
54 | - // Sign in success, update UI with the signed-in user's information | ||
55 | - Toast.makeText(this, "signInWithEmail success.",Toast.LENGTH_SHORT).show() | ||
56 | - val user = firebaseAuth?.currentUser | ||
57 | - | ||
58 | - if (user!=null){ | ||
59 | - var intent = Intent(this, SignInActivity::class.java) | ||
60 | - startActivity(intent) | ||
61 | - | ||
62 | - } | ||
63 | - | ||
64 | - | ||
65 | - } else { | ||
66 | - // If sign in fails, display a message to the user. | ||
67 | - Toast.makeText(this, "signInWithEmail failed.",Toast.LENGTH_SHORT).show() | ||
68 | - | ||
69 | - } | ||
70 | - } | ||
71 | - } | ||
72 | - | ||
73 | - | ||
74 | - | ||
75 | - | ||
76 | - | ||
77 | - | ||
78 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.content.Intent | ||
5 | -import android.content.SharedPreferences | ||
6 | -import android.view.LayoutInflater | ||
7 | -import android.view.View | ||
8 | -import android.view.ViewGroup | ||
9 | -import android.widget.Toast | ||
10 | -import androidx.recyclerview.widget.RecyclerView | ||
11 | -import kotlinx.android.synthetic.main.item_policy.view.* | ||
12 | -import kotlinx.android.synthetic.main.item_policyfield.view.* | ||
13 | - | ||
14 | -class PolicyAdapter(private val items: ArrayList<PolicyItem>) : | ||
15 | - RecyclerView.Adapter<PolicyAdapter.ViewHolder>() { | ||
16 | - | ||
17 | - override fun getItemCount() = items.size | ||
18 | - | ||
19 | - override fun onBindViewHolder(holder: PolicyAdapter.ViewHolder, position: Int) { | ||
20 | - val item = items[position] | ||
21 | - | ||
22 | - holder.apply { | ||
23 | - bind(item) | ||
24 | - itemView.tag = item | ||
25 | - } | ||
26 | - } | ||
27 | - | ||
28 | - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): | ||
29 | - PolicyAdapter.ViewHolder { | ||
30 | - val inflatedView = LayoutInflater.from(parent.context) | ||
31 | - .inflate(R.layout.item_policy, parent, false) | ||
32 | - return PolicyAdapter.ViewHolder(inflatedView) | ||
33 | - } | ||
34 | - | ||
35 | - class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { | ||
36 | - | ||
37 | - private var view: View = v | ||
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 | - | ||
46 | - fun bind(item: PolicyItem) { | ||
47 | - view.policyImage.setImageDrawable(item.policyItemImage) | ||
48 | - view.policyDday.text = item.policyItemDday | ||
49 | - view.policyHost.text = item.policyItemHost | ||
50 | - view.policyTitle.text = item.policyItemTitle | ||
51 | - view.policyScore.rating= item.policyItemScore | ||
52 | - view.policyFavor.text=item.policyItemFavor | ||
53 | - | ||
54 | - | ||
55 | - if(item.policyItemTitle in sepstrset){ | ||
56 | - view.policyFavor.isChecked=true | ||
57 | - } | ||
58 | - else{ | ||
59 | - | ||
60 | - } | ||
61 | - view.setOnClickListener{ | ||
62 | - | ||
63 | - val intent=Intent(view.context, DetailActivity::class.java) | ||
64 | - //putExtraStart | ||
65 | - intent.putExtra("key",item.policyItemTitle) | ||
66 | - //putExtraEnd | ||
67 | - view.context.startActivity(intent) | ||
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 | - } | ||
91 | - } | ||
92 | - } | ||
93 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import android.view.LayoutInflater | ||
5 | -import android.view.View | ||
6 | -import android.view.ViewGroup | ||
7 | -import android.widget.Toast | ||
8 | -import androidx.recyclerview.widget.RecyclerView | ||
9 | -import kotlinx.android.synthetic.main.item_policyfield.view.* | ||
10 | - | ||
11 | -class PolicyFieldAdapter(private val items: ArrayList<PolicyFieldItem>) : | ||
12 | - RecyclerView.Adapter<PolicyFieldAdapter.ViewHolder>() { | ||
13 | - | ||
14 | - override fun getItemCount() = items.size | ||
15 | - | ||
16 | - override fun onBindViewHolder(holder: PolicyFieldAdapter.ViewHolder, position: Int) { | ||
17 | - val item = items[position] | ||
18 | - | ||
19 | - holder.apply { | ||
20 | - bind(item) | ||
21 | - itemView.tag = item | ||
22 | - } | ||
23 | - } | ||
24 | - | ||
25 | - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): | ||
26 | - PolicyFieldAdapter.ViewHolder { | ||
27 | - val inflatedView = LayoutInflater.from(parent.context) | ||
28 | - .inflate(R.layout.item_policyfield, parent, false) | ||
29 | - return PolicyFieldAdapter.ViewHolder(inflatedView) | ||
30 | - } | ||
31 | - | ||
32 | - class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { | ||
33 | - | ||
34 | - private var view: View = v | ||
35 | - | ||
36 | - fun bind(item: PolicyFieldItem) { | ||
37 | - view.fieldIcon.setImageDrawable(item.policyFieldItemImage) | ||
38 | - view.fieldIconText.text = item.policyFieldItemText | ||
39 | - view.setOnClickListener{ | ||
40 | - | ||
41 | - val intent=Intent(view.context, RecommendActivity::class.java) | ||
42 | - //putExtraStart | ||
43 | - intent.putExtra("key",item.policyFieldItemText) | ||
44 | - //putExtraEnd | ||
45 | - view.context.startActivity(intent) | ||
46 | - } | ||
47 | - } | ||
48 | - } | ||
49 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.graphics.drawable.Drawable | ||
4 | - | ||
5 | -class PolicyItem(val policyItemImage: Drawable, | ||
6 | - val policyItemDday: String, | ||
7 | - val policyItemHost: String, | ||
8 | - val policyItemTitle: String, | ||
9 | - val policyItemScore: Float, | ||
10 | - val policyItemFavor: String) { | ||
11 | - | ||
12 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.app.Activity | ||
4 | -import android.content.Context | ||
5 | -import android.content.Intent | ||
6 | -import android.content.SharedPreferences | ||
7 | -import android.os.Bundle | ||
8 | -import android.util.Half.toFloat | ||
9 | -import android.view.Menu | ||
10 | -import android.view.MenuItem | ||
11 | -import android.widget.Toast | ||
12 | -import androidx.appcompat.app.ActionBar | ||
13 | -import androidx.appcompat.app.AppCompatActivity | ||
14 | -import androidx.core.content.ContextCompat | ||
15 | -import androidx.core.content.ContextCompat.startActivity | ||
16 | -import androidx.viewpager.widget.ViewPager | ||
17 | -import com.google.android.material.bottomnavigation.BottomNavigationView | ||
18 | -import com.google.android.material.snackbar.Snackbar | ||
19 | -import com.google.firebase.database.DataSnapshot | ||
20 | -import com.google.firebase.database.DatabaseError | ||
21 | -import com.google.firebase.database.FirebaseDatabase | ||
22 | -import com.google.firebase.database.ValueEventListener | ||
23 | -import kotlinx.android.synthetic.main.activity_recommend.* | ||
24 | -import kotlinx.android.synthetic.main.activity_signin.* | ||
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.* | ||
28 | -import kotlinx.android.synthetic.main.search.* | ||
29 | - | ||
30 | -data class MemoItemRecom( | ||
31 | - val Target : String = "", | ||
32 | - val Policy : String = "", | ||
33 | - val Content : String = "", | ||
34 | - val Link : String = "" | ||
35 | -) | ||
36 | - | ||
37 | -class RecommendActivity : AppCompatActivity() { | ||
38 | - | ||
39 | - ////bottom navigation view operation start 1 | ||
40 | - lateinit var bottomBar: ActionBar | ||
41 | - ////bottom navigation view operation end 1 | ||
42 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
43 | - super.onCreate(savedInstanceState) | ||
44 | - setContentView(R.layout.activity_recommend) | ||
45 | - | ||
46 | - val policyList = ArrayList<PolicyItem>() | ||
47 | - var recomdatabase = FirebaseDatabase.getInstance().reference | ||
48 | - | ||
49 | - if (intent.hasExtra("key")) { | ||
50 | - //textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임 | ||
51 | - | ||
52 | - recomdatabase.orderByChild("Policy").startAt(intent.getStringExtra("key")).endAt(intent.getStringExtra("key")+"\uf8ff").addListenerForSingleValueEvent(object : | ||
53 | - ValueEventListener { | ||
54 | - override fun onCancelled(p0: DatabaseError) { | ||
55 | - Toast.makeText(this@RecommendActivity, "실패부분", Toast.LENGTH_SHORT).show() | ||
56 | - } | ||
57 | - override fun onDataChange(dataSnapshot: DataSnapshot) { | ||
58 | - for (memoSnapshot in dataSnapshot.children){ | ||
59 | - val memo = memoSnapshot.getValue(MemoItemRecom::class.java) | ||
60 | - | ||
61 | - policyList.add( | ||
62 | - PolicyItem( | ||
63 | - ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!, | ||
64 | - memo!!.Policy, | ||
65 | - memo!!.Policy, | ||
66 | - memo!!.Policy, | ||
67 | - 4.toFloat(), | ||
68 | - "" | ||
69 | - ) | ||
70 | - ) | ||
71 | - } | ||
72 | - val adapter = PolicyAdapter(policyList) | ||
73 | - policyRecyclerView.adapter = adapter | ||
74 | - } | ||
75 | - }) | ||
76 | - | ||
77 | - } else { | ||
78 | - Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show() | ||
79 | - | ||
80 | - recomdatabase.orderByChild("Policy").startAt(intent.getStringExtra("\uf8ff")).addListenerForSingleValueEvent(object : | ||
81 | - ValueEventListener { | ||
82 | - override fun onCancelled(p0: DatabaseError) { | ||
83 | - Toast.makeText(this@RecommendActivity, "실패부분", Toast.LENGTH_SHORT).show() | ||
84 | - } | ||
85 | - override fun onDataChange(dataSnapshot: DataSnapshot) { | ||
86 | - for (memoSnapshot in dataSnapshot.children){ | ||
87 | - val memo = memoSnapshot.getValue(MemoItemRecom::class.java) | ||
88 | - | ||
89 | - policyList.add( | ||
90 | - PolicyItem( | ||
91 | - ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!, | ||
92 | - memo!!.Policy, | ||
93 | - memo!!.Policy, | ||
94 | - memo!!.Policy, | ||
95 | - 4.toFloat(), | ||
96 | - "" | ||
97 | - | ||
98 | - ) | ||
99 | - ) | ||
100 | - } | ||
101 | - val adapter = PolicyAdapter(policyList) | ||
102 | - policyRecyclerView.adapter = adapter | ||
103 | - } | ||
104 | - }) | ||
105 | - } | ||
106 | - // 1. 툴바 사용 설정 | ||
107 | - setSupportActionBar(toolbar) | ||
108 | - // 2. 툴바 왼쪽 버튼 설정 | ||
109 | - supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true | ||
110 | - supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정 | ||
111 | - supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기 | ||
112 | - ////bottom navigation view operation start 2 | ||
113 | - bottomBar=supportActionBar!! | ||
114 | - val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) | ||
115 | - bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) | ||
116 | - ////bottom navigation view operation end 2 | ||
117 | - } | ||
118 | - // 3.툴바 메뉴 버튼을 설정 | ||
119 | - override fun onCreateOptionsMenu(menu: Menu?): Boolean { | ||
120 | - menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정 | ||
121 | - return true | ||
122 | - } | ||
123 | - // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백 | ||
124 | - override fun onOptionsItemSelected(item: MenuItem?): Boolean { | ||
125 | - // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다. | ||
126 | - when(item!!.itemId){ | ||
127 | - android.R.id.home->{ // 메뉴 버튼 | ||
128 | - Snackbar.make(toolbar,"Menu pressed",Snackbar.LENGTH_SHORT).show() | ||
129 | - } | ||
130 | - R.id.menu_search->{ // 검색 버튼 | ||
131 | - val search_Intent = Intent(this, SearchActivity::class.java) | ||
132 | - startActivity(search_Intent) | ||
133 | - //Snackbar.make(toolbar,"Search menu pressed",Snackbar.LENGTH_SHORT).show() | ||
134 | - } | ||
135 | - } | ||
136 | - return super.onOptionsItemSelected(item) | ||
137 | - } | ||
138 | - | ||
139 | - //bottom navigation view operation start 3 | ||
140 | - private val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener{item-> | ||
141 | - when (item.itemId){ | ||
142 | - | ||
143 | - R.id.bottomHome ->{ | ||
144 | - val intent = Intent(this, SignInActivity::class.java) | ||
145 | - startActivity(intent) | ||
146 | - return@OnNavigationItemSelectedListener true | ||
147 | - } | ||
148 | - R.id.bottomRecommend ->{ | ||
149 | - val intent = Intent(this, RecommendActivity::class.java) | ||
150 | - startActivity(intent) | ||
151 | - return@OnNavigationItemSelectedListener true | ||
152 | - } | ||
153 | - R.id.bottomFavorites ->{ | ||
154 | - val intent = Intent(this, FavoritesActivity::class.java) | ||
155 | - startActivity(intent) | ||
156 | - return@OnNavigationItemSelectedListener true | ||
157 | - } | ||
158 | - R.id.bottomInfo ->{ | ||
159 | - val intent = Intent(this, InfoActivity::class.java) | ||
160 | - startActivity(intent) | ||
161 | - return@OnNavigationItemSelectedListener true | ||
162 | - } | ||
163 | - | ||
164 | - | ||
165 | - } | ||
166 | - false | ||
167 | - } | ||
168 | -//bottom navigation view operation end 3 | ||
169 | - | ||
170 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.os.Bundle | ||
5 | -import androidx.appcompat.app.AppCompatActivity | ||
6 | -//import androidx.appcompat.widget.SearchView | ||
7 | -import androidx.core.app.ComponentActivity.ExtraData | ||
8 | -import androidx.core.content.ContextCompat.getSystemService | ||
9 | -import android.icu.lang.UCharacter.GraphemeClusterBreak.T | ||
10 | -import android.view.View | ||
11 | -import android.content.Intent | ||
12 | -import android.util.Log | ||
13 | -import android.view.inputmethod.InputMethodManager | ||
14 | -import android.widget.* | ||
15 | -import androidx.core.content.ContextCompat | ||
16 | -import com.google.firebase.database.* | ||
17 | -import com.google.firebase.database.DatabaseReference | ||
18 | -import com.google.firebase.database.FirebaseDatabase | ||
19 | -import kotlinx.android.synthetic.main.search.* | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | -data class MemoItem( | ||
24 | - val Target : String = "", | ||
25 | - val Policy : String = "", | ||
26 | - val Content : String = "", | ||
27 | - val Link : String = "" | ||
28 | -) | ||
29 | - | ||
30 | -var database = FirebaseDatabase.getInstance().reference | ||
31 | - | ||
32 | -class SearchActivity : AppCompatActivity() { | ||
33 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
34 | - super.onCreate(savedInstanceState) | ||
35 | - setContentView(R.layout.search) | ||
36 | - | ||
37 | - val searchList = ArrayList<SearchItem>() | ||
38 | - val no_search : ImageView = findViewById(R.id.no_matching) // 노서치이미지 | ||
39 | - | ||
40 | - val searchView: SearchView | ||
41 | - searchView = findViewById(R.id.searchForm) | ||
42 | - //searchView.onActionViewExpanded(); //new Added line | ||
43 | - searchView.setIconifiedByDefault(false) | ||
44 | - | ||
45 | - fun CloseKeyboard() | ||
46 | - { | ||
47 | - var view = this.currentFocus | ||
48 | - | ||
49 | - if(view != null) | ||
50 | - { | ||
51 | - val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager | ||
52 | - inputMethodManager.hideSoftInputFromWindow(view.windowToken, 0) | ||
53 | - } | ||
54 | - } | ||
55 | - | ||
56 | - searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener { | ||
57 | - override fun onQueryTextSubmit(query: String): Boolean { | ||
58 | - // 검색 버튼이 눌러졌을 때 이벤트 처리 | ||
59 | - val layout : LinearLayout = findViewById(R.id.hashtag_linear) | ||
60 | - layout.setVisibility(View.GONE) | ||
61 | - | ||
62 | - CloseKeyboard() | ||
63 | - database.orderByChild("Policy").startAt("$query").endAt("$query"+"\uf8ff").addListenerForSingleValueEvent(object : ValueEventListener { | ||
64 | - override fun onCancelled(p0: DatabaseError) { | ||
65 | - Toast.makeText(this@SearchActivity, "실패부분 : $query", Toast.LENGTH_SHORT).show() | ||
66 | - } | ||
67 | - override fun onDataChange(dataSnapshot: DataSnapshot) { | ||
68 | - if (dataSnapshot.exists() == false){ // 값 없을 때 | ||
69 | - no_search.setVisibility(View.VISIBLE) | ||
70 | - } | ||
71 | - else { | ||
72 | - no_search.setVisibility(View.GONE) | ||
73 | - } | ||
74 | - | ||
75 | - for (memoSnapshot in dataSnapshot.children){ | ||
76 | - val memo = memoSnapshot.getValue(MemoItem::class.java) | ||
77 | - | ||
78 | - searchList.add( | ||
79 | - SearchItem( | ||
80 | - ContextCompat.getDrawable(this@SearchActivity, R.drawable.image01)!!, memo!!.Policy | ||
81 | - ) | ||
82 | - ) | ||
83 | - } | ||
84 | - val adapter=SearchAdapter(searchList) | ||
85 | - searchRecyclerView.adapter=adapter | ||
86 | - } | ||
87 | - }) | ||
88 | - searchList.clear() | ||
89 | - | ||
90 | - return true | ||
91 | - } | ||
92 | - | ||
93 | - | ||
94 | - | ||
95 | - override fun onQueryTextChange(newText: String): Boolean { | ||
96 | - // 검색어가 변경되었을 때 이벤트 처리 | ||
97 | - return false | ||
98 | - } | ||
99 | - }) | ||
100 | - } | ||
101 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import android.view.LayoutInflater | ||
5 | -import android.view.View | ||
6 | -import android.view.ViewGroup | ||
7 | -import androidx.recyclerview.widget.RecyclerView | ||
8 | -import kotlinx.android.synthetic.main.item_search.view.* | ||
9 | - | ||
10 | -class SearchAdapter(private val items: ArrayList<SearchItem>) : | ||
11 | - RecyclerView.Adapter<SearchAdapter.ViewHolder>() { | ||
12 | - | ||
13 | - override fun getItemCount() = items.size | ||
14 | - | ||
15 | - override fun onBindViewHolder(holder: SearchAdapter.ViewHolder, position: Int) { | ||
16 | - val item = items[position] | ||
17 | - | ||
18 | - holder.apply { | ||
19 | - bind(item) | ||
20 | - itemView.tag = item | ||
21 | - } | ||
22 | - } | ||
23 | - | ||
24 | - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): | ||
25 | - SearchAdapter.ViewHolder { | ||
26 | - val inflatedView = LayoutInflater.from(parent.context) | ||
27 | - .inflate(R.layout.item_search, parent, false) | ||
28 | - return SearchAdapter.ViewHolder(inflatedView) | ||
29 | - } | ||
30 | - | ||
31 | - class ViewHolder(v: View) : RecyclerView.ViewHolder(v) { | ||
32 | - | ||
33 | - private var view: View = v | ||
34 | - | ||
35 | - fun bind(item: SearchItem) { | ||
36 | - view.searchIcon.setImageDrawable(item.searchItemImage) | ||
37 | - view.searchIconText.text = item.searchItemText | ||
38 | - view.setOnClickListener{ | ||
39 | - | ||
40 | - val intent=Intent(view.context, DetailActivity::class.java) | ||
41 | - intent.putExtra("key",item.searchItemText) | ||
42 | - view.context.startActivity(intent) | ||
43 | - } | ||
44 | - } | ||
45 | - } | ||
46 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import androidx.appcompat.app.AppCompatActivity | ||
4 | -import android.os.Bundle | ||
5 | -import android.util.Log | ||
6 | -import android.widget.EditText | ||
7 | -import android.widget.Toast | ||
8 | -import com.google.firebase.messaging.FirebaseMessaging | ||
9 | -import kotlinx.android.synthetic.main.activity_setting.* | ||
10 | - | ||
11 | -class SettingActivity : AppCompatActivity() { | ||
12 | - | ||
13 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
14 | - super.onCreate(savedInstanceState) | ||
15 | - setContentView(R.layout.activity_setting) | ||
16 | - | ||
17 | - subscribeButton.setOnClickListener { | ||
18 | - var editTextHello = findViewById(R.id.editText2) as EditText | ||
19 | - Log.d(TAG, "Subscribing to weather topic") | ||
20 | - // [START subscribe_topics] | ||
21 | - Toast.makeText(this, editTextHello.text.toString(), Toast.LENGTH_SHORT).show() | ||
22 | - FirebaseMessaging.getInstance().subscribeToTopic(editTextHello.text.toString()) | ||
23 | - .addOnCompleteListener { task -> | ||
24 | - var msg = getString(R.string.msg_subscribed) | ||
25 | - if (!task.isSuccessful) { | ||
26 | - msg = getString(R.string.msg_subscribe_failed) | ||
27 | - } | ||
28 | - Log.d(TAG, msg) | ||
29 | - Toast.makeText(baseContext, msg, Toast.LENGTH_SHORT).show() | ||
30 | - } | ||
31 | - // [END subscribe_topics] | ||
32 | - } | ||
33 | - | ||
34 | - } | ||
35 | - companion object { | ||
36 | - | ||
37 | - private const val TAG = "SettingActivity" | ||
38 | - } | ||
39 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import android.os.Bundle | ||
5 | -import android.view.Menu | ||
6 | -import android.view.MenuItem | ||
7 | -import android.widget.Toast | ||
8 | -import androidx.appcompat.app.ActionBar | ||
9 | -import androidx.appcompat.app.AppCompatActivity | ||
10 | -import androidx.core.content.ContextCompat | ||
11 | -import androidx.viewpager.widget.ViewPager | ||
12 | -import com.google.android.material.bottomnavigation.BottomNavigationView | ||
13 | -import com.google.android.material.snackbar.Snackbar | ||
14 | -import kotlinx.android.synthetic.main.activity_signin.* | ||
15 | - | ||
16 | -class SignInActivity : AppCompatActivity() { | ||
17 | - | ||
18 | - internal lateinit var viewpager : ViewPager | ||
19 | - ////bottom navigation view operation start 1 | ||
20 | - lateinit var bottomBar: ActionBar | ||
21 | - ////bottom navigation view operation end 1 | ||
22 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
23 | - super.onCreate(savedInstanceState) | ||
24 | - setContentView(R.layout.activity_signin) | ||
25 | - | ||
26 | - val policyFieldList = ArrayList<PolicyFieldItem>() | ||
27 | - | ||
28 | - policyFieldList.add( | ||
29 | - PolicyFieldItem( | ||
30 | - ContextCompat.getDrawable(this, R.drawable.kyoyook_icon)!!, | ||
31 | - getString(R.string.title01) | ||
32 | - ) | ||
33 | - ) | ||
34 | - policyFieldList.add( | ||
35 | - PolicyFieldItem( | ||
36 | - ContextCompat.getDrawable(this, R.drawable.koyong_icon)!!, | ||
37 | - getString(R.string.title02) | ||
38 | - ) | ||
39 | - ) | ||
40 | - policyFieldList.add( | ||
41 | - PolicyFieldItem( | ||
42 | - ContextCompat.getDrawable(this, R.drawable.joogeo_icon)!!, | ||
43 | - getString(R.string.title03) | ||
44 | - ) | ||
45 | - ) | ||
46 | - policyFieldList.add( | ||
47 | - PolicyFieldItem( | ||
48 | - ContextCompat.getDrawable(this, R.drawable.health_icon)!!, | ||
49 | - getString(R.string.title04) | ||
50 | - ) | ||
51 | - ) | ||
52 | - policyFieldList.add( | ||
53 | - PolicyFieldItem( | ||
54 | - ContextCompat.getDrawable(this, R.drawable.seomin_icon)!!, | ||
55 | - getString(R.string.title05) | ||
56 | - ) | ||
57 | - ) | ||
58 | - policyFieldList.add( | ||
59 | - PolicyFieldItem( | ||
60 | - ContextCompat.getDrawable(this, R.drawable.moonhwa_icon)!!, | ||
61 | - getString(R.string.title06) | ||
62 | - ) | ||
63 | - ) | ||
64 | - | ||
65 | - | ||
66 | - val adapter = PolicyFieldAdapter(policyFieldList) | ||
67 | - policyFieldRecyclerView.adapter = adapter | ||
68 | - | ||
69 | - viewpager = findViewById(R.id.welcomeViewPager) as ViewPager | ||
70 | - val viewpageradapter = ViewPagerAdapter(this) | ||
71 | - viewpager.adapter = viewpageradapter | ||
72 | - | ||
73 | - // 1. 툴바 사용 설정 | ||
74 | - setSupportActionBar(toolbar) | ||
75 | - | ||
76 | - // 2. 툴바 왼쪽 버튼 설정 | ||
77 | - supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true | ||
78 | - supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정 | ||
79 | - supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기 | ||
80 | - | ||
81 | - ////bottom navigation view operation start 2 | ||
82 | - bottomBar=supportActionBar!! | ||
83 | - val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation) | ||
84 | - bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener) | ||
85 | - ////bottom navigation view operation end 2 | ||
86 | - | ||
87 | - } | ||
88 | - // 3.툴바 메뉴 버튼을 설정 | ||
89 | - override fun onCreateOptionsMenu(menu: Menu?): Boolean { | ||
90 | - menuInflater.inflate(R.menu.main_menu, menu) // main_menu 메뉴를 toolbar 메뉴 버튼으로 설정 | ||
91 | - return true | ||
92 | - } | ||
93 | - | ||
94 | - var back_pressed: Long = 0 // 뒤로가기 종료 | ||
95 | - | ||
96 | - override fun onBackPressed() { | ||
97 | - if (back_pressed + 2000 > System.currentTimeMillis()) { | ||
98 | - finishAffinity() | ||
99 | - System.runFinalization() | ||
100 | - System.exit(0) | ||
101 | - } | ||
102 | - //super.onBackPressed() | ||
103 | - else | ||
104 | - Toast.makeText(getBaseContext(), "\'뒤로\' 버튼을 한번 더 누르시면 종료됩니다.", Toast.LENGTH_SHORT).show() | ||
105 | - back_pressed = System.currentTimeMillis() | ||
106 | - } | ||
107 | - | ||
108 | - // 4.툴바 메뉴 버튼이 클릭 됐을 때 콜백 | ||
109 | - override fun onOptionsItemSelected(item: MenuItem?): Boolean { | ||
110 | - // 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다. | ||
111 | - when(item!!.itemId){ | ||
112 | - android.R.id.home->{ // 메뉴 버튼 | ||
113 | - Snackbar.make(toolbar,"Menu pressed",Snackbar.LENGTH_SHORT).show() | ||
114 | - } | ||
115 | - R.id.menu_search->{ // 검색 버튼 | ||
116 | - val search_Intent = Intent(this, SearchActivity::class.java) | ||
117 | - startActivity(search_Intent) | ||
118 | - //Snackbar.make(toolbar,"Search menu pressed",Snackbar.LENGTH_SHORT).show() | ||
119 | - } | ||
120 | - } | ||
121 | - return super.onOptionsItemSelected(item) | ||
122 | - } | ||
123 | - | ||
124 | - //bottom navigation view operation start 3 | ||
125 | - private val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener{item-> | ||
126 | - when (item.itemId){ | ||
127 | - | ||
128 | - R.id.bottomHome ->{ | ||
129 | - val intent = Intent(this, SignInActivity::class.java) | ||
130 | - startActivity(intent) | ||
131 | - return@OnNavigationItemSelectedListener true | ||
132 | - } | ||
133 | - R.id.bottomRecommend ->{ | ||
134 | - val intent = Intent(this, RecommendActivity::class.java) | ||
135 | - startActivity(intent) | ||
136 | - return@OnNavigationItemSelectedListener true | ||
137 | - } | ||
138 | - R.id.bottomFavorites ->{ | ||
139 | - val intent = Intent(this, FavoritesActivity::class.java) | ||
140 | - startActivity(intent) | ||
141 | - return@OnNavigationItemSelectedListener true | ||
142 | - } | ||
143 | - R.id.bottomInfo ->{ | ||
144 | - val intent = Intent(this, InfoActivity::class.java) | ||
145 | - startActivity(intent) | ||
146 | - return@OnNavigationItemSelectedListener true | ||
147 | - } | ||
148 | - | ||
149 | - | ||
150 | - } | ||
151 | - false | ||
152 | - } | ||
153 | -//bottom navigation view operation end 3 | ||
154 | - | ||
155 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import android.os.Bundle | ||
5 | -import android.widget.Toast | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | -import com.google.firebase.auth.FirebaseAuth | ||
8 | -import com.google.firebase.database.FirebaseDatabase | ||
9 | -import kotlinx.android.synthetic.main.activity_signup.* | ||
10 | -import android.util.Log | ||
11 | -import com.google.android.gms.tasks.OnCompleteListener | ||
12 | -import com.google.firebase.iid.FirebaseInstanceId | ||
13 | - | ||
14 | - | ||
15 | -data class User( | ||
16 | - val u_token : String = "", | ||
17 | - val Policy : String = "" | ||
18 | -) | ||
19 | - | ||
20 | -var cnt = 0 | ||
21 | -var tkn="" | ||
22 | -class SignUpActivity : AppCompatActivity() { | ||
23 | - | ||
24 | - private val firebaseAuth = FirebaseAuth.getInstance() | ||
25 | - val user_db = FirebaseDatabase.getInstance("https://capstone-vip-user.firebaseio.com/").reference | ||
26 | - | ||
27 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
28 | - super.onCreate(savedInstanceState) | ||
29 | - setContentView(R.layout.activity_signup) | ||
30 | - | ||
31 | - signupBtn.setOnClickListener{ | ||
32 | - sendToken() | ||
33 | - createEmail() | ||
34 | - } | ||
35 | - | ||
36 | - //pushing code start | ||
37 | - intent.extras?.let { | ||
38 | - for (key in it.keySet()) { | ||
39 | - val value = intent.extras?.get(key) | ||
40 | - Log.d(TAG, "Key: $key Value: $value") | ||
41 | - } | ||
42 | - } | ||
43 | - //pushing code end | ||
44 | - | ||
45 | - | ||
46 | - } | ||
47 | - | ||
48 | - //pushing code start 2 | ||
49 | - private fun sendToken(){ | ||
50 | - FirebaseInstanceId.getInstance().instanceId | ||
51 | - .addOnCompleteListener(OnCompleteListener { task -> | ||
52 | - if (!task.isSuccessful) { | ||
53 | - Log.w(TAG, "getInstanceId failed", task.exception) | ||
54 | - return@OnCompleteListener | ||
55 | - } | ||
56 | - | ||
57 | - // Get new Instance ID token | ||
58 | - tkn = task.result!!.token | ||
59 | - | ||
60 | - // Log and toast | ||
61 | - val msg = getString(R.string.msg_token_fmt, tkn) | ||
62 | - Log.d(TAG, msg) | ||
63 | - Toast.makeText(baseContext, msg, Toast.LENGTH_SHORT).show() | ||
64 | - }) | ||
65 | - } | ||
66 | - //pushing code end 2 | ||
67 | - | ||
68 | - private fun writeNewUser(u_id: String, u_token: String, Policy: String?) { | ||
69 | - val user = User(u_token, Policy!!) | ||
70 | - user_db.child(u_id).setValue(user)/// .setValue(user) | ||
71 | - } | ||
72 | - | ||
73 | - private fun createEmail(){ | ||
74 | - firebaseAuth!!.createUserWithEmailAndPassword(edit_email_sign_up.text.toString(), edit_password_sign_up.text.toString()) | ||
75 | - .addOnCompleteListener(this) { | ||
76 | - if (it.isSuccessful) { | ||
77 | - // Sign in success, update UI with the signed-in user's information | ||
78 | - val user = firebaseAuth?.currentUser | ||
79 | - Toast.makeText(this, "회원가입 완료!", Toast.LENGTH_SHORT).show() | ||
80 | - writeNewUser(user!!.uid, "$tkn", "NULL$cnt") | ||
81 | - cnt ++ | ||
82 | - | ||
83 | - if(user!=null){ | ||
84 | - var intent = Intent(this, InputProfilFirstOneActivity::class.java) | ||
85 | - startActivity(intent) | ||
86 | - } | ||
87 | - } else { | ||
88 | - // If sign in fails, display a message to the user. | ||
89 | - Toast.makeText(this, "회원가입 실패", Toast.LENGTH_SHORT).show() | ||
90 | - } | ||
91 | - } | ||
92 | - } | ||
93 | - | ||
94 | - //pushing code start 3 | ||
95 | - companion object { | ||
96 | - | ||
97 | - private const val TAG = "SignUpActivity" | ||
98 | - } | ||
99 | - //pushing code end 3 | ||
100 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import android.content.SharedPreferences | ||
5 | -import android.os.Bundle | ||
6 | -import androidx.appcompat.app.AppCompatActivity | ||
7 | - | ||
8 | -class SplashActivity : AppCompatActivity() { | ||
9 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
10 | - super.onCreate(savedInstanceState) | ||
11 | - | ||
12 | - val settings: SharedPreferences = getSharedPreferences("dico", MODE_PRIVATE) | ||
13 | - | ||
14 | - if(!settings.getBoolean("isFirst", false)) | ||
15 | - { | ||
16 | - val editor: SharedPreferences.Editor = settings.edit() | ||
17 | - editor.putBoolean("isFirst", true) | ||
18 | - editor.commit() | ||
19 | - val intent = Intent(this, WelcomeActivity::class.java) | ||
20 | - startActivity(intent) | ||
21 | - finish() | ||
22 | - } | ||
23 | - else | ||
24 | - { | ||
25 | - val intent = Intent(this, MainActivity::class.java) | ||
26 | - startActivity(intent) | ||
27 | - finish() | ||
28 | - } | ||
29 | - | ||
30 | - | ||
31 | - | ||
32 | - } | ||
33 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.view.LayoutInflater | ||
5 | -import android.view.View | ||
6 | -import android.view.ViewGroup | ||
7 | -import android.widget.ImageView | ||
8 | -import androidx.viewpager.widget.PagerAdapter | ||
9 | -import androidx.viewpager.widget.ViewPager | ||
10 | - | ||
11 | -class ViewPagerAdapter(private val context : Context) : PagerAdapter() { | ||
12 | - | ||
13 | - private var layoutInflater : LayoutInflater? = null | ||
14 | - val Image = arrayOf( | ||
15 | - R.drawable.temp_view_pager_image, | ||
16 | - R.drawable.temp_view_pager_image, | ||
17 | - R.drawable.temp_view_pager_image | ||
18 | - ) | ||
19 | - | ||
20 | - | ||
21 | - override fun isViewFromObject(view: View, `object`: Any): Boolean { | ||
22 | - return view === `object` | ||
23 | - } | ||
24 | - | ||
25 | - override fun getCount(): Int { | ||
26 | - return Image.size | ||
27 | - } | ||
28 | - | ||
29 | - | ||
30 | - override fun instantiateItem(container: ViewGroup, position: Int): Any { | ||
31 | - layoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater | ||
32 | - val v = layoutInflater!!.inflate(R.layout.viewpager_activity, null) | ||
33 | - val image = v.findViewById<View>(R.id.imageview) as ImageView | ||
34 | - | ||
35 | - image.setImageResource(Image[position]) | ||
36 | - val vp = container as ViewPager | ||
37 | - vp.addView(v , 0) | ||
38 | - | ||
39 | - | ||
40 | - return v | ||
41 | - | ||
42 | - } | ||
43 | - | ||
44 | - | ||
45 | - override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) { | ||
46 | - val vp = container as ViewPager | ||
47 | - val v = `object` as View | ||
48 | - vp.removeView(v) | ||
49 | - } | ||
50 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Intent | ||
4 | -import androidx.appcompat.app.AppCompatActivity | ||
5 | -import android.os.Bundle | ||
6 | -import androidx.viewpager.widget.ViewPager | ||
7 | -import kotlinx.android.synthetic.main.activity_signin.* | ||
8 | -import kotlinx.android.synthetic.main.activity_welcome.* | ||
9 | - | ||
10 | -class WelcomeActivity : AppCompatActivity() { | ||
11 | - | ||
12 | - internal lateinit var welcomeViewPager: ViewPager | ||
13 | - override fun onCreate(savedInstanceState: Bundle?) { | ||
14 | - super.onCreate(savedInstanceState) | ||
15 | - setContentView(R.layout.activity_welcome) | ||
16 | - | ||
17 | - welcomeViewPager = findViewById(R.id.welcomeViewPager) as ViewPager | ||
18 | - val viewpageradapter = WelcomeViewPagerAdapter(this) | ||
19 | - welcomeViewPager.adapter = viewpageradapter | ||
20 | - | ||
21 | - buttonGotIt.setOnClickListener{ | ||
22 | - var intent = Intent(this, MainActivity::class.java) | ||
23 | - startActivity(intent) | ||
24 | - finish() | ||
25 | - } | ||
26 | - } | ||
27 | -} |
1 | -package com.example.vip | ||
2 | - | ||
3 | -import android.content.Context | ||
4 | -import android.view.LayoutInflater | ||
5 | -import android.view.View | ||
6 | -import android.view.ViewGroup | ||
7 | -import android.widget.ImageView | ||
8 | -import androidx.viewpager.widget.PagerAdapter | ||
9 | -import androidx.viewpager.widget.ViewPager | ||
10 | - | ||
11 | -class WelcomeViewPagerAdapter(private val context : Context) : PagerAdapter() { | ||
12 | - | ||
13 | - private var layoutInflater : LayoutInflater? = null | ||
14 | - val Image = arrayOf( | ||
15 | - R.drawable.hwajilgooji1, | ||
16 | - R.drawable.hwajilgooji2, | ||
17 | - R.drawable.hwajilgooji3, | ||
18 | - R.drawable.hwajilgooji3, | ||
19 | - R.drawable.hwajilgooji3 | ||
20 | - ) | ||
21 | - | ||
22 | - | ||
23 | - override fun isViewFromObject(view: View, `object`: Any): Boolean { | ||
24 | - return view === `object` | ||
25 | - } | ||
26 | - | ||
27 | - override fun getCount(): Int { | ||
28 | - return Image.size | ||
29 | - } | ||
30 | - | ||
31 | - | ||
32 | - override fun instantiateItem(container: ViewGroup, position: Int): Any { | ||
33 | - layoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater | ||
34 | - val v = layoutInflater!!.inflate(R.layout.welcomeviewpager_activity, null) | ||
35 | - val image = v.findViewById<View>(R.id.imageview) as ImageView | ||
36 | - | ||
37 | - image.setImageResource(Image[position]) | ||
38 | - val vp = container as ViewPager | ||
39 | - vp.addView(v , 0) | ||
40 | - | ||
41 | - | ||
42 | - return v | ||
43 | - | ||
44 | - } | ||
45 | - | ||
46 | - | ||
47 | - override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) { | ||
48 | - val vp = container as ViewPager | ||
49 | - val v = `object` as View | ||
50 | - vp.removeView(v) | ||
51 | - } | ||
52 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
13.5 KB
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | - <!-- 배경 --> | ||
4 | - <item | ||
5 | - android:drawable="@color/splashfilling"/> | ||
6 | - <!-- 로고 --> | ||
7 | - <item> | ||
8 | - <bitmap | ||
9 | - android:gravity="center" | ||
10 | - android:src="@drawable/final_splash" /> | ||
11 | - </item> | ||
12 | -</layer-list> |
208 Bytes
1 | -<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | - xmlns:aapt="http://schemas.android.com/aapt" | ||
3 | - android:width="108dp" | ||
4 | - android:height="108dp" | ||
5 | - android:viewportWidth="108" | ||
6 | - android:viewportHeight="108"> | ||
7 | - <path | ||
8 | - android:fillType="evenOdd" | ||
9 | - 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" | ||
10 | - android:strokeWidth="1" | ||
11 | - android:strokeColor="#00000000"> | ||
12 | - <aapt:attr name="android:fillColor"> | ||
13 | - <gradient | ||
14 | - android:endX="78.5885" | ||
15 | - android:endY="90.9159" | ||
16 | - android:startX="48.7653" | ||
17 | - android:startY="61.0927" | ||
18 | - android:type="linear"> | ||
19 | - <item | ||
20 | - android:color="#44000000" | ||
21 | - android:offset="0.0" /> | ||
22 | - <item | ||
23 | - android:color="#00000000" | ||
24 | - android:offset="1.0" /> | ||
25 | - </gradient> | ||
26 | - </aapt:attr> | ||
27 | - </path> | ||
28 | - <path | ||
29 | - android:fillColor="#FFFFFF" | ||
30 | - android:fillType="nonZero" | ||
31 | - 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" | ||
32 | - android:strokeWidth="1" | ||
33 | - android:strokeColor="#00000000" /> | ||
34 | -</vector> |
193 KB
79.9 KB
81.1 KB
70.2 KB
111 KB
93.5 KB
103 KB
95.9 KB
173 KB
81.9 KB
480 Bytes
179 Bytes
14.5 KB
13.5 KB
130 Bytes
386 Bytes
24.5 KB
8.33 KB
235 Bytes
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | - <!-- 배경 --> | ||
4 | - <item | ||
5 | - android:drawable="@color/splashfilling"/> | ||
6 | - <!-- 로고 --> | ||
7 | - <item> | ||
8 | - <bitmap | ||
9 | - android:gravity="center" | ||
10 | - android:src="@drawable/final_splash"/> | ||
11 | - </item> | ||
12 | -</layer-list> |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:shape="rectangle"> | ||
4 | - <stroke | ||
5 | - android:width="5dp" | ||
6 | - android:color="#29ABE2" /> | ||
7 | - <corners | ||
8 | - android:bottomRightRadius="25dp" | ||
9 | - android:bottomLeftRadius="25dp" | ||
10 | - android:topLeftRadius="25dp" | ||
11 | - android:topRightRadius="25dp"/> | ||
12 | - <padding | ||
13 | - android:left="10dp" | ||
14 | - android:top="10dp" | ||
15 | - android:right="10dp" | ||
16 | - android:bottom="10dp" /> | ||
17 | - <solid | ||
18 | - android:color="#29ABE2"/> | ||
19 | -</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
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" android:drawable="@drawable/button_x" /> | ||
5 | - <item android:state_checked="true" android:drawable="@drawable/button_o" /> | ||
6 | -</selector> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:shape="rectangle"> | ||
4 | - <stroke | ||
5 | - android:width="5dp" | ||
6 | - android:color="#F4F4F4" /> | ||
7 | - <corners | ||
8 | - android:bottomRightRadius="25dp" | ||
9 | - android:bottomLeftRadius="25dp" | ||
10 | - android:topLeftRadius="25dp" | ||
11 | - android:topRightRadius="25dp"/> | ||
12 | - <padding | ||
13 | - android:left="10dp" | ||
14 | - android:top="10dp" | ||
15 | - android:right="10dp" | ||
16 | - android:bottom="10dp" /> | ||
17 | - <solid | ||
18 | - android:color="#F4F4F4"/> | ||
19 | -</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:shape="oval"> | ||
4 | - <stroke | ||
5 | - android:width="1dp" | ||
6 | - android:color="#29ABE2" /> | ||
7 | - <!-- | ||
8 | - <corners | ||
9 | - android:bottomRightRadius="25dp" | ||
10 | - android:bottomLeftRadius="25dp" | ||
11 | - android:topLeftRadius="25dp" | ||
12 | - android:topRightRadius="25dp"/> | ||
13 | - | ||
14 | - <padding | ||
15 | - android:left="10dp" | ||
16 | - android:top="10dp" | ||
17 | - android:right="10dp" | ||
18 | - android:bottom="10dp" /> | ||
19 | - --> | ||
20 | - <solid | ||
21 | - android:color="#FFFFFF"/> | ||
22 | -</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
3 | - | ||
4 | - <item | ||
5 | - android:bottom="1dp" | ||
6 | - android:left="1dp" | ||
7 | - android:right="1dp" | ||
8 | - android:top="1dp"> | ||
9 | - <shape android:shape="rectangle" > | ||
10 | - <stroke | ||
11 | - android:width="1dp" | ||
12 | - android:color="#dcdcdc" /> | ||
13 | - | ||
14 | - <solid android:color="#FFF" /> | ||
15 | - </shape> | ||
16 | - </item> | ||
17 | - | ||
18 | -</layer-list> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | - <item | ||
4 | - android:top="32dp"> | ||
5 | - <shape android:shape="line"> | ||
6 | - <stroke | ||
7 | - android:width="5dp" | ||
8 | - android:color="#29ABE2"/> | ||
9 | - </shape> | ||
10 | - </item> | ||
11 | -</layer-list> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
6.38 KB
30.3 KB
2.09 KB
292 Bytes
538 Bytes
208 Bytes
24.6 KB
66.7 KB
60.6 KB
This diff is collapsed. Click to expand it.
193 KB
79.9 KB
81.1 KB
70.2 KB
111 KB
93.5 KB
103 KB
95.9 KB
173 KB
81.9 KB
480 Bytes
179 Bytes
1.42 KB
1.83 KB
1.8 KB
14.5 KB
1.86 KB
13.5 KB
This diff is collapsed. Click to expand it.
130 Bytes
386 Bytes
This diff is collapsed. Click to expand it.
2.37 KB
24.5 KB
40.3 KB
This diff is collapsed. Click to expand it.
8.33 KB
235 Bytes
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.
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.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
2.28 KB
5.38 KB
4.34 KB
1.3 KB
2.59 KB
2.42 KB
3.56 KB
6.78 KB
6.97 KB
18.9 KB
12.5 KB
11.5 KB
20.2 KB
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.
vip/build.gradle
deleted
100644 → 0
This diff is collapsed. Click to expand it.
vip/gradle.properties
deleted
100644 → 0
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
vip/gradlew
deleted
100644 → 0
This diff is collapsed. Click to expand it.
vip/gradlew.bat
deleted
100644 → 0
This diff is collapsed. Click to expand it.
vip/settings.gradle
deleted
100644 → 0
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment