Programmatically Inflate View with pre-defined measures

后端 未结 2 1484
Happy的楠姐
Happy的楠姐 2021-01-24 06:44

I have a layout resource like this and a I want to inflate it with the layout width and height:




        
2条回答
  •  面向向阳花
    2021-01-24 07:08

    One option is to define constants for layout_width and layout_height in the form of attributes and access them programatically in getBitmap.

提交回复
热议问题