what is the best way to distinguish SOME of the views I want to applyRecursively {}
something on? E.g. i've got several textViews
, don't want to create separate containers for them (flat hierarchy!), but still I know some need to have e.g. a particular textSize, some need to have particular colour. Should I generate ids
in a particular way? For some cases (when some styles are used together) I can of course make up a small function:
private fun ViewManager.bigTextView(
content: String,
init: (@AnkoViewDslMarker TextView).() -> Unit) =
textView(content) {
init()
typeface = medium
textSize = 16f
}
but what when it's more generic? I was suggested maybe tags would do better.