Questions tagged [epoxy]

Epoxy is am Android library by Airbnb for building screens in a Recycler View. Use this tag for questions about using the Epoxy library or building with the library via Gradle, etc.

Epoxy is an Android library for building complex screens in a RecyclerView. It abstracts the boilerplate of ViewHolder, item types, item ids, span counts, and more, in order to simplify building screens with multiple view types. Additionally, Epoxy adds support for saving view state and automatic diffing of item changes.

Main components:

  • EpoxyModel - controls the data and view binding for each item on screen. Models are generated from xml layouts or custom views.

  • EpoxyController - declares what models to add to a RecyclerView.

References:

65 questions
2
votes
2 answers

What is the best way to implement onClick inside an Epoxy Controller when using Dagger

I am trying to implement Click functionality on an item inside a RecyclerView using airbnb.epoxy. The problem is that i need context in order to navigate to another activity upon click. What i have done: Following Epoxy's sample app I implemented an…
nir
  • 302
  • 3
  • 12
1
vote
1 answer

Execution failed for task ':app:kaptDebugKotlin' when trying to implement epoxy processor

I'm trying to add the gradle dependency: kapt "com.airbnb.android:epoxy-processor:$epoxyVersion" But is making my project crash when building, the app without that dependency works just fine with no errors whatsoever even have an epoxyrecycler view…
Edu
  • 21
  • 3
1
vote
0 answers

Compose components in native view

I have an epoxy recycler view, and I want to create some of this views by using jetpack compose. My question is that, Is it good to do that and I have no Idea about this page performance, because this screen is very important for my…
1
vote
1 answer

Epoxy carousel how to move to the next item programmatically

I have a requirement to display the Carousel Items and have buttons outside the Carousel items to go to the previous item and the next item. Given carousel items are the elements of the recycler view I should move to the next and previous position…
Bulu
  • 1,351
  • 3
  • 16
  • 37
1
vote
1 answer

MediaController for VideoView inside BottomSheetDialog is hidden behind the BottomSheetDialog

I have a project where I programmatically add custom map markers to a Maps activity. When a user clicks on a marker, a BottomSheetDialog comes up from the bottom of the screen, and contains information about the custom map marker. One of the key…
1
vote
1 answer

Is the automatic comparison in the Epoxy library based on DiffUtil?

I came across the Epoxy library while looking for information about RecyclerView. Epoxy is a library that makes RecyclerView easier to use. I haven't applied it to my app yet, but I think it will be easier if I apply it. Because the RecyclerView I…
ybybyb
  • 1,385
  • 1
  • 12
  • 33
1
vote
1 answer

Update item (Notify Datachange) in EpoxyRecyclerview

I have epoxy controller implemented using databinding in kotlin. What I need to do is update text when I click on any item and notify that as done in normal adapter. I got a project which does something like this…
ahuja007
  • 281
  • 2
  • 14
1
vote
1 answer

AirBnb Epoxy - Views are duplicated instead of replaced

I am rendering a form based on JSON response that I fetch from the server. My use case involves listening to a click from a radio button, toggling the visibility of certain text fields based on the radioButton selection, and refreshing the layout…
Jeet Dholakia
  • 850
  • 1
  • 6
  • 18
1
vote
1 answer

Gtk/gtkmm glarea queue render doesnt work with dedicated graphics

I started working on a github project (a logic gate simulator) with gtkmm and epoxy. I have an optimus laptop with debian buster and nvidia-bumblebee drivers installed and everything works fine except that if I start the program using optirun or…
1
vote
1 answer

Why Epoxy recyclerview not generate custom model class in kotlin

I want to create a custom epoxy model class in epoxy.HotelItemModel_() class is not generated in Epoxy Controller @EpoxyModelClass(layout = R.layout.singlefood_layout) abstract class HotelItemModel (@EpoxyAttribute var food: Food) :…
sri
  • 105
  • 9
1
vote
0 answers

Unable to update view on data change in Epoxy Controller

I am using Epoxy Controller for Recycler View. I am having trouble changing the view after data changed by the user action. Basically I have a switch button in a view which is used inside a recycler view and I am trying to update the view on switch…
1
vote
1 answer

How to assign grid span in airbnb Epoxy?

I've been starting learning how to use Epoxy in my project. I'm learning this library by running sample project. Everything was fine until I dig into the grid span settings. I found myself confused about its grid system. As you can see in sample…
Carter Chen
  • 792
  • 1
  • 8
  • 22
1
vote
0 answers

Is increasing the MaxRecycledViews has an effect on the Recyclerview performance?

I have a Recyclerview with multiple items, it is a details screen that has a different items type instead of implementing it with NestedScrollview I used Recylcerview inspired by Airbnb to use Recyclerview for static content as they said to give…
tamtom
  • 2,474
  • 1
  • 20
  • 33
1
vote
1 answer

Epoxy, Kotlin: Using @ModelView generates nothing with no errors

I'm successfully able to have epoxy generate code from this EpoxyModelClass @EpoxyModelClass(layout = R.layout.card_sample) abstract class PhotoModel : EpoxyModelWithHolder() { @EpoxyAttribute var title: String? = null …
Erik B
  • 2,810
  • 1
  • 34
  • 38
1
vote
0 answers

How to use airbnb epoxy in Android project?

I am trying to integrate and use epoxy in my project, I have copied modules epoxy-adapter, epoxy-annotations, epoxy-databinding, epoxy-litho, epoxy-processor into my project, but the classes with _ that are supposed to be generated at the build are…
Sreekanth Karumanaghat
  • 3,383
  • 6
  • 44
  • 72