Android Question [Closed] Panel with a transparent part

asales

Expert
Licensed User
Longtime User
Is possible to create a round panel with a transparent part, like this picture below?

If yes, how can I do this?

Thanks in advance for any tip.

 
Last edited:

asales

Expert
Licensed User
Longtime User
They answer is yes, but you need to tell us what exactly are you trying to do.
I want to create a wheel like this below (no need to rotate like a roulette).

I click in a button and a part of image or panel in background, will be selected (rotated) and show in the transparent part of the front panel.

 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
You could make 2 imageview:
One with the wheel and one with the coverage with transparent slot.
Then rotate the wheel as needed.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User


 
Upvote 0

asales

Expert
Licensed User
Longtime User
Thanks. I saw and tried this lib several years ago, but I don't need a indicator and the rotate will not be random (I will move to selected sector).
In one open the order to rotate and show the sector will be: 1, 3, 5. On other open the order to selected the sectors will be 2, 4, 6 and so on.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
You could make 2 imageview:
One with the wheel and one with the coverage with transparent slot.
Then rotate the wheel as needed.
Thanks. I think in a panel because I want to made modifications in runtime.
But if I am unable to use the panels, I will move on to this approach.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Thank you all!

I change my mind. I will do the panel with a transparent part using a image, like @Sagenut says.

Now my other issue will be to create a round panel with sectors (with rotate labels in every sectors) and rotate the panel to fit the sector in transparent part of the image, but I'll open a new thread to this.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
It is possible to select a sector not randomly:
AwesoneWheel.Index=Value
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…