Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8784657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:09:10+00:00 2026-06-13T21:09:10+00:00

I have the following code snippet, that transforms a set of bounds using the

  • 0

I have the following code snippet, that transforms a set of bounds using the canvas’ current transformation matrix.

    final RectF bounds = renderer.computeBounds
    activeCanvas.getMatrix().mapRect(result, bounds);
    return bounds;

However, with the latest API level (16) I get a warning stating

The method getMatrix() from the type Canvas is deprecated

as confirmed by the API 16 Diff Specification.

Which is fine and all, but the current documentation on Canvas.getMatrix() doesn’t mention the deprecation, nor does it offer an alternative. As a workaround I now simply suppress this warning, but I would really like to know what the new and improved ™ way of doing this looks like.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:09:11+00:00Added an answer on June 13, 2026 at 9:09 pm

    The Matrix is now handled by the view rather than the Canvas. I unfortunately can’t explain you Google’s decision on this one, but you should be able to reproduce the exact same things with the 2 ways.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following code snippet that i use to compile class at the run
I have the following code snippet: using (SPSite site = new SPSite(this.ListAddress)) { using
I have the following code snippet. I am compiling using the sun studio 12
I have the following code snippet that shows a list of numbers, and highlights
Hi I have the following code snippet. The idea behind it is that I
I have the following code snippet that produces a compilation error: public List<string> batchaddresses;
I have the following Groovy code snippet that is attempting to use operator overloading
I have the following code snippet that builds chained select boxes based on data
I have the following code snippet which uses'event' My fellow developers argue that the
I have the following code snippet that converts a const char * to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.