问题描述:

I am new to android.

I am creating a application where the notes shall appear in the timeline as like as facebook. Please help me out how to create such view.

网友答案:

Use a List view with a custom adapter.

The custom adapter should extend BaseAdapter, and in the getView method inflate the a view for each list item. Be sure to checkout this technique to prevent Out of memory errors

Have methods in the adapter which allow you to add more data. Then when you update the data call notifyDataSetChanged to update the view.

相关阅读:
Top