I made a custom View… basically my own button type that resides in a
ListView.
I want it to change it's appearance on touch. So, in the touch listener, I
call invalidate().
Is this right?
It seems to repaint maybe half the time.
To get it to work fully, I had to also call invalidate() on
Thank you for the response!
I should also say that this only occurs upon creation of the activities,
and not when they resume or at any point thereafter. The only thing in
common that the various activities have is that they use canvas drawing
calls (and draw text), some are not even timed based
The throttling is simply a side effect of v-sync. Every paint request
is synced with the display's refresh rate. This means you can only
draw every ~16 milliseconds (== 60 fps.) Of course, if your
application cannot draw in 16 ms you will be synced every 2 frames and
you will fall to 30 fps.
On Su
Hi Romain,
If you don't mind, would you please describe how the implicit throttling
mechanism works, or, point to any documentation on it?
I think I am running into this, when my activities start, and the view is
being invalidated often, it is throttled it seems for a little while (5-10
second
There is an implicit throttling mechanism as of 4.1 but even then it's
bad. If you don't need to draw, don't draw. You're going to waste
battery.
On Thu, Oct 11, 2012 at 2:34 PM, bob wrote:
> As you may know, you can create a View subclass and then call invalidate()
> at the end of the painting m
As you may know, you can create a View subclass and then call invalidate()
at the end of the painting method.
This produces continuous updating.
Is this *really really* bad?
It sure is attractive due to its simplicity.
However, there is no explicit throttling mechanism, which can be a
Hi,
I am trying to redraw a selected rectangular region within my custom
view on a touch event.
To achieve this I determine the rectangle around the current
touchevent location and invoke invalidate(Rect currRect). Dispalying
the values of the rect show that the co-ordinates are for the
rectangle
Hi,
I'm doing my own MyLocationOverlay implementation to bypass extremely slow
current position display.
The problem that I've is that I want to make a little animation changing the
color of the position marker and the only way I know to redraw is to call
invalidate o MapView.
But that way I a
I am working on a card game, and using a custom ImageView for the
cards. I have an OnClickListener that handles the presses on the
cards.
What I want to happen is in some cases is:
- User presses a face down card
- Card displays face up
- Wait 1 second
- Card displays face down
Within the OnClic
Hi,
Thanks for reply...
It will refresh onDraw()?
On Thu, Dec 3, 2009 at 4:28 PM, sathya subbiah
wrote:
> Invalidate is used for updating the View display. Its like refreshing the
> view.
>
> Rgs,
> Sathya
>
> On Thu, Dec 3, 2009 at 5:32 AM, Sasikumar.S wrote:
>
>> Hi,
>>
>> What is the use
Invalidate is used for updating the View display. Its like refreshing the
view.
Rgs,
Sathya
On Thu, Dec 3, 2009 at 5:32 AM, Sasikumar.S wrote:
> Hi,
>
> What is the use of Invalidate() in android?...
>
> Any one know about these?...
>
> Thanks in advance
>
> --
> Thanks & Regards
> Sasikumar
Hi,
What is the use of Invalidate() in android?...
Any one know about these?...
Thanks in advance
--
Thanks & Regards
Sasikumar.S
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-develope
i have a gridview with a bunch of thumbnails in it. when it first
gets draw, I put in a default icon.
in a separate thread, i retrieve a bunch of images.
when all those images are done being retrieved, i'd like to force my
gridview to redraw all the thumbnails (or at least those that are
visibl
This is my problem. I have a main view, a TableLayout view, this view
has other views as its children added to it. One of the child views is
a custom view, MyView, that I created to draw graphics on it and to
receive click events. The other children are all buttons. When I click
on the MyView the
14 matches
Mail list logo