I want to implement reactive UI framework based on...
# android
a
I want to implement reactive UI framework based on Anko with syntax like this. But I get error
Unsupported reference to synthetic extension property for a Java get/set method
. Is there way to fix it without creating extension property for each get/set? Or may be any ideas about another clear syntax to bind view property with reactive property?
e
Uhh, what is
text
property in the first place? It's not really clear
a
This is synthetic kotlin property generated from java getText/setText in TextView
e
Are you able to write
::setText
instead of
::text
?
I mean,
::setText listen ::title
a
No, even with signature
infix fun <T> ((T) -> Unit).listen(listenableProperty: KProperty0<T>)
I can write
::title.emitIn(::setText)
but it too different with natural
text = title
e
Yeah, I read the comment
As far as I recall, you can specify type parameter of
setText
in the last case, like
Copy code
::setText<CharSequence> listen ::title
But again, it's not really idiomatic
And I just checked, it doesn't help
I give up. I have no idea how to help you
r
@adev_one are you done with that?
a
@radityagumay No, I’m still trying to solve it