search

Home  >  Q&A  >  body text

android - 安卓开发中,在匿名类中为外部类赋值问题

我在匿名类中给外部类的arraylist添加了一系列的值 但在外部类中取出来都是空的,为什么??

迷茫迷茫2859 days ago716

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:42:56

    Publish the source code. This is not possible under normal circumstances. It is difficult to locate without the source code

    reply
    0
  • 阿神

    阿神2017-04-17 14:42:56

    It’s a matter of execution order. The listData has not been filled with data when onCreate is called

    reply
    0
  • PHPz

    PHPz2017-04-17 14:42:56

    reply
    0
  • Cancelreply