Aug 18 | 3:55 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Aug 18 | 4:00 PM |
Stas | has entered the room |
Mark M. |
hello, Stas
|
Mark M. |
how can I help you today?
|
Stas |
Hello, Mark!
|
Mark M. |
Stas: do you have a question?
|
Stas |
I have problem with listView. I want to do overlap items. Example picture: https://drive.google.com/file/d/0B9fIktVuXDazWU...
|
Mark M. |
um, I don't have permission to view that link
|
Mark M. |
you can upload it via the "Upload a file" link on the right of the chat window
|
Stas | |
Aug 18 | 4:05 PM |
Mark M. |
um
|
Mark M. |
you could try some negative margins, I gues
|
Mark M. |
er, I guess
|
Mark M. |
but if I wanted that look, I'd be running to the Android Arsenal and praying that somebody has a library for it
|
Mark M. |
or, if there's an existing app that you know of that offers this, use uiautomatorviewer or Hierarchy View to see how they did it
|
Stas |
i'm developing this app. I tried override method in listview, but did not work
|
Aug 18 | 4:10 PM |
Mark M. |
sorry, other than the suggestions I list above, I don't have any other recommendations
|
Mark M. |
that sort of effect is not something I normally mess with
|
Mark M. |
if you have another question, go right ahead -- it's a quiet chat room today :-)
|
Stas |
maybe use RelativeLayout instead listView and add items in code?
|
Mark M. |
that could work... but how many rows will you have?
|
Stas |
About 20-30
|
Aug 18 | 4:15 PM |
Mark M. |
is the screenshot that you uploaded a mockup of what the app is supposed to look like?
|
Stas |
yes
|
Mark M. |
20-30 bitmaps like that could get you in some trouble from a memory management standpoint, depending upon what else you are doing
|
Mark M. |
the nice thing about AdapterView is its help in recycling rows, and the things the rows reference (e.g., bitmaps)
|
Mark M. |
so, you're welcome to try the RelativeLayout-in-ScrollView approach, but you may just be swapping in one problem for another
|
Aug 18 | 4:20 PM |
Stas |
View paste
|
Mark M. |
I have never tried overriding onChildDraw(), so I have no idea how well that approach would work, sorry
|
Aug 18 | 4:35 PM |
Stas |
Ok, thanks. Can you advice lib for load and show bitmap with memory cache? I use Universal Image Loader, but img load slowly. maybe resize them befor?
|
Stas |
ups, show instead load )
|
Mark M. |
in the book, I demonstrate the use of Picasso and Ion
|
Mark M. |
I have not used Universal Image Loader personally
|
Stas |
not memory cach in Picasso
|
Stas |
cache
|
Mark M. |
they rely on the HTTP layer for that, correct
|
Mark M. |
Ion offers memory caching
|
Mark M. |
with regards to performance, use Traceview to determine where in the library the time is being spent
|
Mark M. |
it's certainly possible that you would see some benefit from saving scaled images, if you anticipate needing them at that scaled resolution later
|
Aug 18 | 4:40 PM |
Stas |
have ion disk caching?
|
Mark M. |
yes, at least according to the README
|
Mark M. | |
Mark M. |
View paste
|
Aug 18 | 4:45 PM |
Stas |
Thank you very much! Good Bye.
|
Aug 18 | 4:50 PM |
Mark M. |
the chat transcript will be posted to http://commonsware.com/office-hours/ shortly after the chat ends
|
Aug 18 | 5:00 PM |
Stas | has left the room |
Mark M. | turned off guest access |