A
A
Andrey Myvrenik2016-04-05 13:12:22
Android
Andrey Myvrenik, 2016-04-05 13:12:22

How to customize the form of the View's appearance?

I have a View with a background color that looks like a rectangle by default:
a2df1f6f2ebf43f680005fe16a947ad3.png
I need to change the shape of the view so that it looks, for example, like in the picture below.
dbc34726de8547b28bb3b78f737b2f9e.png
Where white is the invisible (cut off) part of the view. What are the options for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2016-04-05
@gim0

You make a custom view, override onDraw (), draw as you like in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question