1. Are you ready for the Galaxy S20? Here is everything we know so far!

Highlight focus item on listview

Discussion in 'Android Development' started by kiros88, Oct 25, 2010.

  1. kiros88

    kiros88 Lurker
    Thread Starter

    Hi,

    I have a set of items in a ListView and am testing using the Android emulator.

    When I click a list item with my mouse the item background flashes yellow and then goes black when I release the mouse button. If I then scroll up and down using arrow keys the selected items background turns orange and remains orange.

    This highlighting behaviour seems peculiar. Is this correct? I did originally expect the highlight to persist after clicking an item and the highlight after click and arrow to be the same color.

    Okay Basically i read online bout touch mode and how it doesnt usually do a focus but the article states to do what im trying to hope for here with the orange remaining in the background is to write code apparently to exit out of touch mode and with a trackball ressurrect a focus on the previously selected item. Of course the article states thats whats needed without writing anythiung to help ppl know how to do tthis. So i was hoping if anyone had any idea how to get any of the steps down i could try to work them all in. First right now im trying to find a way to close touch mode in my setOnItemClickListener section of the code so that after i select and item i exit touch mode but i havent found a code online or a command that does something like that
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Highlight focus item
  1. Crnomerec
    Replies:
    9
    Views:
    423
  2. rangmu
    Replies:
    1
    Views:
    819
  3. App Update
    Replies:
    0
    Views:
    662
  4. Neet4747
    Replies:
    3
    Views:
    2,068
  5. tinker123
    Replies:
    1
    Views:
    2,024
  6. Kuldip Somwanshi
    Replies:
    0
    Views:
    1,733
  7. CARL BIRT
    Replies:
    6
    Views:
    3,419
  8. Caroline Gregory
    Replies:
    5
    Views:
    5,020
  9. App Update
    Replies:
    0
    Views:
    311
  10. Goldy King
    Replies:
    1
    Views:
    530

Share This Page

Loading...