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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:39:29+00:00 2026-05-23T02:39:29+00:00

I have a layout structured as follows: LinearLayout1     LinearLayout2         EditText I am applying a

  • 0

I have a layout structured as follows:

LinearLayout1
    LinearLayout2
        EditText

I am applying a ScaleAnimation to LinearLayout1 using a LayoutAnimationController so that all of the views in the hierarchy are scaled by the same amount.

After applying the ScaleAnimation, the views are all scaled correctly, but the EditText no longer responds to clicks that fall outside the space it originally occupied. In other words, it appears that the clickable area for the EditText does not scale along with the visual representation.

Is there a solution to this problem or I am missing before or after calling the ScaleAnimation?

  • 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-23T02:39:30+00:00Added an answer on May 23, 2026 at 2:39 am

    In case anyone else is looking for the answer to this problem, here is the solution I came up with. I capture click events in LinearLayout1 and do a manual recursive hit test down the view hierarchy using getHitRect and applying the scaling factor to the dimensions received.

    Here is my implementation of the hit test for a view.

    public boolean scaledHitTest(float zoomScale, int x, int y) {
            Rect rect = new Rect();
            getHitRect(rect);
            rect.top = (int) (rect.top * zoomScale);
            rect.bottom = (int) (rect.bottom * zoomScale);
            rect.left = (int) (rect.left * zoomScale);
            rect.right = (int) (rect.right * zoomScale);
    
            return rect.contains(x, y);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a layout that is working, but it has one very annoying problem..
I have the layout as follows: <div id=outerwrap> <div id=innerwrap> <div id=centerc>...</div> <div id=rightc
I have a layout as follows: <div style=width: 300> <div style=width: 300>Some Content</div> </div
I have this layout that works correctly, a relative layout with a text view
Simple - I have a layout that is 800 by 600. When I press
I have a backward compatible app which is using screen specific layout (only for
I have a structure that more or less follows this pattern: struct sTruct {
I want to have a 3x3 grid layout structured like this: _ _ _
I have a 2 column layout, which structured something like this: html structure: #container
I have a layout which uses min-width and works great. So I came to

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.