我的活動中有三張卡片。但用戶可以在視圖中添加更多評論,因此可以添加更多卡片。我是android編程的新手。所以想知道如何在運行時添加更新的卡片?如何在運行時在Android應用程序的卡片視圖中添加卡片
-1
A
回答
0
使用ListView
並將數據添加到列表中,並在需要時使用notifyDataSetChanged()
進行更新。
1
您可以使用回收站視圖在運行時添加視圖。使用本教程。 http://code.tutsplus.com/tutorials/getting-started-with-recyclerview-and-cardview-on-android--cms-23465
相關問題
- 1. 添加卡片圖片C#
- 2. Livecard中的卡片視圖/卡片
- 3. 在eclipse中的Android卡片視圖
- 4. 如何添加應用程序的卡片相機自動運行
- 5. Android在卡片視圖中滾動
- 6. 卡片視圖地帶如實地旅行應用程序
- 7. 如何在選項卡片段中添加列表視圖
- 8. 在SD卡中添加多個圖片
- 9. 在Android Studio中隱藏使用子視圖的卡片視圖
- 10. Twitter卡片:如何在Twitter圖庫卡片中只使用2張圖片?
- 11. 如何在卡片視圖上添加onClick事件
- 12. 如何使用選項卡在Android屏幕中運行片段?
- 13. 在卡片回收商視圖內添加網絡視圖
- 14. Android:在較低版本中運行卡片視圖和回收站視圖
- 15. 卡片視圖上的Android按鈕,點擊卡片視圖的位置
- 16. 在android中執行卡片視圖項的onItemClickListener
- 17. 在卡片視圖中的圖像視圖中添加點擊事件
- 18. 在Android中添加圖片視圖
- 19. 卡片視圖佈局的Android在片段
- 20. 如何在android卡片視圖中創建彈出式菜單
- 21. 我希望文本視圖內的卡片視圖內的文本視圖包裹在卡片視圖內,它不應該使卡片視圖可拉伸。
- 22. 如何在選項卡中加載片段視圖
- 23. Android - 卡片視圖的動態大小
- 24. 在玻璃應用程序中創建卡片時間軸
- 25. 使用卡片視圖進行設計?
- 26. 如何設置卡片視圖的ID?
- 27. 片段內的卡片視圖
- 28. 添加圖片到郵件應用程序在Android中
- 29. 當Android上傳圖片在後臺服務時卡住了應用程序
- 30. 在片段選項卡中添加地圖時出錯