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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:59:00+00:00 2026-05-23T22:59:00+00:00

Android 2.1 or greater Suppose I have two images that are the same size,

  • 0

Android 2.1 or greater

Suppose I have two images that are the same size, one is a donut shape with transparency in the middle and outside the donut.

The other is a square image that is the same size as the donut

If they were overlayed they would look something like this (the donut would actually not be visible since the square would be on top of the Z stack)

Figure 1

What I would like to do is create a clipping path or any method really to display the portion of the square bitmap that falls inside the donut using a starting and stopping angle (which would change over time)

So for instance show the portion of blue square that is inside the donut starting at 0 degrees and ending at 40 degrees, as well as 180 and 270 degrees. Which would produce something like this.

Not even sure where to start, anyone have any ideas?

Figure 2

  • 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-23T22:59:01+00:00Added an answer on May 23, 2026 at 10:59 pm

    Haven’t tried myself but clipPath(Path path) might be what you are looking for. The hard part would be to setup the correct path to do the clipping with.

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

Sidebar

Related Questions

I have list with items having two textview and one imageview.I inflate the list
I have a SQLite database in Android with a table that contains longitude, latitude
I have a bitmap that I want to display in my Android app. This
Let's say I have an android app, and in that app I want to
Android comes with lots of system resources ( android.R ) that can be used
Can Android OS that is installed on actual devices be emulated in VMWare or
I have been developing an Android app and testing with a 1.5 AVD and
I have one question but it can probably be answered by one of several
(Note that I've searched online for the warnings I'm describing below, and have come
While creating an android project if i say that the Build Target of my

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.