# RecyclerView and Silver

**URL:** https://talk.remobjects.com/t/recyclerview-and-silver/19230
**Category:** Fire
**Created:** [April 18, 2019, 5:04pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230 "2019-04-18T17:04:28Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![wdb](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wdb](https://talk.remobjects.com/u/wdb)
#### Post date: [April 18, 2019, 5:04pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/1 "2019-04-18T17:04:29Z")

</div>

I was wondering if anyone has some example or demo project to share that uses RecyclerView in Android? I have been trying to write a little project in Fire using Silver Swift but I just haven’t been able to get it working so far. Continuously keeps crashing because it can’t find the classes in some dex file. I am not sure what I am doing wrong.

Basically you just want to list show a list of items like a UICollectionView and/or UITableView in iOS. My limited understanding of RecylerView is that its more comparable with UICollectionView then UITableView.

Your help will be greatly appreciated 🙂

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 18, 2019, 5:55pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/2 "2019-04-18T17:55:53Z")

</div>

> [@wdb](#):
>
> Continuously keeps crashing because it can’t find the classes in some dex file. I am not sure what I am doing wrong.

What’s there particular error? do you have the proper references that include the control, and are there set to CopyLocal?

If you can send me the current project that crashes for you, I can have a look.

> [@wdb](#):
>
> Basically you just want to list show a list of items like a UICollectionView and/or UITableView in iOS. My limited understanding of RecylerView is that its more comparable with UICollectionView then UITableView.

I’ve used a `ListFragment` for this, in my Weather app. I’ve been actually meaning to turn that into a template, paralleling the tableView app template we have for iOS. I haven’t used RecyclerView myself, what’s the difference?

—marc

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 18, 2019, 6:17pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/3 "2019-04-18T18:17:17Z")

</div>

How does this one work for you?

[org.me.recviewtemp 1.bugreport.zip](https://talk.remobjects.com/uploads/default/original/2X/3/34381bfca26c5045664ab7a12c219cb471ad0cea.zip) (51.3 KB)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 18, 2019, 7:57pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/4 "2019-04-18T19:57:14Z")

</div>

Turns out, there is a build toolchain fix thats needed (done for tomorrow’s build): today I learned there’s R.txt files in some packages that need to be converted to code and copmpiled as part of the project. JFC, who designed this platform? 🤷🏼‍♀️

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 18, 2019, 9:45pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/5 "2019-04-18T21:45:10Z")

</div>

![image](https://talk.remobjects.com/uploads/default/original/2X/c/ca77d913cc404f076dcf91ed81dab481fc0d6118.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 18, 2019, 9:45pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/6 "2019-04-18T21:45:37Z")

</div>

I’ll flesh this out a bit more and make it a template, for next week.

---

<div class="post-metadata">

### Author: ![wdb](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wdb](https://talk.remobjects.com/u/wdb)
#### Post date: [April 21, 2019, 6:18pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/7 "2019-04-21T18:18:27Z")

</div>

Bon pasku, Marc, thank your example with the current build of Fire made it all work! Fantastic 😃  
Sorry for posting all this questions hope I am not too much of burden 😅

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 21, 2019, 6:24pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/8 "2019-04-21T18:24:57Z")

</div>

> [@wdb](#):
>
> Bon pasku

Danki. Igual!

> [@wdb](#):
>
> thank your example with the current build of Fire made it all work! Fantastic 😃

Glad to hear!

> [@wdb](#):
>
> Sorry for posting all this questions hope I am not too much of burden 😅

Not at all, this is important feedback and helps improve the product, and it’s even more useful for platforms we use less, internally (such as Android). keep em coming!

—marc

---

<div class="post-metadata">

### Author: ![wdb](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wdb](https://talk.remobjects.com/u/wdb)
#### Post date: [April 25, 2019, 5:47pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/9 "2019-04-25T17:47:23Z")

</div>

Thank you for your example this made it work after having a closer look at your project. If I used your base in my own project. I was getting the following runtime error: `Error inflating class android.v7.widget.RecyclerView`. Now if I replace my Gradle references to be exactly like yours it working but fails when I use mine. Any chance you would know what would be the problem?

Your references are:

```auto
    <GradleReference Include="com.android.support:recyclerview-v7:*">
      <Private>True</Private>
    </GradleReference>

```

Mine references:

```auto
    <GradleReference Include="com.android.support:support-v13:*" />
    <GradleReference Include="com.android.support:recyclerview-v7:*" />
    <GradleReference Include="com.android.support:cardview-v7:*" />
    <GradleReference Include="com.android.support:transition:*" />

```

The only difference I can see is that yours has `<Private>True</Private>` is this important?

---

<div class="post-metadata">

### Author: ![wdb](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wdb](https://talk.remobjects.com/u/wdb)
#### Post date: [April 25, 2019, 6:07pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/10 "2019-04-25T18:07:39Z")

</div>

Hmm, I am wondering if it’s depending on the emulator I am choosing 🤔

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [April 25, 2019, 6:09pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/11 "2019-04-25T18:09:49Z")

</div>

> [@wdb](#):
>
> The only difference I can see is that yours has `<Private>True</Private>` is this important?

Yes, Private = true is what makes the reference actually get embedded in the apk. You’ll want Private = false _only_ for references that are shipping with the system itself. on Android, that’s only `android.jar`, everything else you need to package with your app.

---

<div class="post-metadata">

### Author: ![wdb](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/w/22d042/32.png) [@wdb](https://talk.remobjects.com/u/wdb)
#### Post date: [April 25, 2019, 6:10pm UTC](https://talk.remobjects.com/t/recyclerview-and-silver/19230/12 "2019-04-25T18:10:38Z")

</div>

Cool, thanks, that clarifies it all a lot!
