Shadow in custom list

Hi can someone please share the exact steps to make a shadow in custom lists on Android? @ChristopheHK suggests the following but I don’t know how to make a “shadow rectangle”: “Insert the non-shadow rectangle within the shadow rectangle, so that the shadow should follow the length and height of the non shadow rectangle” (from this thread: How to Properly Make Shadow with Rectangle)

Thanks.