{"id":2364,"date":"2022-08-30T15:24:15","date_gmt":"2022-08-30T15:24:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/android-inflating-multiple-xml-and-objects-onto-one-single-xml-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:15","modified_gmt":"2022-08-30T15:24:15","slug":"android-inflating-multiple-xml-and-objects-onto-one-single-xml-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/android-inflating-multiple-xml-and-objects-onto-one-single-xml-collection-of-common-programming-errors\/","title":{"rendered":"Android: Inflating multiple .XML and objects onto one single .XML-Collection of common programming errors"},"content":{"rendered":"<p><strong>Object:<\/strong> (Running API 8) Programmatically, I am trying to inflate the following onto a single layout, <em>main.xml<\/em><\/p>\n<ul>\n<li>bg_content1.xml<\/li>\n<li>bg_content2.xml<\/li>\n<li>@+id\/img_logo<\/li>\n<li>@+id\/str_username<\/li>\n<\/ul>\n<p><strong>Note:<\/strong><\/p>\n<ol>\n<li>@+id\/img_logo is an id of an ImageView located in bg_content3.xml<\/li>\n<li>@+id\/str_username is an id of a TextView located in bg_content4.xml<\/li>\n<li>Please don&#8217;t ask me why I have to inflate multiple layouts and objects onto the other layout. I am trying to optimize my layouts for maintainability purposes.<\/li>\n<\/ol>\n<p><strong>main.xml<\/strong><\/p>\n<pre><code>\n\n<\/code><\/pre>\n<p><strong>bg_content1.xml<\/strong><\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:29:24. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Object: (Running API 8) Programmatically, I am trying to inflate the following onto a single layout, main.xml bg_content1.xml bg_content2.xml @+id\/img_logo @+id\/str_username Note: @+id\/img_logo is an id of an ImageView located in bg_content3.xml @+id\/str_username is an id of a TextView located in bg_content4.xml Please don&#8217;t ask me why I have to inflate multiple layouts and objects [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2364","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2364"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2364\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}