[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
here. On Jan 31, 8:22 am, Chander Pechetty cspeche...@gmail.com wrote: make sure your list item does not contains focusable children (like buttons, imageviews) setting android:focusable=false usually works for buttons and so on... On Jan 30, 2:42 pm, qmwestview qmwestv...@googlemail.com wrote

[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Update: I found a way to intercept the key press, by just adding the following code into getView(final int position, View convertView, ViewGroup parent) method: convertView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {

[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Adding android:focusable=false does work with CheckBox (tested: just replace ImageButton with CheckBox in layout xml file). On Feb 1, 11:12 am, qmwestview qmwestv...@googlemail.com wrote: Hi Chander, thanks for your help. I have added     android:focusable=false to the layout xml file

[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Tried again and this time successful. Instead of doing it in xml file, do it in code does the trick: holder.imageButton.setFocusable(false); Problem solved! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-01-30 Thread qmwestview
Hi, I have a working ListActivity class. Each of the list item consists of an ImageView and a TextView. However, when I try to replace the ImageView with ImageButton, The list becomes unselectable. The onListItemClick or any other function no longer get called when press a list item (Although

[android-developers] How to repeat Login dialog and progress dialog, coordinating with http thread

2010-01-25 Thread qmwestview
Hi there, I am having a problem about repeating Login dialog (an AlertDialog) and progress dialog, coordinating with http thread. I suppose repetitive Login dialog (if fail, continue) handling should be common and straightforward. I guess my approach must be wrong somewhere. I already spent 2

[android-developers] Configure app to work horizontal and vertical?

2010-01-16 Thread qmwestview
Hi, Is it possible to configure all layouts of an Android app to support BOTH landscape and portrait mode so that the app will work both when phone is held vertically and horizontally. From my brief reading, it seems not. Am I right? -- You received this message because you are subscribed to the

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-23 Thread qmwestview
The Html.from(utfStringInDecimalForm).toString() works! Thank you so much Ludovic Perrier!! I have sent an email to Struts' mailing list, hoping they could correct this in the first place. QM --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-20 Thread qmwestview
My server side is using Struts (2.1.7). Strangely, the jsp, using struts tags, usually outputs ideally encoded message which can be displayed by Android’s TextView. Only when it comes to using struts’ “iterator” tag, then decimal unicode are sent to the client, which is fine for browser, but

[android-developers] Re: Problem to show unicode strings in TextView

2009-10-18 Thread qmwestview
I have also tried to escape or #, e.g. replacing with #038; or amp; etc, but none of them work. On Oct 16, 5:18 pm, qmwestview qmwestv...@googlemail.com wrote: Hi there, My data (stored as UTF-8 in the SQL db), when arrive at the phone as json strings, appear to be decimalUnicode

[android-developers] Problem to show unicode strings in TextView

2009-10-16 Thread qmwestview
rather than decimal unicode (the same decimal unicode work fine for browser)? or 3. Is there any function which can turn decimal unicode string into UTF-8 string? 4. Any other advice please? Many thanks in advance, qmwestview --~--~-~--~~~---~--~~ You