当前位置: 代码迷 >> Android >> 如何动态修改适配器 中的背景色
  详细解决方案

如何动态修改适配器 中的背景色

热度:55   发布时间:2016-05-01 21:06:04.0
怎么动态修改适配器 中的背景色
SimpleAdapter adapter = new SimpleAdapter(this, items, R.layout.scontent, 
  new String[] {"ls_content","ls_name","ls_time","ls_back"}, 
  new int[] {R.id.ls_content,R.id.ls_name, R.id.ls_time,R.id.layout});
  adapter.notifyDataSetChanged();


其中 R.id.layout 这种表现出来的是值text是"ls_back"


我想改成 R.id.layout.background

但是报错,,请问怎么改啊

------解决方案--------------------
在OnResume方法中写逻辑代码处理
  相关解决方案