Android Recyclerview, want to know how it determines the data list for listing -


so trying figure out how use recyclerview listing items. unlike listview has adapter passes list constructor internal working, recyclerview not seem have one, example, in class extending recyclerview.adapter provide contructor set list declared.

public customadapter(data[] mydataset) { this.mdataset = mydataset; }

but how recyclerview.adapter know use? example, since constructor provided us, possible make contructor put 2 parameters 2 different data type lists/arrays. how adapter know list use??

add: or use according how use lists on onbingviewholder method? if so, how position parameter work?

take @ this post. has simple example pretty overview/explanation of recyclerview , how works.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -