soonmyeong2

makeup design

...@@ -11,6 +11,7 @@ class AccountSettingActivity : AppCompatActivity() { ...@@ -11,6 +11,7 @@ class AccountSettingActivity : AppCompatActivity() {
11 super.onCreate(savedInstanceState) 11 super.onCreate(savedInstanceState)
12 setContentView(R.layout.activity_account_settings) 12 setContentView(R.layout.activity_account_settings)
13 13
14 + /*
14 val prof: SharedPreferences = getSharedPreferences("policy_key", Context.MODE_PRIVATE) 15 val prof: SharedPreferences = getSharedPreferences("policy_key", Context.MODE_PRIVATE)
15 val editor: SharedPreferences.Editor=prof.edit() 16 val editor: SharedPreferences.Editor=prof.edit()
16 17
...@@ -27,5 +28,7 @@ class AccountSettingActivity : AppCompatActivity() { ...@@ -27,5 +28,7 @@ class AccountSettingActivity : AppCompatActivity() {
27 editor.putString("9", "한부모가족자녀 교육비 지원") 28 editor.putString("9", "한부모가족자녀 교육비 지원")
28 editor.commit() 29 editor.commit()
29 } 30 }
31 +
32 + */
30 } 33 }
31 } 34 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -39,6 +39,7 @@ import android.view.MotionEvent ...@@ -39,6 +39,7 @@ import android.view.MotionEvent
39 data class MemoItemDetail( 39 data class MemoItemDetail(
40 val Target : String = "", 40 val Target : String = "",
41 val Policy : String = "", 41 val Policy : String = "",
42 + val Keyword : String = "",
42 val Content : String = "", 43 val Content : String = "",
43 val Link : String = "", 44 val Link : String = "",
44 val Date : String = "상시" 45 val Date : String = "상시"
...@@ -77,7 +78,7 @@ class DetailActivity : AppCompatActivity() { ...@@ -77,7 +78,7 @@ class DetailActivity : AppCompatActivity() {
77 detailDday.text=memo!!.Date 78 detailDday.text=memo!!.Date
78 detailTitle.text=memo!!.Policy 79 detailTitle.text=memo!!.Policy
79 detailScore.rating=4.toFloat() 80 detailScore.rating=4.toFloat()
80 - detailFavor.text=" [실행 부처]" 81 + detailFavor.text= " " + memo!!.Keyword
81 82
82 val web : WebView = findViewById(R.id.policy_context) 83 val web : WebView = findViewById(R.id.policy_context)
83 val summary : String = memo!!.Content 84 val summary : String = memo!!.Content
......
...@@ -31,6 +31,23 @@ class MainActivity : AppCompatActivity() { ...@@ -31,6 +31,23 @@ class MainActivity : AppCompatActivity() {
31 super.onCreate(savedInstanceState) 31 super.onCreate(savedInstanceState)
32 setContentView(R.layout.activity_main) 32 setContentView(R.layout.activity_main)
33 33
34 + /////
35 + val prof: SharedPreferences = getSharedPreferences("policy_key", Context.MODE_PRIVATE)
36 + val editor: SharedPreferences.Editor=prof.edit()
37 +
38 + editor.putString("0", "[신한금융그룹] 신한 희망사회프로젝트 위기가정 재기지원사업 2년차 사업(2019년 5월~2020년 4월)")
39 + editor.putString("1", "2020년 동계 아름드리 대학생 해외봉사단원 모집")
40 + editor.putString("2", "초록우산 어린이재단 인재양성사업 - 2020 아이리더 모집공고")
41 + editor.putString("3", "(열매나눔복지재단, 처갓집양념치킨)2019 저소득가구 창업지원사업 처갓집양념치킨 창업자 모집공고(5.31-)")
42 + editor.putString("4", "[2017년도] 예비부부교실 / 신혼부부교실 : 연간일정")
43 + editor.putString("5", "신생아지원")
44 + editor.putString("6", "성폭력피해아동청소년 전용쉼터운영지원")
45 + editor.putString("7", "국가유공자등취업지원")
46 + editor.putString("8", "결혼이민자 통번역 서비스")
47 + editor.putString("9", "한부모가족자녀 교육비 지원")
48 + editor.commit()
49 +
50 + /////
34 51
35 52
36 emailSigninBtn.setOnClickListener{ 53 emailSigninBtn.setOnClickListener{
......
...@@ -79,6 +79,8 @@ ...@@ -79,6 +79,8 @@
79 android:id="@+id/policyFavorDetail" 79 android:id="@+id/policyFavorDetail"
80 android:layout_width="wrap_content" 80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content" 81 android:layout_height="wrap_content"
82 + android:layout_weight="1"
83 + android:ellipsize="end"
82 android:layout_marginTop="5dp" 84 android:layout_marginTop="5dp"
83 android:text="TextView" /> 85 android:text="TextView" />
84 86
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
14 android:layout_width="120dp" 14 android:layout_width="120dp"
15 android:layout_height="match_parent" 15 android:layout_height="match_parent"
16 android:layout_weight="1" 16 android:layout_weight="1"
17 - android:paddingLeft="7dp" 17 + android:paddingLeft="4dp"
18 + android:paddingRight="3dp"
18 tools:srcCompat="@tools:sample/avatars" /> 19 tools:srcCompat="@tools:sample/avatars" />
19 20
20 <LinearLayout 21 <LinearLayout
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
31 32
32 <TextView 33 <TextView
33 android:id="@+id/policyDday" 34 android:id="@+id/policyDday"
34 - android:layout_width="66dp" 35 + android:layout_width="74dp"
35 android:layout_height="44dp" 36 android:layout_height="44dp"
36 android:background="@drawable/broken_rectangle" 37 android:background="@drawable/broken_rectangle"
37 android:gravity="center" 38 android:gravity="center"
......