{"id":2235,"date":"2022-08-30T15:23:10","date_gmt":"2022-08-30T15:23:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/why-does-my-layout-cause-my-app-to-crash-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:23:10","modified_gmt":"2022-08-30T15:23:10","slug":"why-does-my-layout-cause-my-app-to-crash-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/why-does-my-layout-cause-my-app-to-crash-collection-of-common-programming-errors\/","title":{"rendered":"Why does my layout cause my app to crash?-Collection of common programming errors"},"content":{"rendered":"<p>And what are the rules I need to keep in order to avoid a layout crash?<\/p>\n<p>For example, I have this layout with just 4 Buttons and 4 TextView. I really don&#8217;t know why it causes crash on some devices and on other devices it works ok.<\/p>\n<pre><code>\n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n    \n    \n\n\n<\/code><\/pre>\n<p>The crash appears only after clicking the button, so it may be related to the TextViews that appear after them, but I don&#8217;t know why the TextViews cause the layout crash. I assume it is a layout issue since the horizontal layout of the same application works OK.<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-05 09:21:25. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>And what are the rules I need to keep in order to avoid a layout crash? For example, I have this layout with just 4 Buttons and 4 TextView. I really don&#8217;t know why it causes crash on some devices and on other devices it works ok. The crash appears only after clicking the button, [&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-2235","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2235","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=2235"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2235\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}