I was tring to make a ImageView that follows a shape of another ImageView's source, or even its own background. I want something like this:
But I'm getting this:
When I try this:
<ImageView android:id="@+id/mimage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="80dp" android:src="@drawable/ic_chat_conteudo_balao" android:background="@mipmap/pomba" android:maxWidth="80dp"/>
Or this:
When I try this:
<ImageView android:id="@+id/mimage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxHeight="80dp" android:src="@mipmap/pomba" android:background="@drawable/ic_chat_conteudo_balao" android:maxWidth="80dp"/>
I've also tried following this answer, but it was not what I want:
Well, I don't know what to do anymore. Is there a way to put a bitmap inside another bitmap following its shape?
Here are the images I'm working on
I think this is not a duplicate because I am working with 9-patch, it's a little bit different as karaokyo said.