duanhongxian6982 2012-11-11 16:59
浏览 40
已采纳

片段,JSON,ListView [关闭]

I have a class that extends Fragment.

At onCreateView I must request a JSON from a PHP file and put some columns in a listview in a layout (fragment_events).

I've already done the HTTP request and I have my JSON file ready, now what can I do to populate my listview?

I have one class extend Fragment, I can't do for example new SimpleAdapter(this, mylist , R.layout.main in Fragment!!

  • 写回答

1条回答 默认 最新

  • duanben1324 2012-11-11 17:25
    关注

    You can try ListFragment class, It will help you to do implement listview

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试