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 3872684
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:57:09+00:00 2026-05-19T21:57:09+00:00

I have an app that allows the user to scale in for a closer

  • 0

I have an app that allows the user to scale in for a closer view of a custom View using the ScaleGestureDetector.

What I would like to do is show the user a thumbnail of the larger screen when they are zoomed in. I’d like to show the thumbnail anchored to the bottom left corner of the visible area of the View, such that as the user scales in, the thumbnail stays visible.

My problem is that while I am able to determine when I should be showing the thumbnail in my View’s onDraw() method, I can’t figure out how to anchor the shape I wish to draw (a translucent Rect) in the visible corner. No problem drawing it to the canvas using absolute coordinates, but as soon as I scale in, it stays in the absolute corner.

I do track the current scaling factor as well as the scaling center (x,y), so I could likely do some calculations relating to the known window size, and these values to determine the corner, but just wondering if there are any routines or better ways to handle this.

Thanks for any info,

Paul

  • 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-05-19T21:57:10+00:00Added an answer on May 19, 2026 at 9:57 pm

    Figured out how to get the dimensions of the currently viewable area when scaling a canvas; calling canvas.getClipBounds(); in my onDraw gave me a Rect representing the ‘clipped’ canvas. From this I was able to access .top, .left, bottom .right and determine where to locate the thumbnail closeup view.

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

Sidebar

Related Questions

I have an app that allows the user to choose an image, at design
I have an app that allows the user to choose a picture from their
I have a small tab on an app that allows user to lookup a
I have an app that allows a user to use JQuery and Javascript to
I have an app that allows sends the user an alert through the notification
I have a Winforms app that allows the user to drag and drop some
I have an Android app that allows the user to record data (such as
I have a small app that allows the user to draw on the screen
I have a .NET app that allows a user to choose their own language
I have a Django app that allows the user to create variables and name

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.