[android-developers] Re: Andrlid ListView focus mess up with two focusable items in each row

2011-12-11 Thread yanguoc...@gmail.com
t really have to go through notifyDataSetChanged to update the UI. > > If you know that the set of items stays the same (i.e. only their data > changed), you can iterate the listview's children and update them > bypassing the adapter. > > -- Kostya > > 09.12.2011 14:10, yan

[android-developers] Re: Andrlid ListView focus mess up with two focusable items in each row

2011-12-09 Thread yanguoc...@gmail.com
Thanks. But seems hard to maintain focus in a listview before and after the latyout pass. I check the source code of listview, it did something that may broke the focus in layout pass. On Dec 9, 5:46 am, lbendlin wrote: > you will need to remember (per row) which item has focus, and when the list

[android-developers] Andrlid ListView focus mess up with two focusable items in each row

2011-12-08 Thread yanguoc...@gmail.com
In my application, I want to implement a ListView, of each itemview is a LinearLayout with two focusable buttons in it horziontally, and each row item data loads from server in page. But it seems that when adapter.notifyDataSetChanged is invoked, if the focus is on the right button of the itemview,

[android-developers] How to detect camera support autofocus from 1.5+

2011-08-18 Thread yanguoc...@gmail.com
I am developing a feature that need camera's autofocus. If the device does not support AF, then I will not show that feature. There are two ways I know to detect AF. One is using Camera.Parameter, but that need to open camera first and will be slow and give a little bit sound when openning. The o

[android-developers] a bug in android gmail application

2010-09-07 Thread yanguoc...@gmail.com
I have an implementation that just like gmail application, but have met some problem in some case. And I tested it on the real device of the gmail application. Seems they are caused by the same reason. ListView. Just go to the gmail application, scroll down to the last visible mail, and at this ti

[android-developers] question about CacheManager.CacheResult

2009-02-12 Thread yanguoc...@gmail.com
I want to intercept the request from webview and use the cache html page instead sending a real web request. I alos find a CacheManager.CacheResult and UrlInterceptHandler. The class implements UrlInterceptHandler did work, it can intecept the request. However, I fonud no way to generate a CacheRe