package com.oasisfeng.android.databinding.adapters;

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

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

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

@@ -123,17 +123,31 @@
 %0A/**%0A * 
-B
+Complementary b
 inding a
@@ -296,16 +296,8 @@
 er(%22
-android:
 visi

Use ":visible" instead of "android:visible" to avoid confusion.