TicketView icon indicating copy to clipboard operation
TicketView copied to clipboard

Can be ViewGroup?

Open enriquebautista opened this issue 6 years ago • 10 comments

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

enriquebautista avatar Aug 27 '18 21:08 enriquebautista

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

vipulasri avatar Aug 28 '18 00:08 vipulasri

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.

enriquebautista avatar Aug 28 '18 00:08 enriquebautista

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

vipulasri avatar Aug 28 '18 00:08 vipulasri

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

vipulasri avatar Aug 28 '18 00:08 vipulasri

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

enriquebautista avatar Aug 28 '18 00:08 enriquebautista

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

vipulasri avatar Aug 28 '18 00:08 vipulasri

@vipulasri Hi!, any sugguestion?

enriquebautista avatar Sep 10 '18 17:09 enriquebautista

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

vipulasri avatar Sep 10 '18 23:09 vipulasri

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

andreipataquine avatar Mar 20 '19 18:03 andreipataquine

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.

CoffeeMomoPad avatar Sep 23 '19 06:09 CoffeeMomoPad