How to properly impliment Admob Express Native when using SortedList

24 views
Skip to first unread message

Sergey Matisen

unread,
May 10, 2017, 1:08:36 PM5/10/17
to Google Mobile Ads SDK Developers
I want to do thing described in this video about Native Express https://www.youtube.com/watch?v=LZCZSeFTvyk

I`m using Sorted list mechanics inside adapter. If I add new native express as object things become a  bit complicated. I`curios is there an elegant way of using both SortedList and Native Express inside recyclerview adapters.

Deepika Uragayala- MobileAds SDK team

unread,
May 10, 2017, 4:53:28 PM5/10/17
to Google Mobile Ads SDK Developers
Hi Sergey,

The SortedList should be pretty straightforward. The only logic that you should have to consider is to whether to use the existing AdView item or add a new item. You can return false to areItemsSame() and then add the new AdView. While we do not have a sample app for SortedList, you can reuse the RecyclerView example to implement this.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages