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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:34:02+00:00 2026-06-17T11:34:02+00:00

There are two image black and blue while touching on blue image it should

  • 0

There are two image black and blue while touching on blue image it should fill like progress, I achieved using multiple cuts images without using canvas but not get smoothness on touch, like 100 Pushups application.

Actually I’m trying to achieve similar like 100 Pushups application as I mention above, I got one link to but that’s achieved using canvas and I want to achieve using Images, I Google but no luck, any link or tutorial similar to that application(100 push-ups)?

enter image description here

  • 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-17T11:34:03+00:00Added an answer on June 17, 2026 at 11:34 am

    Here’s something I came up with using clip path. I’m using following images (coder colours) out of which background is a solid one and foreground one contains only blue circle on transparent background. First background image is drawn onto screen, then clip path is set so that progress image, foreground one, is drawn properly on top of it.

    Background image; https://i.stack.imgur.com/Rvxxj.png
    Foreground image; https://i.stack.imgur.com/1aTdG.png

    And the code;

    private class ProgressView extends View {
    
        private Bitmap bgBitmap;
        private Bitmap fgBitmap;
        private RectF fullRect = new RectF();
        private Path clipPath = new Path();
    
        public ProgressView(Context context) {
            super(context);
            bgBitmap = BitmapFactory.decodeResource(
                                       context.getResources(), R.drawable.bg);
            fgBitmap = BitmapFactory.decodeResource(
                                       context.getResources(), R.drawable.fg);
        }
    
        @Override
        public void onDraw(Canvas c) {
            fullRect.right = getWidth();
            fullRect.bottom = getHeight();
    
            c.drawBitmap(bgBitmap, null, fullRect, null);
    
            float angle = SystemClock.uptimeMillis() % 3600 / 10.0f;
    
            clipPath.reset();
            clipPath.setLastPoint(getWidth() / 2, getHeight() / 2);
            clipPath.lineTo(getWidth() / 2, getHeight());
            clipPath.arcTo(fullRect, -90, angle);
            clipPath.lineTo(getWidth() / 2, getHeight() / 2);
            c.clipPath(clipPath);
    
            c.drawBitmap(fgBitmap, null, fullRect, null);
    
            invalidate();
        }   
    }
    

    Should it not be too difficult to replace my temporary images with decent ones and update the angle in a more appropriate way.

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

Sidebar

Related Questions

Is there a way to overlay/overlap two or more images using one div only?
the pixman image library can draw radial color gradients between two circles. I'd like
I'm trying to draw grayscale image in color as texture in OpenGL using two
Had for an photo art project using two images. The first image would be
This below image is my eclipse of my two different projects. And each black
what I need: - there are two images: a background (large) and a proifile
I have three images, two of these images animate as follow and third image
I have read a document that they say: In java there two types of
There are two intents on the receiver side which are called from the same
There are two table s : one is the master and one the detail

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.