Study Plan - The Twelfth Day

本文分享了在解决两个编程问题的同时,享受健身房锻炼的乐趣。包括通过计算ListBox位置实现按钮事件触发,解决列表项高度不一致的问题,以及通过异步加载图片减少内存使用并使用缓存的方法。同时讨论了持续测试和优化的重要性。

    Today I have gotten a Gym Card, I want to do exercise in coming two months, and it is very convenient that the gymnasium is near my home. One thing make me happy is that there get a swimming pool. Swimming is my hobby, almost one year that I have not swimming.

    Today my work is continue to resolve that two problems which I mentioned a few days ago. The first problem I have implemented but should perfect, so I simulate trigger the button's event by calculate the position of the Listbox, this event will change this button's status and execute load more items by network request. But I have meet a troublesome problem that the Listbox default think every item have the same high, but in fact it is not, so it will adjust the item's high in it before loading. The second problem I remove items also by calculate the position of the Listbox, and load images I use asynchronous. So I have resolved the problem that momory use too much and could not use cache. But all of this way I should continue to test and perfect.

   

转载于:https://www.cnblogs.com/weikaishi/archive/2012/04/17/2454638.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值