Thank you for answering. The problem is not with list item view itself. I do everything you are talking about: I created my custom adapter, which returns my custom list item views, which extend LinearLayout and contain a number of widgets inside. However with Adapter.new/getView() I can control only view, however, adapter is not responsible for selection highlight box painting.
If you look at the the sample I mentioned above, you'll see the same. It uses its own adapter (SpeechListAdapter), its own list item view (SpeechView), but highlight bar is approx. twice larger than list item view. I tried to use just a TextView as a list item view and played with styles a little bit. When I used TextAppearance_Large or TextAppearance_Medium style for, then highlight bar had exactly the same height as list view item (TextView) did. But once I switched to TextAppearance_Small - TextView got smaller, whereas selection highlight bar did not. So my question was about selected item highlight, not the list item view. BTW, thank you for links to nice Android resources. On Nov 21, 8:00 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Andriy Zakharchuk wrote: > > Is there any way to make highlight box smaller, the same size as list > > view item is (like it was in m3_rc37)? > > There may be a theme or style that handles this, but you can always > create your own layout for the adapter to use, and you can control the > height that way. > > Either pass in the ID to your custom layout in the adapter constructor > or subclass the adapter, override getView(), and inflate/construct the > rows yourself (searchhttp://androidguys.comfor "Fancy ListViews" for a > series of blog posts on this technique). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

