Skip to content

Instantly share code, notes, and snippets.

View chuross's full-sized avatar

chuross chuross

View GitHub Profile

MergeAdapter便利

ふとFoursquareアプリのLicense表示を見たら便利そうなライブラリを発見して便利だったので紹介。

MergeAdapterとは

MergeAdapterは、google groupsとかstackoverflowでAndroidの問題を探しているとかなりの頻度で目にするMark Murphy(@commonsguy) さんが作成した便利なAdapterです。

MergeAdapter accepts a mix of Adapters and Views and presents them as one contiguous whole to whatever ListView it is poured into. This is good for cases where you have multiple data sources, or if you have a handful of ordinary Views to mix in with lists of data, or the like.