{"id":320,"date":"2022-08-30T14:59:23","date_gmt":"2022-08-30T14:59:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/10\/27\/android-inflateexception-in-custom-listview-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:59:23","modified_gmt":"2022-08-30T14:59:23","slug":"android-inflateexception-in-custom-listview-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/android-inflateexception-in-custom-listview-record-and-share-programming-errors\/","title":{"rendered":"Android: InflateException in custom ListView-Record and share programming errors"},"content":{"rendered":"<p>While inflating custom ListView row layout I&#8217;m getting this exception.<\/p>\n<pre><code>E\/AndroidRuntime(1241): android.view.InflateException: Binary XML file line #6: Error inflating class \n<\/code><\/pre>\n<p>See the code below for reference&#8230;<\/p>\n<p><strong>CustomListViewAdapter.java<\/strong><\/p>\n<pre><code>public View getView(final int position, View convertView, ViewGroup parent) {\n    holder = null;\n    ListViewRowData rowItems = (ListViewRowData) getItem(position);\n\n    LayoutInflater inflater = (LayoutInflater) context\n            .getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n\n    if (convertView == null) {\n        convertView = inflater.inflate(R.layout.list_row, null); \/\/<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-10-27 22:37:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>While inflating custom ListView row layout I&#8217;m getting this exception. E\/AndroidRuntime(1241): android.view.InflateException: Binary XML file line #6: Error inflating class See the code below for reference&#8230; CustomListViewAdapter.java public View getView(final int position, View convertView, ViewGroup parent) { holder = null; ListViewRowData rowItems = (ListViewRowData) getItem(position); LayoutInflater inflater = (LayoutInflater) context .getSystemService(Activity.LAYOUT_INFLATER_SERVICE); if (convertView == null) [&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-320","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/320","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=320"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}