{"id":54001,"date":"2021-12-16T17:35:34","date_gmt":"2021-12-16T12:05:34","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=54001"},"modified":"2022-01-06T19:43:03","modified_gmt":"2022-01-06T14:13:03","slug":"minimize-number-of-layout-inflation-in-recyclerview-adapter","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/","title":{"rendered":"Minimize number of layout inflation in RecyclerView Adapter"},"content":{"rendered":"<p>RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of layout inflation for RecyclerView.Adapter. As we know layout inflation is an expensive process so this will increase the overall performance.<\/p>\n<h4><b>Few important things to keep in mind when sharing a `ViewPool`.<\/b><\/h4>\n<p>1. RecycledViewPool is not binded to a Context but since it storing Views it is equivalent to having a Context of the Activity.<br \/>\nTherefore the shared Views should be within the same Activity. We can share `ViewPool` within multiple Activties too but this way it goes out of scope against a Context which might cause Memory Leaks. Hence its recommended to share a View Pool within an Activity only i.e it should be Activity scoped so that it does not live longer than the Activity. Since its activity scoped we will probably having `RecycledViewPool` inside Activity, we can also have it inside `ViewModel` but it&#8217;s not a good idea to put it inside `ViewModel`.<\/p>\n<p>2.Shared ViewHolders need to have the same ViewType then only it can be picked from RecycledViewPool.<\/p>\n<p>3. Every RecyclerView.LayoutManager that shares the pool needs to have recycleChildrenOnDetach flag set to true so that views will be available to other RecyclerViews immediately. `recycleChildrenOnDetach` flag is available in official LayoutManagers like LinearLayoutManager and GridLayoutManager.<\/p>\n<h4><b>LinearLayoutManager#setRecycleChildrenOnDetach<\/b><\/h4>\n<p><em>Set whether LayoutManager will recycle its children when it is detached from RecyclerView.<\/em><\/p>\n<p>4. Setting Pool size &#8211; The default limit of viewHolders which could be held by a Pool against a View type is 5. If you want to change it you can do it by calling<br \/>\n`setMaxRecycledViews`. You should change the limit depending on the number of appearance of the View Type on screen.<br \/>\nYou can make the pool size bigger for a View Type if it appears many times on screen on other hand<br \/>\nfor a View type that is more rare and appears on screen only once you could set the size of the pool to 1 to save memory.<\/p>\n<p>For our example to share a View Pool we create an instance of `RecyclerView.RecycledViewPool` inside Activity.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54380\" src=\"\/blog\/wp-ttn-blog\/uploads\/2021\/12\/7-1.png\" alt=\"Blog image\" width=\"860\" height=\"186\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-1.png 860w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-1-300x65.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-1-768x166.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-1-624x135.png 624w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/p>\n<p>Now we can share this View Pool instance among multiple RecyclerView in child Fragments or in this Activity too.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-54381\" src=\"\/blog\/wp-ttn-blog\/uploads\/2021\/12\/7-2.png\" alt=\"Blog image\" width=\"860\" height=\"306\" srcset=\"https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-2.png 860w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-2-300x107.png 300w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-2-768x273.png 768w, https:\/\/2thenew.online\/blog\/wp-content\/uploads\/2021\/12\/7-2-624x222.png 624w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/p>\n<p>That&#8217;s all we have to do . Keep this in mind that shared ViewHolders need to have the same View Type,<br \/>\nthat&#8217;s because ViewHolder is picked from the RecycledViewPool based on the View Type returned from #getItemViewType() .<\/p>\n<p>This is very useful when we have several fragments in Activity showing list of same view types or multiple Recycler Views in same Fragment\/Activity . Once you set the shared View Pool you will find out the number of layout inflation from `#onCreateViewHolder`\u00a0 are decreased by almost 40 % .<\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of [&hellip;]<\/p>\n","protected":false},"author":1271,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":15,"footnotes":""},"categories":[518,1994],"tags":[4845],"class_list":["post-54001","post","type-post","status-publish","format-standard","hentry","category-android","category-software-development","tag-android"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ashutosh Bhandari\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#article\",\"name\":\"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog\",\"headline\":\"Minimize number of layout inflation in RecyclerView Adapter\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashutosh-bhandari\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2021\\\/12\\\/7-1.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#articleImage\"},\"datePublished\":\"2021-12-16T17:35:34+05:30\",\"dateModified\":\"2022-01-06T19:43:03+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#webpage\"},\"articleSection\":\"Android, Software development, Android\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#listItem\",\"name\":\"Minimize number of layout inflation in RecyclerView Adapter\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#listItem\",\"position\":3,\"name\":\"Minimize number of layout inflation in RecyclerView Adapter\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashutosh-bhandari\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashutosh-bhandari\\\/\",\"name\":\"Ashutosh Bhandari\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/6832410b-6a4c-48fc-89d1-c54498e5e121_Ashutosh-Bhandari-Profile-Pitcure.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Ashutosh Bhandari\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/\",\"name\":\"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog\",\"description\":\"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/minimize-number-of-layout-inflation-in-recyclerview-adapter\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashutosh-bhandari\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ashutosh-bhandari\\\/#author\"},\"datePublished\":\"2021-12-16T17:35:34+05:30\",\"dateModified\":\"2022-01-06T19:43:03+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog","description":"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of","canonical_url":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#article","name":"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog","headline":"Minimize number of layout inflation in RecyclerView Adapter","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/ashutosh-bhandari\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2021\/12\/7-1.png","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#articleImage"},"datePublished":"2021-12-16T17:35:34+05:30","dateModified":"2022-01-06T19:43:03+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#webpage"},"articleSection":"Android, Software development, Android"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/android\/#listItem","name":"Android"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/android\/#listItem","position":2,"name":"Android","item":"https:\/\/2thenew.online\/blog\/category\/android\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#listItem","name":"Minimize number of layout inflation in RecyclerView Adapter"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#listItem","position":3,"name":"Minimize number of layout inflation in RecyclerView Adapter","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/android\/#listItem","name":"Android"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/ashutosh-bhandari\/#author","url":"https:\/\/2thenew.online\/blog\/author\/ashutosh-bhandari\/","name":"Ashutosh Bhandari","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/6832410b-6a4c-48fc-89d1-c54498e5e121_Ashutosh-Bhandari-Profile-Pitcure.jpeg","width":96,"height":96,"caption":"Ashutosh Bhandari"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#webpage","url":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/","name":"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog","description":"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/ashutosh-bhandari\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/ashutosh-bhandari\/#author"},"datePublished":"2021-12-16T17:35:34+05:30","dateModified":"2022-01-06T19:43:03+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog","og:description":"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of","og:url":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Minimize number of layout inflation in RecyclerView Adapter | TO THE NEW Blog","twitter:description":"RecyclerView internally uses a ViewPool to save scrap views which are no longer visible on screen and can be recycled. Normally each recyclerview creates a seperate ViewPool which is limited to that recyclerview only. With the help of #RecyclerView.setRecycledViewPool() we can share a ViewPool across multiple RecyclerViews. With this we can reduce the number of","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"54001","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e0623c7da03","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2021-12-13 06:48:20","updated":"2024-02-29 10:53:48","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/android\/\" title=\"Android\">Android<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMinimize number of layout inflation in RecyclerView Adapter\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Android","link":"https:\/\/2thenew.online\/blog\/category\/android\/"},{"label":"Minimize number of layout inflation in RecyclerView Adapter","link":"https:\/\/2thenew.online\/blog\/minimize-number-of-layout-inflation-in-recyclerview-adapter\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/54001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/1271"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=54001"}],"version-history":[{"count":6,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/54001\/revisions"}],"predecessor-version":[{"id":54424,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/54001\/revisions\/54424"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=54001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=54001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=54001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}