android - Shouldn't I be using a RecyclerView? -


i want implement schedule-like overview list , grid view. works using recyclerview , swapping out layoutmanager @ runtime. works fine in general, tuned grid cells have fixed height, realised recyclerview not respect wrap_content layout property , instead introduces whitespace between grid items.

grid layout

i stumbled on more or less same question linear layoutmanager , third-party provided specialisations of layoutmanager. quick searched revealed nothing similar gridlayoutmanager , beginning suspect going down wrong road:

apart easy switching between layouts, there seems no reason me work recycler view:

  • i dont't require special animation stuff.
  • my adapter returns fixed list without loading more items on demand.
  • actual recycling of items doesn't take place.

so evaluating switch separate fragments using ordinary listview , gridview. feel little working against intentions of android ... after all, introduced single view (in theory) should need.

am missing obvious turn out painful when using "legacy" views job done? or there maybe other, more specific views allow switching linear grid layouts apart recyclerview?

if should of importance: using xamarin.android, not native java. willing port code java c#.

follow ticket:

https://code.google.com/p/android/issues/detail?id=74772

it not merged yet should merged , wrap_content support should available in next version (23.1.1+) or 1 after.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -