For example, how do I refer to other objects in th...
# getting-started
w
For example, how do I refer to other objects in the View by ID/CSS selector?
s
You can use R.layout.id to get the id of the view object. The latest way to do this in a fragment is with viewbinding where you bind the view and access the elements through the binding. This replaces the old method of findViewById.
i
@Saul Wiggin you’re thinking Android 😉
@WildOne (Yuri) I think it’s not possible (caveat: relatively little experience with TornadoFX). You could have what you need to access exposed as a public instance variable to achieve a similar effect. (Definitely not saying this is a “best practice” — I don’t know enough to dish out those; but it may help you carry on)
r
There is a #tornadofx channel