soonmyeong2

bottomnavi correct working if change activicy

No preview for this file type

298 Bytes

......@@ -17,7 +17,9 @@ import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.FirebaseDatabase
import com.google.firebase.database.ValueEventListener
import kotlinx.android.synthetic.main.activity_favorites.*
import kotlinx.android.synthetic.main.activity_recommend.*
import kotlinx.android.synthetic.main.activity_recommend.policyRecyclerView
import kotlinx.android.synthetic.main.activity_recommend.toolbar
import kotlinx.android.synthetic.main.activity_signin.*
......@@ -37,6 +39,12 @@ class FavoritesActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_favorites)
// 네비게이션 뷰 포커스 맞추는 코드
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation3) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomFavorites
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val policyList = ArrayList<PolicyItem>()
var favordatabase = FirebaseDatabase.getInstance().reference
......@@ -67,41 +75,39 @@ class FavoritesActivity : AppCompatActivity() {
memo!!.Policy,
4.toFloat(),
" "
)
)
}
val adapter = PolicyAdapter(policyList)
policyRecyclerView.adapter = adapter
}
})
}
if (intent.hasExtra("key")) {
/* if (intent.hasExtra("key")) {
//textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임
} else {
Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
}
*/
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
// 2. 툴바 왼쪽 버튼 설정
supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true
supportActionBar!!.setDisplayHomeAsUpEnabled(false) // 왼쪽 버튼 사용 여부 true
supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정
supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기
////bottom navigation view operation start 2
bottomBar=supportActionBar!!
val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
//val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
//bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
////bottom navigation view operation end 2
}
......@@ -116,6 +122,7 @@ class FavoritesActivity : AppCompatActivity() {
// 클릭된 메뉴 아이템의 아이디 마다 when 구절로 클릭시 동작을 설정한다.
when(item!!.itemId){
android.R.id.home->{ // 메뉴 버튼
bottomNavigation3.selectedItemId = R.id.bottomFavorites
Snackbar.make(toolbar,"Menu pressed", Snackbar.LENGTH_SHORT).show()
}
R.id.menu_search->{ // 검색 버튼
......@@ -127,27 +134,45 @@ class FavoritesActivity : AppCompatActivity() {
return super.onOptionsItemSelected(item)
}
var back_pressed: Long = 0 // 뒤로가기 종료
override fun onBackPressed() {
if (back_pressed + 2000 > System.currentTimeMillis()) {
finishAffinity()
System.runFinalization()
System.exit(0)
}
//super.onBackPressed()
else
Toast.makeText(getBaseContext(), "\'뒤로\' 버튼을 한번 더 누르시면 종료됩니다.", Toast.LENGTH_SHORT).show()
back_pressed = System.currentTimeMillis()
}
//bottom navigation view operation start 3
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
//bottomNavigation3.selectedItemId = R.id.bottomFavorites
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
//bottomNavigation3.selectedItemId = R.id.bottomFavorites
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
//val intent = Intent(this, FavoritesActivity::class.java)
//startActivity(intent)
//return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
//bottomNavigation3.selectedItemId = R.id.bottomFavorites
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
......
......@@ -14,6 +14,8 @@ import android.widget.Toast
import kotlinx.android.synthetic.main.activity_info.*
import android.graphics.drawable.ColorDrawable
import androidx.core.content.ContextCompat
import com.google.android.material.bottomnavigation.BottomNavigationView
import kotlinx.android.synthetic.main.activity_favorites.*
import kotlinx.android.synthetic.main.activity_settings_in_form.*
class InfoActivity : AppCompatActivity() {
......@@ -22,6 +24,12 @@ class InfoActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_info)
// 네비게이션 뷰 포커스 맞추는 코드
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation4) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomInfo
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
// statusbar color chacnge
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
......@@ -31,8 +39,7 @@ class InfoActivity : AppCompatActivity() {
val prof: SharedPreferences =getSharedPreferences("profdata", Context.MODE_PRIVATE)
val editor: SharedPreferences.Editor=prof.edit()
Toast.makeText(applicationContext,prof.getString("manorwoman","nothing"),
Toast.LENGTH_SHORT).show()
//Toast.makeText(applicationContext,prof.getString("manorwoman","nothing"), Toast.LENGTH_SHORT).show()
InfoProfilModify.setOnClickListener {
var intent = Intent(this, SettingActivity::class.java)
......@@ -53,15 +60,50 @@ class InfoActivity : AppCompatActivity() {
var intent = Intent(this, QuestionsActivity::class.java)
startActivity(intent)
}
}
var back_pressed: Long = 0 // 뒤로가기 종료
//pushing test start
// InfoButtonSettings.setOnClickListener {
// //var intent = Intent(this, SettingActivity::class.java)
//test start
// var intent = Intent(this, InputProfilFirstOneActivity::class.java)
//test end
// startActivity(intent)
// }
//pushing test end
override fun onBackPressed() {
if (back_pressed + 2000 > System.currentTimeMillis()) {
finishAffinity()
System.runFinalization()
System.exit(0)
}
//super.onBackPressed()
else
Toast.makeText(getBaseContext(), "\'뒤로\' 버튼을 한번 더 누르시면 종료됩니다.", Toast.LENGTH_SHORT).show()
back_pressed = System.currentTimeMillis()
}
private val mOnNavigationItemSelectedListener=
BottomNavigationView.OnNavigationItemSelectedListener{ item->
when (item.itemId){
R.id.bottomHome ->{
//bottomNavigation4.selectedItemId = R.id.bottomInfo
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
//bottomNavigation4.selectedItemId = R.id.bottomInfo
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
//bottomNavigation4.selectedItemId = R.id.bottomInfo
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
}
}
......
......@@ -7,6 +7,4 @@ class PolicyItem(val policyItemImage: Drawable,
val policyItemHost: String,
val policyItemTitle: String,
val policyItemScore: Float,
val policyItemFavor: String) {
}
\ No newline at end of file
val policyItemFavor: String)
\ No newline at end of file
......
package com.example.vip
import android.app.Activity
import android.content.ClipData
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
......@@ -8,6 +9,7 @@ import android.os.Bundle
import android.util.Half.toFloat
import android.view.Menu
import android.view.MenuItem
import android.widget.Button
import android.widget.Toast
import androidx.appcompat.app.ActionBar
import androidx.appcompat.app.AppCompatActivity
......@@ -26,6 +28,11 @@ import kotlinx.android.synthetic.main.activity_signin.toolbar
import kotlinx.android.synthetic.main.item_policy.*
import kotlinx.android.synthetic.main.item_policy.view.*
import kotlinx.android.synthetic.main.search.*
import androidx.core.app.ComponentActivity.ExtraData
import androidx.core.content.ContextCompat.getSystemService
import android.icu.lang.UCharacter.GraphemeClusterBreak.T
import androidx.core.view.size
data class MemoItemRecom(
val Target : String = "",
......@@ -36,6 +43,8 @@ data class MemoItemRecom(
class RecommendActivity : AppCompatActivity() {
var recomdatabase = FirebaseDatabase.getInstance().reference
////bottom navigation view operation start 1
lateinit var bottomBar: ActionBar
////bottom navigation view operation end 1
......@@ -43,14 +52,18 @@ class RecommendActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_recommend)
// 네비게이션 뷰 포커스 맞추는 코드
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation2) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomRecommend
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val policyList = ArrayList<PolicyItem>()
var recomdatabase = FirebaseDatabase.getInstance().reference
if (intent.hasExtra("key")) {
//textView.text = intent.getStringExtra("key") 텍뷰추가하면 인텐트로 값넘기는거 보임
recomdatabase.orderByChild("Policy").startAt(intent.getStringExtra("key")).endAt(intent.getStringExtra("key")+"\uf8ff").addListenerForSingleValueEvent(object :
ValueEventListener {
// startAt(intent.getStringExtra("key")).endAt(intent.getStringExtra("key")+"\uf8ff")
recomdatabase.orderByChild("View").addListenerForSingleValueEvent(object : ValueEventListener {
override fun onCancelled(p0: DatabaseError) {
Toast.makeText(this@RecommendActivity, "실패부분", Toast.LENGTH_SHORT).show()
}
......@@ -63,7 +76,7 @@ class RecommendActivity : AppCompatActivity() {
ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!,
"상시",
memo!!.Policy,
memo!!.Policy,
memo.Policy,
4.toFloat(),
""
)
......@@ -75,9 +88,9 @@ class RecommendActivity : AppCompatActivity() {
})
} else {
Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
//Toast.makeText(this, "putExtra value not found", Toast.LENGTH_SHORT).show()
recomdatabase.orderByChild("Policy").startAt(intent.getStringExtra("\uf8ff")).addListenerForSingleValueEvent(object :
recomdatabase.orderByChild("View").addListenerForSingleValueEvent(object :
ValueEventListener {
override fun onCancelled(p0: DatabaseError) {
Toast.makeText(this@RecommendActivity, "실패부분", Toast.LENGTH_SHORT).show()
......@@ -91,12 +104,12 @@ class RecommendActivity : AppCompatActivity() {
ContextCompat.getDrawable(this@RecommendActivity, R.drawable.image01)!!,
"상시",
memo!!.Policy,
memo!!.Policy,
memo.Policy,
4.toFloat(),
""
)
)
//Toast.makeText(this@RecommendActivity, memo.View.toString(), Toast.LENGTH_SHORT).show()
}
val adapter = PolicyAdapter(policyList)
policyRecyclerView.adapter = adapter
......@@ -106,13 +119,13 @@ class RecommendActivity : AppCompatActivity() {
// 1. 툴바 사용 설정
setSupportActionBar(toolbar)
// 2. 툴바 왼쪽 버튼 설정
supportActionBar!!.setDisplayHomeAsUpEnabled(true) // 왼쪽 버튼 사용 여부 true
supportActionBar!!.setDisplayHomeAsUpEnabled(false) // 왼쪽 버튼 사용 여부 true
supportActionBar!!.setHomeAsUpIndicator(R.drawable.return_page) // 왼쪽 버튼 아이콘 설정
supportActionBar!!.setDisplayShowTitleEnabled(false) // 타이틀 안보이게 하기
////bottom navigation view operation start 2
bottomBar=supportActionBar!!
val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
//val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
//bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
////bottom navigation view operation end 2
}
// 3.툴바 메뉴 버튼을 설정
......@@ -136,26 +149,47 @@ class RecommendActivity : AppCompatActivity() {
return super.onOptionsItemSelected(item)
}
var back_pressed: Long = 0 // 뒤로가기 종료
override fun onBackPressed() {
if (back_pressed + 2000 > System.currentTimeMillis()) {
finishAffinity()
System.runFinalization()
System.exit(0)
}
//super.onBackPressed()
else
Toast.makeText(getBaseContext(), "\'뒤로\' 버튼을 한번 더 누르시면 종료됩니다.", Toast.LENGTH_SHORT).show()
back_pressed = System.currentTimeMillis()
}
private fun update_policy_view(policy_id: String, View_count: Int) {
recomdatabase.child(policy_id).child("View").setValue(View_count-1)/// .setValue(user)
}
//bottom navigation view operation start 3
private val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener{item->
when (item.itemId){
R.id.bottomHome ->{
//bottomNavigation2.selectedItemId = R.id.bottomRecommend
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
//val intent = Intent(this, RecommendActivity::class.java)
//startActivity(intent)
//return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
//bottomNavigation2.selectedItemId = R.id.bottomRecommend
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
//bottomNavigation2.selectedItemId = R.id.bottomRecommend
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
......
......@@ -26,6 +26,12 @@ class SignInActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_signin)
// 네비게이션 뷰 포커스 맞추는 코드
val bottomNavigationView: BottomNavigationView = findViewById(R.id.bottomNavigation) as BottomNavigationView
bottomNavigationView.selectedItemId = R.id.bottomHome
bottomNavigationView.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
val builder = AlertDialog.Builder(this)
val dialogView = layoutInflater.inflate(R.layout.dialog_example, null)
//val dialogText = dialogView.findViewById<EditText>(R.id.dialogEt)
......@@ -104,8 +110,8 @@ class SignInActivity : AppCompatActivity() {
////bottom navigation view operation start 2
bottomBar=supportActionBar!!
val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
//val bottomNavigation: BottomNavigationView =findViewById(R.id.bottomNavigation)
//bottomNavigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener)
////bottom navigation view operation end 2
}
......@@ -148,23 +154,25 @@ class SignInActivity : AppCompatActivity() {
//bottom navigation view operation start 3
private val mOnNavigationItemSelectedListener=BottomNavigationView.OnNavigationItemSelectedListener{item->
when (item.itemId){
R.id.bottomHome ->{
val intent = Intent(this, SignInActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
// val intent = Intent(this, SignInActivity::class.java)
// startActivity(intent)
// return@OnNavigationItemSelectedListener true
}
R.id.bottomRecommend ->{
//bottomNavigation.selectedItemId = R.id.bottomHome
val intent = Intent(this, RecommendActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomFavorites ->{
//bottomNavigation.selectedItemId = R.id.bottomHome
val intent = Intent(this, FavoritesActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
}
R.id.bottomInfo ->{
//bottomNavigation.selectedItemId = R.id.bottomHome
val intent = Intent(this, InfoActivity::class.java)
startActivity(intent)
return@OnNavigationItemSelectedListener true
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:color="#29ABE2" />
<item android:color="#DDDDDD" />
</selector>
\ No newline at end of file
......@@ -92,8 +92,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -50,13 +50,13 @@
>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
</FrameLayout>
......
......@@ -57,6 +57,8 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_weight="1"
android:orientation="horizontal">
......@@ -198,13 +200,13 @@
>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
</FrameLayout>
......
......@@ -159,8 +159,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -45,8 +45,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -85,8 +85,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -85,10 +85,10 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" >
app:menu="@menu/bottom_nav_menu">
</com.google.android.material.bottomnavigation.BottomNavigationView>
......
......@@ -51,13 +51,13 @@
>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottomNavigation"
android:id="@+id/bottomNavigation2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
</FrameLayout>
......
......@@ -129,8 +129,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -84,8 +84,8 @@
android:layout_gravity="bottom"
android:background="#FFF"
android:elevation="8dp"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -45,8 +45,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......
......@@ -105,8 +105,8 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="#FFF"
app:itemIconTint="#29ABE2"
app:itemTextColor="#29ABE2"
app:itemIconTint="@drawable/bottom_selector"
app:itemTextColor="@drawable/bottom_selector"
app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
......