soonmyeong2

add view Counter

No preview for this file type
This diff is collapsed. Click to expand it.
......@@ -20,8 +20,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "위기가정 재기지원사업, 신한금융그룹, 사회복지공동모금회, 굿네이버스, 빈곤가정 지원사업, 신한금융그룹, 사회복지공동모금회, 굿네이버스",
"Date": "D-164",
"View": 0
"Date": "2019.05.01(수)~2020.04.30(목)",
"View": 0,
"D_day": "D-164"
},{
"Value": "1",
"Policy": "2020년 동계 아름드리 대학생 해외봉사단원 모집",
......@@ -44,8 +45,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "KT&G복지재단, 동계 아름드리, 대학생 해외봉사단원 모집, 캄보디아, KT&G복지재단",
"Date": "종료",
"View": 0
"Date": "2019.09.09(월)~2019.10.01(화)",
"View": 0,
"D_day": "종료"
},{
"Value": "2",
"Policy": "초록우산 어린이재단 인재양성사업 - 2020 아이리더 모집공고",
......@@ -68,8 +70,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "초록우산어린이재단, 인재양성사업, 2020 아이리더, 모집공고, 국민기초생활수급권자, 저소득 아동, 초록우산어린이재단",
"Date": "종료",
"View": 0
"Date": "2019.10.01(화)~2019.10.31(목)",
"View": 0,
"D_day": "종료"
},{
"Value": "3",
"Policy": "(열매나눔복지재단, 처갓집양념치킨)2019 저소득가구 창업지원사업 처갓집양념치킨 창업자 모집공고(5.31-)",
......@@ -92,8 +95,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "열매나눔복지재단, 처갓집양념치킨, 저소득가구 창업지원사업, 처갓집양념치킨 창업, 열매나눔복지재단, 처갓집양념치킨",
"Date": "D-43",
"View": 0
"Date": "2019.05.31(금)~2019.12.31(화)",
"View": 0,
"D_day": "D-43"
},{
"Value": "4",
"Policy": "[2017년도] 예비부부교실 / 신혼부부교실 : 연간일정",
......@@ -116,8 +120,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "예비부부, 신혼부부",
"Date": "상시",
"View": 0
"Date": "",
"View": 0,
"D_day": "상시"
},{
"Value": "5",
"Policy": "신생아지원",
......@@ -140,8 +145,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "['지원', '건강', '선천성', '관리', '의료', '강동구', '증진', '신생아', '이상']",
"Date": "상시",
"View": 0
"Date": "",
"View": 0,
"D_day": "상시"
},{
"Value": "6",
"Policy": "성폭력피해아동청소년 전용쉼터운영지원",
......@@ -164,8 +170,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "여성가족부, 권익지원과",
"Date": "진행중",
"View": 0
"Date": "2019-03-21~",
"View": 0,
"D_day": "진행중"
},{
"Value": "7",
"Policy": "국가유공자등취업지원",
......@@ -188,8 +195,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "국가보훈처, 생활안전과",
"Date": "진행중",
"View": 0
"Date": "2019-03-21~",
"View": 0,
"D_day": "진행중"
},{
"Value": "8",
"Policy": "결혼이민자 통번역 서비스",
......@@ -212,8 +220,9 @@
"Category15": "1",
"Category16": "1",
"Keyword": "여성가족부, 다문화가족과",
"Date": "진행중",
"View": 0
"Date": "2019-02-18~",
"View": 0,
"D_day": "진행중"
},{
"Value": "9",
"Policy": "한부모가족자녀 교육비 지원",
......@@ -236,6 +245,7 @@
"Category15": "1",
"Category16": "1",
"Keyword": "교육부, 교육복지정책과",
"Date": "진행중",
"View": 0
"Date": "2019-03-12~",
"View": 0,
"D_day": "진행중"
}]
\ No newline at end of file
......
This diff could not be displayed because it is too large.
package com.example.vip
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_account_settings.*
class AccountSettingActivity : AppCompatActivity() {
......@@ -11,6 +13,11 @@ class AccountSettingActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_account_settings)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_account_setting) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
/*
val prof: SharedPreferences = getSharedPreferences("policy_key", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
......@@ -31,4 +38,30 @@ class AccountSettingActivity : AppCompatActivity() {
*/
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
\ No newline at end of file
......
......@@ -47,7 +47,9 @@ data class MemoItemFavor(
val Category13 : String = "",
val Category14 : String = "",
val Category15 : String = "",
val Category16 : String = ""
val Category16 : String = "",
val Value : String = "",
val D_day : String = ""
)
class FavoritesActivity : AppCompatActivity() {
......@@ -113,7 +115,9 @@ class FavoritesActivity : AppCompatActivity() {
memo.Category13,
memo.Category14,
memo.Category15,
memo.Category16
memo.Category16,
memo.Value,
memo.D_day
)
)
}
......
......@@ -3,6 +3,7 @@ package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_notice.*
class NoticeActivity : AppCompatActivity() {
......@@ -11,6 +12,36 @@ class NoticeActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_notice)
// 네비게이션 뷰 포커스 맞추는 코드
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_notice) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -9,12 +9,14 @@ import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import com.google.firebase.database.FirebaseDatabase
import kotlinx.android.synthetic.main.item_policy.view.*
import kotlinx.android.synthetic.main.item_policyfield.view.*
import java.time.LocalDate
import java.text.ParseException
import java.text.SimpleDateFormat
import java.time.format.DateTimeFormatter
import kotlin.math.abs
class PolicyAdapter(private val items: ArrayList<PolicyItem>) :
......@@ -75,23 +77,30 @@ class PolicyAdapter(private val items: ArrayList<PolicyItem>) :
fun date_calculate(dday : String) {
val matchResult : Sequence<MatchResult> = Regex.findAll("abcd")
return
}*/
}
*/
fun bind(item: PolicyItem) {
view.policyImage.setImageDrawable(item.policyItemImage)
if (item.policyItemDate == "") { item.policyItemDate = "상시" }
view.policyDday.text = item.policyItemDate
view.policyDday.text = item.D_day
view.policyHost.text = item.policyItemKeyword
view.policyTitle.text = item.policyItemPolicy
view.policyScore.rating= item.policyScore
view.viewCount.text = "조회수 : " + abs(item.policyItemView).toString()
if(item.policyItemPolicy in prof.getString("favorstringlist","")!!.split("@").toMutableSet()){
view.policyFavor.isChecked=true
}else{
}
else{
}
view.setOnClickListener{
val policy_db = FirebaseDatabase.getInstance().reference
policy_db.child(item.Value).child("View").setValue(item.policyItemView - 1)
val intent=Intent(view.context, DetailActivity::class.java)
//putExtraStart
intent.putExtra("key",item.policyItemPolicy)
......
......@@ -26,5 +26,7 @@ class PolicyItem(val policyItemImage: Drawable,
val policyCategory13: String,
val policyCategory14: String,
val policyCategory15: String,
val policyCategory16: String
) {}
\ No newline at end of file
val policyCategory16: String,
val Value : String,
val D_day : String
)
\ No newline at end of file
......
......@@ -4,6 +4,7 @@ import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_privacy_policy.*
class PrivacyPolicyActivity : AppCompatActivity() {
......@@ -12,6 +13,11 @@ class PrivacyPolicyActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_privacy_policy)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_privacy) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val web : WebView = findViewById(R.id.privacy)
val summary = "<Wello> 개인정보 처리방침\n" +
"\n" +
......@@ -129,4 +135,31 @@ class PrivacyPolicyActivity : AppCompatActivity() {
web.loadData(summary, "text/html", "UTF-8")
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -3,6 +3,7 @@ package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_push_alarm.*
class PushInfoActivity : AppCompatActivity() {
......@@ -12,5 +13,35 @@ class PushInfoActivity : AppCompatActivity() {
setContentView(R.layout.activity_push_alarm)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_push) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -4,6 +4,7 @@ import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_questions.*
var QnAList = arrayListOf<QnAItem>()
......@@ -17,5 +18,34 @@ class QuestionsActivity : AppCompatActivity() {
qna_rv.adapter = QnAAdapter()
qna_rv.layoutManager = LinearLayoutManager(this)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_qna) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -57,7 +57,9 @@ data class MemoItemRecom(
val Category13 : String = "",
val Category14 : String = "",
val Category15 : String = "",
val Category16 : String = ""
val Category16 : String = "",
val Value : String = "",
val D_day : String = ""
)
class RecommendActivity : AppCompatActivity() {
......@@ -116,7 +118,9 @@ class RecommendActivity : AppCompatActivity() {
memo.Category13,
memo.Category14,
memo.Category15,
memo.Category16
memo.Category16,
memo.Value,
memo.D_day
)
)
}
......@@ -163,7 +167,9 @@ class RecommendActivity : AppCompatActivity() {
memo!!.Category13,
memo!!.Category14,
memo!!.Category15,
memo!!.Category16
memo!!.Category16,
memo!!.Value,
memo!!.D_day
)
)
}
......
......@@ -3,6 +3,7 @@ package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_settings_in_form.*
class SettingsInForm : AppCompatActivity() {
......@@ -11,6 +12,10 @@ class SettingsInForm : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_settings_in_form)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_setting) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
accountBtn.setOnClickListener {
var intent = Intent(this, AccountSettingActivity::class.java)
startActivity(intent)
......@@ -26,4 +31,31 @@ class SettingsInForm : AppCompatActivity() {
startActivity(intent)
}
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -4,6 +4,7 @@ import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_terms_detail.*
class TermsDetailActivity : AppCompatActivity() {
......@@ -12,6 +13,11 @@ class TermsDetailActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_terms_detail)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_terms_detail) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val web : WebView = findViewById(R.id.use_terms)
val summary = "전자상거래(인터넷사이버몰) 표준약관\n" +
"\n" +
......@@ -263,6 +269,31 @@ class TermsDetailActivity : AppCompatActivity() {
"\n" +
"\n"
web.loadData(summary, "text/html", "UTF-8")
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -3,6 +3,7 @@ package com.example.vip
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_terms_of_use.*
class TermsOfUserActivity : AppCompatActivity() {
......@@ -11,6 +12,10 @@ class TermsOfUserActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_terms_of_use)
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation_terms_of_use) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
terms_use.setOnClickListener{
var intent = Intent(this, TermsDetailActivity::class.java)
startActivity(intent)
......@@ -20,4 +25,31 @@ class TermsOfUserActivity : AppCompatActivity() {
startActivity(intent)
}
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
}
false
}
}
......
......@@ -87,7 +87,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_account_setting"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -154,7 +154,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_notice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -40,7 +40,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_privacy"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -80,7 +80,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_push"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -80,7 +80,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_qna"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -124,7 +124,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_setting"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -40,7 +40,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_terms_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -100,7 +100,7 @@
</LinearLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation_terms_of_use"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
......
......@@ -76,26 +76,43 @@
android:layout_height="10dp"
android:layout_marginLeft="11dp"
android:layout_marginRight="10dp"
android:layout_weight="1"
android:layout_weight="1.2"
android:ellipsize="end"
android:gravity="left|center_vertical"
android:gravity="left"
android:maxLines="1"
android:paddingTop="4dp"
android:text="TextView"
android:textColor="#000"
android:textSize="18dp" />
<RatingBar
android:id="@+id/policyScore"
android:layout_width="240dp"
android:layout_height="22dp"
android:layout_gravity="center"
android:layout_weight="1"
android:max="5"
android:rating="3.5"
android:scaleX=".5"
android:scaleY="0.5"
android:transformPivotX="0dp"
android:transformPivotY="0dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.7"
android:orientation="horizontal">
<RatingBar
android:id="@+id/policyScore"
style="?android:attr/ratingBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:isIndicator="true"
android:numStars="5"
android:rating="3.5"
android:stepSize="0.1" />
<TextView
android:id="@+id/viewCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center|right"
android:paddingRight="28dp"
android:text="TextView"
android:textColor="#C04A4A4A" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:background="@drawable/edgemaking">
android:background="@drawable/round_ractagle_solid"
android:orientation="horizontal">
<ImageView
......@@ -14,7 +14,8 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="0"
android:adjustViewBounds="true" />
android:adjustViewBounds="true"
android:padding="3dp" />
<TextView
android:id="@+id/searchIconText"
......@@ -22,7 +23,12 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:gravity="center"
android:ellipsize="end"
android:gravity="center_horizontal|left|center_vertical"
android:maxLines="1"
android:paddingLeft="4dp"
android:paddingRight="7dp"
android:text="dfefef"
android:textSize="20sp" />
</LinearLayout>
\ No newline at end of file
......
<resources>
<string name="app_name">WELLO</string>
<string name="title01">교육</string>
<string name="title02">고용</string>
<string name="title03">주거</string>
......