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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:52:35+00:00 2026-05-17T21:52:35+00:00

I have a large image on the screen and I want to display a

  • 0
 I have a large image on the screen and I want to display a small image on that image where I touch the screen. but I do not know how to change the position of the image when I touch on the screen and the small image must display where ever I touch on screen.

any suggestions or hint will be appreciative.

thanks

  • 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-17T21:52:35+00:00Added an answer on May 17, 2026 at 9:52 pm

    Suppose you have your moving bitmap already in an ImageView which is part of your RelativeLayout.
    Whenever the user touches the screen, you just have to change the position of the ImageView, by changing its margins.

    You should try something like this:

             @Override
         public boolean onTouchEvent(MotionEvent event) {
    
                int action = event.getAction();         
    
                if (action == MotionEvent.ACTION_DOWN) 
                {    
                RelativeLayout.LayoutParams params = myImageView.getLayoutParams();
                params.setMargins(event.getX(),event.getY(), 0, 0);
                myImageView.setLayoutParams(params);
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a splash screen image that I display with splash.showFullScreen() but it doesn't
I have a large Png image file that I would like to display and
Good morning. I have an image that is large as all display width. I
I have a large image which after labeling has about 500 features. I know
I have a page that has a large image on it with a number
I have a website that requires a very large background image. The page loads
I have a site that uses a large centered background image, which naturally loads
I have managed objects that have image properties. Since storing large blobs in CoreData
I have an interface that has large numbers of controls, see image below. Interface
I have implemented a Three20 Image Gallery into my App. I want to change

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.