Giter Club home page Giter Club logo

Comments (4)

kelinZhou avatar kelinZhou commented on July 30, 2024

本来就是从网络上获取的呀。就像你图片的url一样。还是我理解的不对。如果理解的不对,麻烦你描述的更加详细一点。

from banner.

hans0090 avatar hans0090 commented on July 30, 2024

是这样的,我看到所有url和title都是在这个方法中添加的
private List getTitleImageBannerEntry(){ } ;
如果我新开启一个线程,然后从网上得到title和url的字符串,然后再调用
bannerView.setEntries(getImageBannerEntries());
就会直接闪退,并且报错;
java.lang.RuntimeException: You need called the setEntries method!

也就是说,bannerView.setEntries(getImageBannerEntries());必须在onstart的时候立即调用,但是网络加载需要时间,所以会出错。

我看到很多app都是有一个guide,启动app之后等待一段时间再到主界面,我想问一下url和title是不是要在guide里面加载。不能在主界面直接加载?

from banner.

kelinZhou avatar kelinZhou commented on July 30, 2024

你加一下我的微信吧,kelinZQL。

from banner.

kelinZhou avatar kelinZhou commented on July 30, 2024

不是你说的这么回事儿,setEntries被调用之前你就去调用selectCenterPage去手动选中某个Banner页,当然不行啊,本着防御式编程的原则所以我这里抛出一个异常。就是为了告诉你这么调用是不对的。但是可能我提示的不够明白,我后面会改成You need to call the 'setEntries' method before calling the 'selectCenterPage' method!

from banner.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.