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.

panel2.png
 
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.

—Pngtree—wheel of fortune wheel lucky_4426573b.png
—Pngtree—wheel of fortune wheel lucky_4426573c.png
 
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
video1-gif.70464


 
Upvote 0

asales

Expert
Licensed User
Longtime User
video1-gif.70464


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
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.
It is possible to select a sector not randomly:
AwesoneWheel.Index=Value
 
Upvote 0
Top