Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can be ViewGroup? #12

Open
enriquebautista opened this issue Aug 27, 2018 · 10 comments
Open

Can be ViewGroup? #12

enriquebautista opened this issue Aug 27, 2018 · 10 comments

Comments

@enriquebautista
Copy link

How i can obtain this layout with this library?
ImageView with inverter rounded corners or based on shape of layout like view.setClipToOutline(true);
Thanks.
29

@vipulasri
Copy link
Owner

What do you mean by inverted rounded corners ? Can show me a sample screenshot/design ?

@enriquebautista
Copy link
Author

What I want to achieve is the screenshot that I shared. The inverted rounded border is only if you look at the top image. But in itself, what I want to achieve is that the image can have the shape of the TicketView, specifically the arcs of the half, since otherwise the image would be covering half said arcs.

@vipulasri
Copy link
Owner

Have you tried sample app code in the repo, I think I have made a similar kind of view.

@vipulasri
Copy link
Owner

In example activity code, look at the XML how I divided the view. With little inspiration from that you can build this view.

@enriquebautista
Copy link
Author

yep, but TicketView extends View, and all views draw top of TicketView, and i can't mask the top image. And result in this:
unnamed

@vipulasri
Copy link
Owner

Okay let me see. what can be done, in this scenario

@enriquebautista
Copy link
Author

@vipulasri Hi!, any sugguestion?

@vipulasri
Copy link
Owner

@enriquebautista I have to re-write the layout for this work, which will take some time.

@andreipataquine
Copy link

this issue have one solution? I need to put background color, like the enriquebautista image, but not working!

@CoffeeMomoPad
Copy link

Hello @vipulasri, any update on this? I've been trying to pull the Viewgroup conversion off (through extending RelativeLayout) but I'm pretty new in Android (2 months to be exact) so I don't know what I'm missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants