Java 类android.databinding.DataBindingComponent 实例源码

项目:Small    文件:DataBinderMapper.java   
public ViewDataBinding getDataBinder(DataBindingComponent bindingComponent, View view, int layoutId) {
    DataBinderMappable subMapper = getSubMapper(layoutId);
    if (subMapper == null) {
        return null;
    }

    layoutId = subMapper.getLayoutId((String) view.getTag());
    if (layoutId == 0) {
        bindingPackageName = null;
        throw new IllegalArgumentException("View is not a binding layout");
    }

    return subMapper.getDataBinder(bindingComponent, view, layoutId);
}
项目:Small    文件:DataBinderMapper.java   
public ViewDataBinding getDataBinder(DataBindingComponent bindingComponent, View[] views, int layoutId) {
    DataBinderMappable subMapper = getSubMapper(layoutId);
    if (subMapper == null) {
        return null;
    }

    layoutId = subMapper.getLayoutId((String) views[0].getTag());
    if (layoutId == 0) {
        bindingPackageName = null;
        throw new IllegalArgumentException("View is not a binding layout");
    }

    return subMapper.getDataBinder(bindingComponent, views, layoutId);
}
项目:firebase-chat-android-architecture-components    文件:ChatMessageAdapter.java   
public ChatMessageAdapter(DataBindingComponent dataBindingComponent, ChatMessageClickCallback clickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.clickCallback = clickCallback;
}
项目:firebase-chat-android-architecture-components    文件:ConversationAdapter.java   
public ConversationAdapter(DataBindingComponent dataBindingComponent, ConversationClickCallback clickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.clickCallback = clickCallback;
}
项目:android-architecture-components    文件:ContributorAdapter.java   
public ContributorAdapter(DataBindingComponent dataBindingComponent,
        ContributorClickCallback callback) {
    this.dataBindingComponent = dataBindingComponent;
    this.callback = callback;
}
项目:android-architecture-components    文件:RepoListAdapter.java   
public RepoListAdapter(DataBindingComponent dataBindingComponent, boolean showFullName,
        RepoClickCallback repoClickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.repoClickCallback = repoClickCallback;
    this.showFullName = showFullName;
}
项目:Dahaka    文件:DahakaApplication.java   
private DataBindingComponent buildDataBindingComponent() {
    return DaggerAppDataBindingComponent.builder().application(this).build();
}
项目:PainlessMusicPlayer    文件:BindingAdapters.java   
@NonNull
public static DataBindingComponent glideBindingComponent(
        @NonNull final RequestManager requestManager) {
    return new GlideBindingComponent(requestManager);
}