setting margins for ListView entries

by Jason Proctor » Sat, 19 Sep 2009 06:00:38 GMT


Sponsored Links
 i'm having a little trouble getting a ListView with custom views in 
it to look right, i wonder if i'm missing something basic.

i'd like the scrollbar for the ListView to remain at hard right, but 
the actual view items to be inset inside the view frame. padding adds 
space inside the item view frames, seems like, and there's no 
setMargins() call in AbsListView.LayoutParams.

any help appreciated!

thanks
-- 
jason.vp.engineering.particle

--~--~---------~--~----~------------~-------~--~----~



setting margins for ListView entries

by Jason Proctor » Wed, 23 Sep 2009 07:24:28 GMT


 anyone?

i worked around it by making the list view contain another 
LinearLayout, with itself having a margin. it works, but when 
scrolled there is black horridness introduced, before ListView 
realises the background is transparent and fills with pattern. yuck.

starting to think i'm a bit hosed here.





-- 
jason.vp.engineering.particle

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. How to measure the Bytes sent and received through the 3G network

Hello, I am only interested on measure the amount of bytes sent and
received through the 3G network on one Android device, is there a way
to do that in Android?

Thank you in advance.

--~--~---------~--~----~------------~-------~--~----~

2. get position of cursor in EditText

Hi!

How does one determine the position of the cursor in
android.widget.EditText?

I am dealing with a situation where the user should be able to touch
the text view, positioning the cursor where their finger touched, and
then be able to press a virtual "backspace" button (on the screen),
expecting to erase the character before the cursor.

It is my understanding that I need the cursor position in the
substring to the task of deleting the preceding character. It seems as
though getCursorPosition() is missing.

Any information in this regard will be greatly appreciated.

Thank you.

--~--~---------~--~----~------------~-------~--~----~

3. commons logging - android logging

4. Do you know the Android Developers

5. Extract some information from an APK file

6. Use traceview to trace UI unrelated APIs

7. How, when do I join Android Developer Challenge II?