First you can create one xml inside drawable folder
That xml will be responsible for the color of the border of the shape of the rectangle
You can create this border shape below the code
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <solid android:color="#B2E3FA" /> </shape> </item> <item android:left="5dp" android:bottom="5dp" android:top="5dp" > <shape android:shape="rectangle"> <solid android:color="#D8D8D8" /> </shape> </item> </layer-list>
Well, this will create the necessary border for the rectangular shape, you need to assign a background to this rectangle shape so that it is done as
android:background="@drawable/bg"
where bg is the name of the xml file that was saved in the transfer folder
After that, you need to place this triangle exactly under the rectangle.
I hope you understand my logic
Aamirkhan Feb 26 '14 at 13:23 2014-02-26 13:23
source share