Changelog History
Page 5
-
v2.8.0
December 22, 2017- ๐ New Use
@ModelProp
directly on fields to avoid creating a setter (https://github.com/airbnb/epoxy/pull/343) - ๐ New Set EpoxyRecyclerView item spacing via xml attribute (https://github.com/airbnb/epoxy/pull/364)
- ๐ New More flexibility over setting Carousel padding values (https://github.com/airbnb/epoxy/pull/369)
๐ New Allow custom EpoxyModelGroup root view (https://github.com/airbnb/epoxy/pull/370)
๐ Fixed Public visibility settings of the Carousel snap helper settings (https://github.com/airbnb/epoxy/pull/356)
๐ Fixed Add more nullability annotations to better support Kotlin
๐ Fixed Saving view state now works better (https://github.com/airbnb/epoxy/pull/367)
- ๐ New Use
-
v2.7.3
November 21, 2017- ๐ Fixed When a model changed and a partial update was bound to an existing view the wrong values could be set for prop groups (https://github.com/airbnb/epoxy/pull/347)
-
v2.7.2
October 28, 2017- ๐ Fixed Using
EpoxyDataBindingPattern
could result in the wrong package being used for the BR class in generated models.
- ๐ Fixed Using
-
v2.7.0
October 17, 2017- ๐ New If a
@ModelView
generated model has a custom base class the generated model will now inherit constructors from the base class (https://github.com/airbnb/epoxy/pull/315) - ๐ New Use the
EpoxyDataBindingPattern
annotation to specify a naming pattern for databinding layouts. This removes the need to declare every databinding layout explicitly (Wiki - https://github.com/airbnb/epoxy/pull/319) ๐ New If a view with
@ModelView
implements an interface then the generated model will implement a similar interface, enabling polymorphism with models. Wiki๐ Improvement
PagingEpoxyController
now has getters to access the underlying data lists (Thanks to @pcqpcq - https://github.com/airbnb/epoxy/pull/317)๐ Improvement
EpoxyModelGroup
now supports partial rebinds (https://github.com/airbnb/epoxy/pull/316)
- ๐ New If a
-
v2.6.0
October 10, 2017๐ Improvement If a
OnModelClickListener
is used it will not be called if a view is clicked while it is being removed or otherwise has no position (https://github.com/airbnb/epoxy/issues/293 - Thanks @niccorder!)๐ New
EpoxyRecyclerView
andCarousel
provide out of the box integration with Epoxy along with other enhancements over regular RecyclerView (https://github.com/airbnb/epoxy/wiki/EpoxyRecyclerView)๐ New
EpoxyPagingController
provides integration with the Android Paging architecture component as well as normal, large lists of items (https://github.com/airbnb/epoxy/wiki/Large-Data-Sets)
Kotlin
- ๐ Improvement Disable kotlin extension function generation with the annotation processor flag
disableEpoxyKotlinExtensionGeneration
(https://github.com/airbnb/epoxy/pull/309) - ๐ Fix If a model has a non empty constructor the generated extension function will now use it.
-
v2.5.1
October 02, 2017- ๐ Fixed The wrong import was being generated for models using a view holder in 2.5.0 (https://github.com/airbnb/epoxy/pull/294)
- ๐ Fixed Fix generated code failing to compile if a subclass of View.OnClickListener is used as an attribute (https://github.com/airbnb/epoxy/pull/296)
-
v2.5.0
September 14, 2017- ๐ New Feature Epoxy now generates a Kotlin DSL to use when building models in your EpoxyController! See the wiki for details
- ๐ New Feature You can use the
autoLayout
parameter in@ModelView
instead of needing to create a layout resource fordefaultLayout
. Epoxy will then create your view programmatically (https://github.com/airbnb/epoxy/pull/282).
๐ฅ Breaking
- โก๏ธ The
onSwipeProgressChanged
callback inEpoxyTouchHelper
had aCanvas
parameter added (https://github.com/airbnb/epoxy/pull/280). You will need to update any of your usages to add this. Sorry for the inconvenience; this will hopefully help you add better swipe animations.
-
v2.4.0
September 04, 2017- ๐ Improvement If you are setting options on a @ModelProp and have no other annotation parameters you can now omit the explicit
options =
param name (https://github.com/airbnb/epoxy/pull/268) ๐ Improvement If you are using
@TextProp
you can now specify a default string via a string resource (https://github.com/airbnb/epoxy/pull/269)๐ Fixed EpoxyModelGroup was not binding model click listeners correctly (https://github.com/airbnb/epoxy/pull/267)
๐ Fixed A model created with @ModelView could fail to compile if it had nullable prop overloads (https://github.com/airbnb/epoxy/pull/274)
Potentially Breaking Fix
A model created with @ModelView with a click listener had the wrong setter name for the model click listener overload (https://github.com/airbnb/epoxy/pull/275)
โก๏ธ If you were setting this you will need to update the setter name. If you were setting the click listener to null you may now have to cast it.
- ๐ Improvement If you are setting options on a @ModelProp and have no other annotation parameters you can now omit the explicit
-
v2.3.0
August 16, 2017- ๐ New An
AfterPropsSet
annotation for use in@ModelView
classes. This allows initialization work to be done after all properties are bound from the model. (https://github.com/airbnb/epoxy/pull/242) - ๐ New Annotations
TextProp
andCallbackProp
as convenient replacements forModelProp
. (https://github.com/airbnb/epoxy/pull/260) - ๐ New Easy support for dragging and swiping via the
EpoxyTouchHelper
class. https://github.com/airbnb/epoxy/wiki/Touch-Support - ๐ Change Added the method
getRootView
to the view holder class inEpoxyModelGroup
and made the bind methods onEpoxyModelGroup
non final. This allows access to the root view of the group. - ๐ Change Generated models will now inherit class annotations from the base class (https://github.com/airbnb/epoxy/pull/255 Thanks geralt-encore!)
- ๐ New An