English 中文(简体)
桌视图电池中大量数据
原标题:huge amount of data in tableview Cell Titanium

I have data base which contains the 4000 rows. and i want to display this data with tableview on android.

但设备显示内存警告 。

我们可以再利用细胞 就像我们在iPhone开发中使用的细胞一样。

请提出好办法,这样大宗量数据 就不会坠毁在机器人上

问题回答

Add a search field on the Top of the Table and only display about 50 Entries. Then if the User Scrolls further and reaches <10 Cells you are appending the Table with another 50 Entries. But you still have to limit the overall Count of Cells. No body needs such many rows. Even my iPhone Crashes if i scroll up like 6 months of conversation with my Girlfriend in "WhatsApp" ;)

-gt; 示例: < a href="https://gist.github.com/810391" rel="nofollow" >https://gist.github.com/810391





相关问题
Search Controller is not showing up in TableView Controller

I draged and dropped Search Display Controller onto my TableView Controller. When I push that TableView controller from RootView controller, Search Bar is not showing up on the top of the TableView. I ...

EXC_BAD_ACCESS in tableview application

This is my first iPhone application and it s based on a top-level tableview. Selections of rows either go to another tableview or to a view. The application runs OK on the simulator but when ported to ...

Asynchronous image load into TableView cell

Im trying to load a single image into the grouped table cell. I found a piece of code on the internet and modified it. Original code is using UIViews to display image, which is not what I need, ...

Resizing images on iPhone for UITableView image

I m using a sectioned TableView, and I want to show an image on the left side of the cell. If I pick one from the photo library (out of the example photos in simulator) and set it as UITableViewCell....

Table View rotate, but not properly (shape change)

Here is the thing. I have a ViewController which contain a view in full window. And the program run in landscape mode. I want to put an UITableView over the full screen view but only on right half ...

Customize a data-driven TableView

I have a grouped tableview that is populated with XML data in one section. What I would like to do is create another section prior to the data driven one, and apply an action to it. Example: The ...

iPhone table view - some button/action questions

I created a table view that is populated with a custom UITableViewCell (like this). Each of the cells contains two UIButtons. I assign the action to the button like this: [decreaseButton addTarget:...

热门标签