groupie
kotlinx.serialization
groupie | kotlinx.serialization | |
---|---|---|
10 | 52 | |
3,644 | 5,105 | |
- | 0.8% | |
5.8 | 8.5 | |
7 months ago | 10 days ago | |
Java | Kotlin | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
groupie
-
Fixing problems by solving the root of the problem #compost edition
I've been hearing for 2 years that the primary benefit of Compose is that you "no longer need to write a RecyclerView.Adapter", not realizing that you can use something like Groupie and effectively turn RecyclerView into adapter.setItems(listOf(Item1(), Item2())) just like in Compose.
-
Replacement for advancedrecyclerview?
https://github.com/lisawray/groupie Maybe it can help for your purposes
-
Why is Compose so difficult to learn?
Been using RecyclerView and haven't written an adapter in a very long time because you can abstract it away
-
RecyclerView with different item layout
Technically you can also use a library that hides this from you, for example I tend to use https://github.com/lisawray/groupie with BindableItem
-
What is the best way to create an expandable list?
There are also libs that help you handle this, there's gorupie here https://github.com/lisawray/groupie and also Expandable RV here https://github.com/thoughtbot/expandable-recycler-view
-
What are the most common used (3rd party) libraries and frameworks used in Android development?
RecyclerView utilities: Epoxy, Groupie, AdapterDelegates
- Does anyone else hate recyclerviews and how android handles lists.
-
Listadapter With Multiple View Types
I think Groupie is nice, although Google seems to think of each Adapter being able to describe itself "as an item view type". So you could build "multiple item view types" using a concatAdapter of N ListAdapters. Tricky.
-
How you keep the single responsibility principle in adapters/views
We've been using https://github.com/lisawray/groupie/ which offers a common GroupAdapter for all Items, so that each RecyclerView Item type can be encapsulated in its own class, Item.
-
Why is there are so much boilerplate code?
Don't write adapters or view holders for RecyclerView, use something like Groupie.
kotlinx.serialization
-
How would I serialize a JSON primitive to a class?
Have you tried this:? https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md
-
kotlinx-serialization won't serialize a List?
Regardless, I followed the documentation to register List for polymorphic serialization and my static code analysis does not seem to be happy with it.
-
Is rust serde unique?
I think kotlinx.serialization might come close, but looks like custom Encoders and Decoders are still experimental.
-
[Android/Multiplatform] Kotlin Flows + Ktor = Flawless HTTP requests (- ArrowKt)
This example will not work on a multiplatform project. you are using gson, gson runs only on jvm, you should use https://github.com/Kotlin/kotlinx.serialization for the json parsing
-
Why should I use kotlinx.serialization?
This is the issue to +1 https://github.com/Kotlin/kotlinx.serialization/issues/1931
- Generate Kotlin client for a complex web API
-
Question about app weight... I want to use Apache commons math3, should I fork it and "crop" it to reduce compile times and app weight?
Fun fact, kotlinx.serialization had a release just recently which makes it come with some bundled proguard rules to make this experience easier. Yes you'll still have issues if you're using things via reflection and try to serialize things that proguard deemed unused and removed them, but it's a step forward https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.5.0-RC
-
Modern Android Development in 2023
Kotlin Serialization
-
Apple's Swift rewrite of its Foundation framework will be open source
Kotlin Serialization is also a newer option, but doesn't have as much traction.
-
Jackson, moshi or kotlinx.serialization?
``` see the docs
What are some alternatives?
Epoxy - Epoxy is an Android library for building complex screens in a RecyclerView
jackson-module-kotlin - Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
expandable-recycler-view - Custom Android RecyclerViewAdapters that collapse and expand
Moshi - A modern JSON library for Kotlin and Java.
nowinandroid - A fully functional Android app built entirely with Kotlin and Jetpack Compose
klaxon - A JSON parser for Kotlin
glide - An image loading and caching library for Android focused on smooth scrolling
Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back
Permission Dispatcher - A declarative API to handle Android runtime permissions.
spring-native - Spring Native is now superseded by Spring Boot 3 official native support
ExpandableLayout - 🦚 An expandable layout that shows a two-level layout with an indicator.
kotlin-json - A JavaScript Object Notation library for Kotlin JVM.