I have a layout resource like this and a I want to inflate it with the layout width and height:
One option is to define constants for layout_width and layout_height in the form of attributes and access them programatically in getBitmap.
layout_width
layout_height
getBitmap