当前位置: 动力学知识库 > 问答 > 编程问答 >

view like facebook time line in android

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: