fun createFooterLayout(invalidList: List) {        val invalidgoodsView  = LayoutInflater.from(activity).inflate(R.layout.cart_invalid_goods_layout, null)        val ll_good_container = invalidgoodsView.find(R.id.ll_good_container)        invalidList.forEachIndexed { index, detailListBean ->            val goodItem = mInflater.inflate(R.layout.item_shop_car_invalid_goods, ll_good_container, false)            val swipeLayout = goodItem.find(R.id.swipeLayout)            swipeLayout.setCanDrag(false)            val ivGoodIcon = goodItem.find(R.id.iv_goods_icon)            val tvName = goodItem.find(R.id.tv_name)            //            Global.displayImage(detailListBean.logoPath, ivGoodIcon)            tvName.text = detailListBean.commodityName            ll_good_container.addView(goodItem)        }        mAdapter.setFooterView(invalidgoodsView)    }
<?xml version="1.0" encoding="utf-8"?>                

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)adb无线调试,保护手机USB口,
  2. Android(安卓)使用ListView的A-Z字母排序
  3. Android中的内存泄漏模式
  4. android项目打包
  5. Android(安卓)源码编译加速 使用ccache
  6. 从零开始--系统深入学习android(实践-让我
  7. 【Tech】android真机测试——小米3
  8. android 加载外部 dex文件中的类 的源码
  9. Android(安卓)蓝牙低功耗Ble Gatt浅谈
  10. Android自定义View实战---圆盘温度计