Questions tagged [epoxy-modelview]

EpoxyModel is a component of Epoxy library. EpoxyModels are placed inside the EpoxyController and are used to describe how views should be displayed in the RecyclerView.

20 questions
5
votes
2 answers

Why Epoxy does not generate model class?

I want to use Epoxy for my recyclerView with kotlin, but Epoxy Model does not generate PostModel_() class, what wrong with it? @EpoxyModelClass(layout = R.layout.iteam) abstract class PostModel : EpoxyModelWithHolder() { …
manwhotrycoding
  • 931
  • 1
  • 7
  • 13
4
votes
2 answers

Epoxy Processor Exception: Unable to get layout resource for view ModelView

I try to create Epoxy ModelView according to their Wiki documentation. I am getting this error: "Epoxy Processor Exception: Unable to get layout resource for view TitleModel" This is my Java code: import ... @ModelView public class ModelViewA…
Mantaz
  • 333
  • 1
  • 4
  • 12
3
votes
0 answers

How to implement collapsable/expandable items in a list with Epoxy?

How properly to implement collapsing/expanding items using Epoxy Android library? I went through the wiki and sample app and couldn't find any example or explanation how exactly implement such behaviour in the list?
Arsenius
  • 4,972
  • 4
  • 26
  • 39
2
votes
2 answers

Simple TextView not showing in Airbnb Epoxy

Iam trying to show a simple text view using epoxy in a recyclerview but it does not appear. What could I be doing wrong. I expected something like this But I am getting this instead //build.gradle implementation…
Dr Deo
  • 4,650
  • 11
  • 43
  • 73
2
votes
1 answer

EpoxyModels are not working in feature modules/library projects in Android

EpoxyModels are not compiling when using inside feature modules of Android App. @EpoxyModelClass(layout = R.layout.layout_foo) //an annotation argument must be a compile-time constant here abstract class FooModel :…
Bulu
  • 1,351
  • 3
  • 16
  • 37
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

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

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
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
0
votes
2 answers

Dynamically Change Span count and ModelView Size for Recycler View

I have en epoxy recycler view, that can display an item in the maximum possible size and also want to display the maximum number of items by adjusting span count and item size. For that, I am using this layout manager, class…
0
votes
1 answer

How do you set OnClickListenrs in your AirBNB Epoxy Models for Android (Kotlin)

So I'm using AirBNB Epoxy (the view holders version) and I can't seem to find the information where I can set onClickListeners in AirBNB Epoxy. Any information helps, Thanks.
OEThe11
  • 341
  • 2
  • 11
0
votes
1 answer

View binding with EpoxyModelWithHolder

I am using EpoxyModelWithHolder with multiple layouts in a single Epoxy model class. How can I do ViewBinding? Currently, I am using Kotlin-android-extensions. Below is my code @EpoxyModelClass abstract class ItemSampleEpoxyModel :…
Ameer
  • 2,709
  • 1
  • 28
  • 44
1
2