登录注册图标优化
This commit is contained in:
@@ -64,7 +64,7 @@ class FamilyAdapter(
|
||||
binding.tvFamilyName.setTextColor(binding.root.context.getColor(R.color.white))
|
||||
binding.tvFamilyRole.setTextColor(binding.root.context.getColor(R.color.white))
|
||||
binding.ivCheck.visibility = View.VISIBLE
|
||||
binding.ivCheck.setImageResource(R.drawable.ic_check_white)
|
||||
binding.ivCheck.setImageResource(R.mipmap.ic_check_white)
|
||||
} else {
|
||||
binding.layoutFamilyItem.setBackgroundResource(0)
|
||||
binding.tvFamilyName.setTextColor(binding.root.context.getColor(R.color.black))
|
||||
|
||||
@@ -37,10 +37,10 @@ class HomeActivity : BaseActivity() {
|
||||
binding.tabHome.setOnClickListener {
|
||||
switchFragment(homeMenuFragment)
|
||||
// 切换图标 + 文字颜色
|
||||
binding.ivHome.setImageResource(R.drawable.home_checked)
|
||||
binding.ivHome.setImageResource(R.mipmap.home_checked)
|
||||
binding.tvHome.setTextColor(resources.getColor(R.color.ic_selected))
|
||||
|
||||
binding.ivProfile.setImageResource(R.drawable.profile)
|
||||
binding.ivProfile.setImageResource(R.mipmap.profile)
|
||||
binding.tvProfile.setTextColor(resources.getColor(R.color.ic_normal))
|
||||
}
|
||||
|
||||
@@ -48,10 +48,10 @@ class HomeActivity : BaseActivity() {
|
||||
binding.tabProfile.setOnClickListener {
|
||||
switchFragment(personalFragment)
|
||||
// 切换图标 + 文字颜色
|
||||
binding.ivHome.setImageResource(R.drawable.home)
|
||||
binding.ivHome.setImageResource(R.mipmap.home)
|
||||
binding.tvHome.setTextColor(resources.getColor(R.color.ic_normal))
|
||||
|
||||
binding.ivProfile.setImageResource(R.drawable.profile_checked)
|
||||
binding.ivProfile.setImageResource(R.mipmap.profile_checked)
|
||||
binding.tvProfile.setTextColor(resources.getColor(R.color.ic_selected))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ class InvitationCodeActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
val logoDrawable = ContextCompat.getDrawable(this, R.mipmap.loge)
|
||||
val logoDrawable = ContextCompat.getDrawable(this, R.mipmap.logo)
|
||||
if (logoDrawable != null) {
|
||||
val logoSize = width / 5
|
||||
val logoX = (width - logoSize) / 2
|
||||
|
||||
Reference in New Issue
Block a user