<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ViewModels want to use in RecyclerView or in Fragment.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49873/viewmodels-want-to-use-in-recyclerview-or-in-fragment</link><description>Hi Roshan 
 I want to use ViewModels in RecyclerView like I have to perform light on/ off (sendGenericOnOff(final boolean state, final Integer delay) android app)r each node. 
 Can we use it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2019 11:00:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49873/viewmodels-want-to-use-in-recyclerview-or-in-fragment" /><item><title>RE: ViewModels want to use in RecyclerView or in Fragment.</title><link>https://devzone.nordicsemi.com/thread/198932?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 11:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5349fe7e-f863-44f4-92aa-de4f6f4b94e4</guid><dc:creator>ganeshpprasad</dc:creator><description>&lt;p&gt;Since, I am using&amp;nbsp;sendGenericOnOff(true, delaySeekBar.getProgress());&amp;nbsp; to ON/OFF LED but unable to do......&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ViewModels want to use in RecyclerView or in Fragment.</title><link>https://devzone.nordicsemi.com/thread/198751?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 13:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9298f58b-b5c8-4b85-bbe0-720b5fbdbd0f</guid><dc:creator>Roshan Rajaratnam</dc:creator><description>&lt;p&gt;Hi, not entirely sure what you are trying to achieve here, but ViewModels are not to be meant to use with recyclerviews. You might want to read up on &lt;a href="https://developer.android.com/topic/libraries/architecture/viewmodel"&gt;this&amp;nbsp;&lt;/a&gt;to understand the concept. You can use view models in a fragment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>