package com.kelin.mvvmlight.bindingadapter.webview;
import android.databinding.BindingAdapter;
import android.text.TextUtils;
import android.webkit.WebView;
/**
* Created by kelin on 16-4-29.
*/
public class ViewBindingAdapter {
@BindingAdapter({"render"})
public static void loadHtml(WebView webView, final String html) {
if (!TextUtils.isEmpty(html)) {
webView.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
}
}
}