How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 10:54:21 GMT


Sponsored Links
 android.view.View.invalidate(int l, int t, int r, int b) can mark the
the area defined by the rect (l,t,r,b) as needing to be drawn.
But how does View update only the dirty area specified by the rect?
Is it wise enough to redraw only the dirty area even if the onDraw is
customized to update the whole view?

I read some sources and searched in google developer group. No answer
to this question was found.

Would anybody please kindly explain that to me?

Thanks in advance.

FBear

--~--~---------~--~----~------------~-------~--~----~



How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 17:21:35 GMT


 Do you mean that onDraw(Canvas) will ignore the drawing call in it
when the affected area is not in the dirty area?
I can hardly believe it it so wise.
How about the drawing call which affected area overlaps with the dirty
area?




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

by FBear » Sat, 07 Mar 2009 22:17:08 GMT


 Thank you very much!



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android can't prompt busybox httpd authentication for login with webwiew

I am writing a android app to load a webpage that busybox httpd 
authentication is needed.

I load the page with loadUrl like following:

       public void onCreate(Bundle savedInstanceState) {

      super.onCreate(savedInstanceState);
      setContentView(R.layout.main); 

    mWebView = (WebView) findViewById(R.id.webview);

    mWebView.setWebViewClient(new HelloWebViewClient());
    mWebView.getSettings().setJavaScriptEnabled(true);       

    mWebView.setWebChromeClient(new WebChromeClient()
    {
        @SuppressWarnings("unused")
        public boolean onJSAlert(WebView view, String url, String message, 
JsResult result)
        {
            return true;
        }

        public boolean onJsPrompt(WebView view, String url, String message, 
String defaultValue, JsPromptResult result)
        {
            return true;    
        }

        public boolean onJsConfirm (WebView view, String url, String message, 
JsResult result)
        {
            return true;
        }
    });

mWebView.loadUrl(strURI); 

}

But it can't prompt the authentication, instead it shows unauthorized 401. 
It is able to prompt the authentication when using browser. 

Please help!!!!!

-- 

2. Sign up on my app using Google account from AccountManager

Hello. Is it possible to identify user using his google account instead of 
typing email and password into registration form?
If yes, then is it possible to identify this user/verify auth token on 
website (out from android)?

For example:

User clicks "Signup with Google" button in my android app -> and then he is 
able to sign in on PC or Mac on website using his Google account.

or

User signs up on website with his google account (it is obviously possible) 
and then he is able to sign in on my android app with his google account, 
attached to phone.

I think, this is beautiful and in future users will sign in everything using 
their only one social account, but I dont know is it possible to implement 
now.

-- 

3. accept incoming file request programmatically

4. ActivityGroups in Tab Problem

5. Honeycomb Preview SDK: HTTP Live Streaming support validation

6. Lodsys Threatens to Sue App Store Developers Over In-App Purchases and Upgrade Links

7. NFC send Url p2p