title: Not able to specify id of the layout file
body: <p><a href="https://i.stack.imgur.com/BBEo6.jpg" rel="nofollow noreferrer">1</a>I am trying to dynamically add widgets to my app for which I need the layout id, It is not present in the XML file, so I declared one and now when I am trying to access it using the "R.id.layoutid" it is showing as "not resolved" [screenshots<a href="https://i.stack.imgur.com/pzdul.jpg" rel="nofollow noreferrer">][1]</a>[xml file] </p>