android - what adapters should i use for listfragment and what class they should extend -
first of newbie.i developing app has viewpager , fragments in it,but later decided put lists in fragments had change them listfragments had change adpaters bit,and not working , totally confused adapter should extend what.
initially had viewpager adapter extends fragmentpageadapter(should extend kind of listfragment pageadapter)
and have customadapter extends base adapter(custom adapter because want custom listview in fragments). thanx in advance.
listview
(and extension listfragment
) doesn't care adapter long conforms listadapter
interface, yours if extends baseadapter
. there other adapter implementations in sdk simple use cases, can explore them on own or @ apidemos sample application.
similarly, viewpager
cares provide extends pageradapter
, fragmentpageradapter
does.
Comments
Post a Comment