mg6maciej
03/16/2017, 9:17 AMviewModel.counter > 0 ? View.VISIBLE : View.GONE
), but is it not possible to do android:onClick="@{viewModel::incCounter}"
? (not library related)
2) Would be nice to see an example app also implemented without using your lib to see what problems it solves. I don't like using libs just to use libs, when for example the amount of code stays the same or almost the same, just looks different.
3) Add real tests in lib module. Remove example tests from both modules. I like to first read executable documentation.deviant
03/16/2017, 9:20 AMmg6maciej
03/16/2017, 9:21 AMdeviant
03/16/2017, 9:21 AM@BindingAdapter("visible")
public static void setVisible(View view, Boolean visible) {
view.setVisibility(visible == null || visible ? View.VISIBLE : View.GONE);
}
deviant
03/16/2017, 9:22 AMIf it's possible, someone will do itsure. we have a lot of ways to shoot own leg
stepango
03/16/2017, 9:23 AMMarc
03/16/2017, 9:24 AMandroid:onClick="@{() -> viewModel.incCounter()}"
mg6maciej
03/16/2017, 9:28 AMobj::method
was possible.enighma
03/16/2017, 7:52 PMenighma
03/16/2017, 7:53 PM