package com.oasisfeng.android.databinding.adapters;

import android.databinding.BindingAdapter;
import android.view.View;

/**
 * Complementary binding adapter for {@link View}
 *
 * Created by Oasis on 2016/4/25.
 */
@SuppressWarnings("unused")
public class ViewBindingAdapter {

	@BindingAdapter("visible")
	public static void setVisibility(final View view, final boolean visible) {
		view.setVisibility(visible ? View.VISIBLE : View.GONE);
	}
}

@@ -330,21 +330,18 @@
 setVisib
-ility
+le
 (final V
@@ -420,16 +420,176 @@
 ISIBLE :
+ View.INVISIBLE);%0A%09%7D%0A%0A%09@BindingAdapter(%22shown%22)%0A%09public static void setShown(final View view, final boolean shown) %7B%0A%09%09view.setVisibility(shown ? View.VISIBLE :
  View.GO

Split the old "visible" binding attribute into two separate attributes: "visible" and "shown".