SwissKnife v1.1.1 Release Notes
Release Date: 2015-01-26 // about 9 years ago-
➕ Added DSL methods such as:
view(R.id.my\_view)
To quickly load a view - as using
findViewById(...)
, or:onClick(Closure closure)
To add an
OnClickListener
callback to an item and execute the closure's code on click event, or:asListView(R.id.list\_view, R.layout.list\_row, Iterable\<T\> items, Closure toDoOnAdapter)
This will create an
ArrayAdapter
using the provided items, inflateR.layout.list_row
views, execute what's on the closure as thegetView(...)
code on the adapter and attach it to theListView
provided.