[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Hi Romain Guy, What is the attribute you mention below that makes ListView items selectable or focusable? i.e., how/what does one change to make ListView items focusable by default (and not selectable)? Thanks, Nitin. On Aug 27, 2008, at 1:28 PM, Romain Guy wrote: So, in conclusion, I can have a focusable item or a focusable child into the item but not both. No, items in a ListView are not focusable by default, they are selectable. So an item can be focusable (it gets focus or one of its children gets focus) OR selectable, but not both. You can make the item and its children focusable if you want. But keyboard focus navigation might not work properly in that case (overlapping focusable items are not handled very well for now.) That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? And another quick question, Can I have a SurfaceView able to display videos and photos?, lets say, for example, that I want to put a loading image while downloading the video, is that possible? (using MediaPlayer yo play the video). Thanks. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Also trying to have a list item with a check box in it :( Can I just point out that the alarm clock in sdk 1.0 has exactly what myself and other people in this thread are trying to accomplish. A list item with some text and a check box, with both controls independently clickable. If only google would open source the code we could see how they did it. Along these lines, does anyone know of a good write up of how the event system works in android (e.g. parent/child relationships, super/ derived relationships, etc). I always seem to have trouble getting the event handling correct in guis. cheers, Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Thanks Mark, I'll try it. On 10 sep, 20:07, Mark Murphy [EMAIL PROTECTED] wrote: This is my problem: My application has a ListView and every row has a TextView and a Checkbox. Checkboxes work correctly, but TextViews can't be selected and thus onListItemClick method is never called. I need the two functions. What can I do? Use a context menu instead of onListItemClick() on the TextViews. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Hi, This is my problem: My application has a ListView and every row has a TextView and a Checkbox. Checkboxes work correctly, but TextViews can't be selected and thus onListItemClick method is never called. I need the two functions. What can I do? Pau On 5 sep, 21:08, kingkung [EMAIL PROTECTED] wrote: I think I have a similar problem... I want to be able to check and uncheck items, but some of my items, in their checked views, contain links which I think rob the focus so that the onClickListener no longer works on that item. The link works fine, though. What should I do? What Romain Guy suggested above sounds interesting, but I don't know what XML attribute he is talking about. On Aug 28, 5:21 am, marielisacr [EMAIL PROTECTED] wrote: Thanks very much for the suggestions and the answer, I will try that.- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
This is my problem: My application has a ListView and every row has a TextView and a Checkbox. Checkboxes work correctly, but TextViews can't be selected and thus onListItemClick method is never called. I need the two functions. What can I do? Use a context menu instead of onListItemClick() on the TextViews. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
I think I have a similar problem... I want to be able to check and uncheck items, but some of my items, in their checked views, contain links which I think rob the focus so that the onClickListener no longer works on that item. The link works fine, though. What should I do? What Romain Guy suggested above sounds interesting, but I don't know what XML attribute he is talking about. On Aug 28, 5:21 am, marielisacr [EMAIL PROTECTED] wrote: Thanks very much for the suggestions and the answer, I will try that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Thanks very much for the suggestions and the answer, I will try that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Hey Romain thanks for the answer, So, in conclusion, I can have a focusable item or a focusable child into the item but not both. That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? And another quick question, Can I have a SurfaceView able to display videos and photos?, lets say, for example, that I want to put a loading image while downloading the video, is that possible? (using MediaPlayer yo play the video). Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
Hello marielisacr, That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? If I were you, I would go for standard select handler in order to play the selected song and I would come up with a ContextMenu for user to pick from add this one to the playlist. May be making the list a multiple choice list and letting the user to add more than one title at a time can be a better way. Regards, On Aug 27, 7:28 pm, marielisacr [EMAIL PROTECTED] wrote: Hey Romain thanks for the answer, So, in conclusion, I can have a focusable item or a focusable child into the item but not both. That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? And another quick question, Can I have a SurfaceView able to display videos and photos?, lets say, for example, that I want to put a loading image while downloading the video, is that possible? (using MediaPlayer yo play the video). Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ListView - If you have a item that can focus you can select the Item
So, in conclusion, I can have a focusable item or a focusable child into the item but not both. No, items in a ListView are not focusable by default, they are selectable. So an item can be focusable (it gets focus or one of its children gets focus) OR selectable, but not both. You can make the item and its children focusable if you want. But keyboard focus navigation might not work properly in that case (overlapping focusable items are not handled very well for now.) That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? And another quick question, Can I have a SurfaceView able to display videos and photos?, lets say, for example, that I want to put a loading image while downloading the video, is that possible? (using MediaPlayer yo play the video). Thanks. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---