Aug 26 | 8:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Aug 26 | 9:15 AM |
Refael O. | has entered the room |
Mark M. |
hello, Refael!
|
Mark M. |
how can I help you today?
|
Refael O. |
Hi mark !
|
Refael O. |
few seconds, upload a picture so i can show you something
|
Refael O. |
=]
|
Aug 26 | 9:20 AM |
Refael O. |
okie..
|
Refael O. | |
Refael O. |
in the image you can see my current UI..
|
Aug 26 | 9:25 AM |
Refael O. |
i have a little bit of a problem with it..
|
Mark M. |
yeah, something in the red portion of the large circle is blurry
|
Mark M. |
:-)
|
Refael O. |
View paste
|
Refael O. |
now, my problem starts with the fact my customer wants to put an image in the background, instead of a white background
|
Mark M. |
"put an image in the background" of the whole UI?
|
Refael O. |
yeah
|
Mark M. |
OK
|
Mark M. |
and now your use the circle for clipping is breaking down, right?
|
Refael O. |
now.. my view pager is a square.. and now because my circle image have a white background on the edges it is messing up the background image ofcourse
|
Refael O. |
how would you recommend to approach this?
|
Mark M. |
simple answer: tell the customer "no"
|
Mark M. |
complex answer: make the ViewPager contents themselves the same size as the circle with transparent outside of that
|
Aug 26 | 9:30 AM |
Mark M. |
then, have the space outside of the circle in your image also be transparent
|
Mark M. |
and have your overall background behind all of that
|
Mark M. |
you'd probably also need to figure out how to disable the ViewPager glow effect when you reach either end
|
Refael O. |
hmm.. is there a way to make my view pager the size of my circle with transparent outside?!
|
Mark M. |
well, the pager itself should be transparent, AFAIK
|
Mark M. |
it's what is in your pages that you need to worry about
|
Refael O. | |
Aug 26 | 9:35 AM |
Refael O. |
that's my new design pattern request
|
Mark M. |
is the red fuzzed-out portion of the large circle fixed, or does that animate with the page as the user swipes?
|
Refael O. |
the red color turns into purple on the next pager.. i have the liberty of choosing weather to animate it to the side or change the color with fade animation
|
Mark M. |
OK, so I'll ignore that for the moment
|
Refael O. |
could you explain exactly what you said earlier regarding the "complex" answer, i didn't really understand everything you said
|
Mark M. |
actually, what I had in mind won't work anyway
|
Refael O. |
aw ok
|
Mark M. |
next question: is this photograph background fixed? or will it change (e.g., user chooses wallpaper)?
|
Refael O. |
the background image is changing every 10 seconds in a fade animation.. its a weird UX in my opinion but that's what the customer wants..
|
Mark M. |
then I have no idea how to pull that off, sorry
|
Refael O. |
i have 20 images and it's random picked every 10 sec
|
Mark M. |
my guess is that you'd have to roll your own ViewPager replacement
|
Aug 26 | 9:40 AM |
Mark M. |
or otherwise arrange so that the swipe animations do not draw outside the circle
|
Mark M. |
so that your circle can have transparent pixels outside its circumference, and the photograph can show through
|
Refael O. |
i see
|
Mark M. |
the problem with ViewPager is that as you swipe pages, it will happily animate them for the full size of the ViewPager, which will go outside your circle
|
Refael O. |
exactly
|
Mark M. |
that's why you went with white pixels, to cover over that effect
|
Refael O. |
yup, that's exactly what i did
|
Mark M. |
another approach would be to somehow read in the pixels that are in the background image and paint them yourself on top of the circle exterior
|
Mark M. |
but I don't know if that will be practical speed-wise
|
Mark M. |
though, you'd only have to do the work once per photograph, so perhaps it's not completely insane
|
Refael O. |
hmm ok, I see it's troublesome as i thought, i think i'll try to talk my customer out of it..
|
Refael O. |
ok, no more questions then, as always, thanks a lot Mark! have a good day!
|
Mark M. |
you too!
|
Aug 26 | 10:00 AM |
Refael O. | has left the room |
Mark M. | turned off guest access |