How can we create ballon drawable shape as below. where we can change the color of it dynamically.
First you can create one xml inside drawable folder
That xml will be responsible for the border color of rectangle shape
You can create such border shape with below code
-
-
well this will create a required border to rectangle shape, you need to assign background of that rectangle shape with this drawable like this
android:background="@drawable/bg"
where bg is xml file name which has been saved on drawable folder
After that you need to put that triangle exactly below to rectangle object.
I hope you understood my logic