Skip to content

Instantly share code, notes, and snippets.

View opengamer29's full-sized avatar
🦇

Eugene Komarov opengamer29

🦇
View GitHub Profile
fun <
ConsumerEvent : Any,
ConsumerState : Any,
ConsumerEffect : Any,
ProducerEvent : Any,
ProducerState : Any,
ProducerEffect : Any,
> Store<ConsumerEvent, ConsumerState, ConsumerEffect>.linkTo(
producerStore: Store<ProducerEvent, ProducerEffect, ProducerState>,
effectMapper: (ProducerEffect) -> ConsumerEvent?,
import android.content.Context
import android.view.View
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.widget.FrameLayout
import androidx.asynclayoutinflater.view.AsyncLayoutInflater
open class AsyncCell(context: Context) : FrameLayout(context, null, 0, 0) {
init {
layoutParams = LayoutParams(MATCH_PARENT, WRAP_CONTENT)