henrikhorbovyi
05/20/2020, 9:52 PMisVisible, isInvisible, isGone extensions?
I mean, first time I implemented KTX in my project I expected something like: gone(), visible(), invisible()Haim
05/21/2020, 6:31 PMisVisible to set visibility according to a boolean expression. For example: titleView.isVisible = title.isNotEmpty(). So something like visible() would not be so helpful for me.henrikhorbovyi
05/21/2020, 7:12 PMvisible() or invisible() is a better approach?henrikhorbovyi
05/21/2020, 7:13 PMHaim
05/21/2020, 7:25 PMvisible() function is setting it to visible or checking if it's visible...Haim
05/21/2020, 7:38 PMsetVisible() or makeVisible() sound better to me. visible() on the other hand, is an adverb, so the word doesn't seem to indicate that the function changes the visibility of the view.Cody Engel
05/21/2020, 7:46 PMget and the set) but when it comes to boolean expressions you'd still have is or has for example.
I wasn't aware KTX had those already, they sound pretty nifty though.henrikhorbovyi
05/21/2020, 8:32 PMsindrenm
05/22/2020, 9:46 AMisVisible = false makes it GONE and not INVISIBLE, for instance?sindrenm
05/22/2020, 9:46 AMhenrikhorbovyi
05/22/2020, 1:44 PMtrue and falsehenrikhorbovyi
05/22/2020, 1:46 PMCody Engel
05/22/2020, 4:03 PMhenrikhorbovyi
05/22/2020, 4:38 PM