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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:52:42+00:00 2026-05-24T06:52:42+00:00

OK, Brief recap, Was asked to create an app for work that records data

  • 0

OK, Brief recap, Was asked to create an app for work that records data specific data and display it to the screen when finished. So it would function like so.

press start > press stop > display results.

However, I have just been told by the IT director of my company that he wants to display information in needle graphs (g-force, average speed, top speed) and also wants a flashy way of displaying the others (time taken, distance traveled)

My initial idea is this:

create a needle gauge like thisgauge, but on a smaller scale and have the digit value display below or beside the graph and to just display the distance traveled and time taken displayed as alarm clock style digits. This would all run down the left hand side of the screen in a thin column and then hava a map displaying the starting location and end location with the route taken for the journey

basically I would like it to look like this map (sorry for the crudeness of the drawing)
Something along these lines would be perfect!

I think I could work out the map business and the digits for the time and distance readouts but I have never done any really fancy UI stuff.

How would I get started making the needle gauge?

I was thinking of trying a horizontal bar gauge forst maybe? Incase I cant get the needle gauge to work.

Also, I only have a til tuesday! :S

  • 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-24T06:52:43+00:00Added an answer on May 24, 2026 at 6:52 am

    invision the following very basic idea:

    We have our Custom View with a background image which is the gauge without the needle!

    So we first implement this using a class that extends View

    public class ourGauge extends View {
    
        private Bitmap bgImage = null;
    
        public ourGauge(Context context, Bitmap bgImage) {
            super(context);
            this.bgImage = bgImage;
        }
    
        public ourGauge(Context context) {
            super(context);
        }
    
        @Override
        public void onDraw(Canvas canvas) {
            super.onDraw(canvas);
            canvas.drawBitmap(bgImage, 0, 0, null);
        }
    
    }
    

    Now lets add a needle

    public class ourGauge extends View {
    
        private Bitmap bgImage = null;
        private int indicator;
        Paint paint = new Paint(); 
    
        public ourGauge(Context context, Bitmap bgImage) {
            super(context);
            this.bgImage = bgImage;
        }
    
        public ourGauge(Context context) {
            super(context);
        }
    
        public void setIndicator(int indicator){
            this.indicator = indicator;
            invalidate();
        }
    
        @Override
        public void onDraw(Canvas canvas) {
            super.onDraw(canvas);
            canvas.drawBitmap(bgImage, 0, 0, null);
            //you could set color based on indicator (speed or sth)
            paint.setColor(Color.BLACK); 
            canvas.drawLine(0, 0, 20, 20, paint);
            //you have to find the formula to get from where to where the line should drawn
        }
    
    }
    

    To make it better

    1. Don’t draw the needle using drawLine but rather make it a shape
      with dimensions
    2. To create dynamic labels for speeds, you should draw them too
    3. etc
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Brief Description of the app: I have written a Delphi application that allows a
Let's put Heisenberg aside for a brief moment. How would I go about to,
Basically, I would like a brief explanation of how I can access a SQL
Brief: I work in a 2-men team (we may expand in future). We've got
brief history. I have a little reporting tool that I am creating that uses
Brief summary: I need a script/plugin for Firefox that selects the load next 25
Brief question, beginner's work on Ruby/Rails. Here's my view: <h1>News</h1> <%= @posts.each do |post|
I would like a brief and easy way to strip tags from an XHTML
Brief blurb, My skill in .net has been called innovative but I would prefer
Brief introduction: I have this ASP.NET Webforms site with the particularity that it doesn't

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.