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

  • Home
  • SEARCH
  • 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 9065113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:25:23+00:00 2026-06-16T16:25:23+00:00

(this is just a screenshot from another app) I’m trying to achieve this using

  • 0

PIC

(this is just a screenshot from another app)

I’m trying to achieve this using http://www.jjoe64.com/p/graphview-library.html

I want to have a crosshair appear when the user touches the graph and to have show the value of the X axis of that point.

  • 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-16T16:25:24+00:00Added an answer on June 16, 2026 at 4:25 pm

    You will need a method to translate X-position on the screen to X-position on the graph, and display the Y value that corresponds with the looked up X position in the graph.

    Most simplistic way I can think of would be to get the pixel width of the screen (assuming your graph fits the entire width), and register for touch events by overriding this method below in the view:

    @Override
    public boolean onTouchEvent(MotionEvent event)
    {
     //TODO get x position tapped on the view and translate to x position on graph
    }
    

    Inside that method you can get hold of the x-coordinate tapped (from the MotionEvent object), and then translate to the graph’s position.

    For example, you may work out what percentage of the way along the screen is tapped (say the screen width is 400px and the user taps 300px along, thats 75% of the length) then move this percentage through the graph’s data points (so 75% through the ordered dataset)

    You can then display a popup or add something to your onDraw method that adds the data point as a small overlay.

    Note: You would need the raw data points to perform the lookup, unless you are going to try and guess what the graph’s points correspond to on the y-axis…

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

Sidebar

Related Questions

From this question:- https://stackoverflow.com/questions/1342611/is-there-a-webservice-api-to-grab-a-screenshot-of-another-website and some other questions/google I got some results like:-- http://www.bitpixels.com/
I'm trying to create an app similar to the one in the screenshot: https://i.stack.imgur.com/Xhi5Z.jpg
I fear this just may not be possible, but I'm trying to create a
So for some reason this just doesn't make sense to me. What Im trying
Below is a small screenshot from within RubyMine 3.1. I am just starting to
I've just downloaded the new PHPStorm EAP, and noticed this screenshot: And I like
I have an issue with character encoding: I have this page: http://www.studiomille.jp/class/ (its in
I just started using Selenium 2 tonight so this will be very basic (I
This just started happening three weeks or so ago. The content of my website
This just saves time. Since I already have a web applciation. I can just

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.