Toggle navigation
Toggle navigation
This project
Loading...
Sign in
장연우
/
WELLO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
신기성
2019-11-18 22:21:42 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
17336849c2fd5225cf4ab76a5234a1044064346d
17336849
2 parents
6ac992e9
4d56a041
Merge branch 'master' of
http://khuhub.khu.ac.kr/2014104141/WELLO
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
vip/app/src/main/java/com/example/vip/AccountSettingActivity.kt
vip/app/src/main/java/com/example/vip/DetailActivity.kt
vip/app/src/main/java/com/example/vip/MainActivity.kt
vip/app/src/main/res/layout/activity_detail.xml
vip/app/src/main/res/layout/item_policy.xml
vip/app/src/main/java/com/example/vip/AccountSettingActivity.kt
View file @
1733684
...
...
@@ -11,6 +11,7 @@ class AccountSettingActivity : AppCompatActivity() {
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_account_settings
)
/*
val prof: SharedPreferences = getSharedPreferences("policy_key", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
...
...
@@ -27,5 +28,7 @@ class AccountSettingActivity : AppCompatActivity() {
editor.putString("9", "한부모가족자녀 교육비 지원")
editor.commit()
}
*/
}
}
\ No newline at end of file
...
...
vip/app/src/main/java/com/example/vip/DetailActivity.kt
View file @
1733684
...
...
@@ -39,6 +39,7 @@ import android.view.MotionEvent
data class
MemoItemDetail
(
val
Target
:
String
=
""
,
val
Policy
:
String
=
""
,
val
Keyword
:
String
=
""
,
val
Content
:
String
=
""
,
val
Link
:
String
=
""
,
val
Date
:
String
=
"상시"
...
...
@@ -77,7 +78,7 @@ class DetailActivity : AppCompatActivity() {
detailDday
.
text
=
memo
!!
.
Date
detailTitle
.
text
=
memo
!!
.
Policy
detailScore
.
rating
=
4
.
toFloat
()
detailFavor
.
text
=
" [실행 부처]"
detailFavor
.
text
=
" "
+
memo
!!
.
Keyword
val
web
:
WebView
=
findViewById
(
R
.
id
.
policy_context
)
val
summary
:
String
=
memo
!!
.
Content
...
...
vip/app/src/main/java/com/example/vip/MainActivity.kt
View file @
1733684
...
...
@@ -31,6 +31,23 @@ class MainActivity : AppCompatActivity() {
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_main
)
/////
val
prof
:
SharedPreferences
=
getSharedPreferences
(
"policy_key"
,
Context
.
MODE_PRIVATE
)
val
editor
:
SharedPreferences
.
Editor
=
prof
.
edit
()
editor
.
putString
(
"0"
,
"[신한금융그룹] 신한 희망사회프로젝트 위기가정 재기지원사업 2년차 사업(2019년 5월~2020년 4월)"
)
editor
.
putString
(
"1"
,
"2020년 동계 아름드리 대학생 해외봉사단원 모집"
)
editor
.
putString
(
"2"
,
"초록우산 어린이재단 인재양성사업 - 2020 아이리더 모집공고"
)
editor
.
putString
(
"3"
,
"(열매나눔복지재단, 처갓집양념치킨)2019 저소득가구 창업지원사업 처갓집양념치킨 창업자 모집공고(5.31-)"
)
editor
.
putString
(
"4"
,
"[2017년도] 예비부부교실 / 신혼부부교실 : 연간일정"
)
editor
.
putString
(
"5"
,
"신생아지원"
)
editor
.
putString
(
"6"
,
"성폭력피해아동청소년 전용쉼터운영지원"
)
editor
.
putString
(
"7"
,
"국가유공자등취업지원"
)
editor
.
putString
(
"8"
,
"결혼이민자 통번역 서비스"
)
editor
.
putString
(
"9"
,
"한부모가족자녀 교육비 지원"
)
editor
.
commit
()
/////
emailSigninBtn
.
setOnClickListener
{
...
...
vip/app/src/main/res/layout/activity_detail.xml
View file @
1733684
...
...
@@ -79,6 +79,8 @@
android:id=
"@+id/policyFavorDetail"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:ellipsize=
"end"
android:layout_marginTop=
"5dp"
android:text=
"TextView"
/>
...
...
vip/app/src/main/res/layout/item_policy.xml
View file @
1733684
...
...
@@ -14,7 +14,8 @@
android:layout_width=
"120dp"
android:layout_height=
"match_parent"
android:layout_weight=
"1"
android:paddingLeft=
"7dp"
android:paddingLeft=
"4dp"
android:paddingRight=
"3dp"
tools:srcCompat=
"@tools:sample/avatars"
/>
<LinearLayout
...
...
@@ -31,7 +32,7 @@
<TextView
android:id=
"@+id/policyDday"
android:layout_width=
"
66
dp"
android:layout_width=
"
74
dp"
android:layout_height=
"44dp"
android:background=
"@drawable/broken_rectangle"
android:gravity=
"center"
...
...
Please
register
or
login
to post a comment