Office Hours — Today, August 18

Thursday, August 14

Aug 18
3:55 PM
Mark M.
has entered the room
Mark M.
turned on guest access
4:00 PM
Stas
has entered the room
Mark M.
hello, Stas
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
you can upload it via the "Upload a file" link on the right of the chat window
Stas
4:05 PM
Mark M.
um
you could try some negative margins, I gues
er, I guess
but if I wanted that look, I'd be running to the Android Arsenal and praying that somebody has a library for it
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
4:10 PM
Mark M.
sorry, other than the suggestions I list above, I don't have any other recommendations
that sort of effect is not something I normally mess with
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
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
the nice thing about AdapterView is its help in recycling rows, and the things the rows reference (e.g., bitmaps)
so, you're welcome to try the RelativeLayout-in-ScrollView approach, but you may just be swapping in one problem for another
4:20 PM
Stas
View paste
I tried override OnchildDraw in ListView with mCamera.translate(0, 0, -60); but rounding from right invisible.
Mark M.
I have never tried overriding onChildDraw(), so I have no idea how well that approach would work, sorry
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?
ups, show instead load )
Mark M.
in the book, I demonstrate the use of Picasso and Ion
I have not used Universal Image Loader personally
Stas
not memory cach in Picasso
cache
Mark M.
they rely on the HTTP layer for that, correct
Ion offers memory caching
with regards to performance, use Traceview to determine where in the library the time is being spent
it's certainly possible that you would see some benefit from saving scaled images, if you anticipate needing them at that scaled resolution later
4:40 PM
Stas
have ion disk caching?
Mark M.
yes, at least according to the README
View paste
"The Ion Image load API has the following features:

    Disk and memory caching
    Bitmaps are held via weak references so memory is managed very effeciently
    ListView Adapter recycling support
    Bitmap transformations via the .transform(Transform)
    Animate loading and loaded ImageView states
    DeepZoom for extremely large images"
4:45 PM
Stas
Thank you very much! Good Bye.
4:50 PM
Mark M.
the chat transcript will be posted to http://commonsware.com/office-hours/ shortly after the chat ends
5:00 PM
Stas
has left the room
Mark M.
turned off guest access

Thursday, August 14

 

Office Hours

People in this transcript

  • Mark Murphy
  • Stas

Files in this transcript