Commit a981a8fd by 霍志良

feat:定位筛选UI逻辑

parent 09d141b1
......@@ -29,15 +29,8 @@ class SubRecyclerViewAdapter(
if (subItem.locationCode == locationCode) {
holder.itemView.reLocation.visibility = View.GONE
holder.itemView.location_img.visibility = View.VISIBLE
holder.itemView.location_img.drawable.setTint(context.resources.getColor(R.color.platform_main_theme))
//选中状态
holder.itemView.tvConsultTypeName.setTypeface(Typeface.DEFAULT_BOLD)
holder.itemView.tvConsultTypeName.setTextColor(
ContextCompat.getColor(
context,
R.color.platform_main_theme
)
)
holder.itemView.location_img.drawable.setTint(context.resources.getColor(R.color.platform_color_black_333333))
holder.itemView.isEnabled = true
} else if (subItem.locationCode == "NotAuth") {
//未选中状态
......
......@@ -52,7 +52,7 @@ class HomeCategoryContainer(private val mContext: Context, private var homeEvent
*/
fun initData(bean: HomeHeaderBean?) {
mHomeCategoryAdapter?.updateItems(bean?.askCategoryData)
if (bean?.askCategoryData?.size!! >= PAGE_ITEM_SIZE) {
if (bean?.askCategoryData?.size!! > PAGE_ITEM_SIZE) {
count = Math.ceil(
Math.ceil(
bean.askCategoryData?.size?.toFloat()?.div(PAGE_ITEM_SIZE.toFloat())
......
......@@ -19,7 +19,7 @@ import kotlinx.android.synthetic.ydl.home_pager_banner_category_view.view.*
/**
* @author <a href="https://www.jianshu.com/u/c1e5310dd724">xujian</a>
* @描述: 首页顶部模块-分类模块
* @描述: 首页顶部模块-分类模块 金刚位跳转H5或咨询列表页面
* @Copyright Copyright (c) 2019
* @Company 壹点灵
* @date 2019/02/16
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment