我有一個GridView
,我需要添加一個頁腳視圖。我知道這是可能是做一個ListView
使用這樣的代碼:Android GridView添加FooterView
LinearLayout layoutFooter = (LinearLayout) getLayoutInflater().inflate(R.layout.footerview, null);
final ListView listView = getListView();
listView.addFooterView(layoutFooter);
但我怎麼做相同的GridViews
?這種方法似乎不適用於GridView
。任何想法?乾杯。
你可以給RecyclerView一個試試嗎? – Blackbelt
你能舉個例子嗎? – Kristo
[there](https://gist.github.com/hister/d56c00fb5fd2dfaf279b)你是。 – Blackbelt