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. Debug in Dalvik

Hi,

For some reason, I need to print some runtime inforamtion
in Dalvik. I found System.out.println() and Log.i() cannot be
used in Dalvik java code. No idea where can I see the log
output from System.out.println(), and Log.java is not included
in Dalvik, it belongs to framework.

I don't want to write a log module in Dalvik from scratch
either. Dose anybody have idea regarding this problem??
Can I log something in Dalvik, for example libcore??

Thank you.

BW,
Davis
2008.12.03

-------------------------------------------------------------------
€€http://space.sina.com.cn/ )
--~--~---------~--~----~------------~-------~--~----~

2. XML Resource Parser

I am trying to read generic XML from a resource, I am calling
Resources.getXml(id) to get a parser.
Unlike other XmlPull parsers (including android's normal xml parser)
the first call to next seems to return START_DOCUMENT instead of
START_TAG. I have managed to work around this behaviour but it seems
to not comply with the XmlPull specification:
"Signalize that parser is at the very beginning of the document and
nothing was read yet. This event type can only be observed by calling
getEvent() before the first call to next(), nextToken, or nextTag
()). ."
--~--~---------~--~----~------------~-------~--~----~

3. Does Android support any XML Database??

4. How to hand in a callback in AIDL?

5. I found a link for G1 as a modem

6. Killer app - Sync SMS to google on the pc

7. feature/application idea