当前位置: 首页>>代码示例>>Java>>正文


Java DataBindingComponent类代码示例

本文整理汇总了Java中android.databinding.DataBindingComponent的典型用法代码示例。如果您正苦于以下问题:Java DataBindingComponent类的具体用法?Java DataBindingComponent怎么用?Java DataBindingComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DataBindingComponent类属于android.databinding包,在下文中一共展示了DataBindingComponent类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDataBinder

import android.databinding.DataBindingComponent; //导入依赖的package包/类
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);
}
 
开发者ID:wequick,项目名称:Small,代码行数:15,代码来源:DataBinderMapper.java

示例2: ChatMessageAdapter

import android.databinding.DataBindingComponent; //导入依赖的package包/类
public ChatMessageAdapter(DataBindingComponent dataBindingComponent, ChatMessageClickCallback clickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.clickCallback = clickCallback;
}
 
开发者ID:hbmartin,项目名称:firebase-chat-android-architecture-components,代码行数:5,代码来源:ChatMessageAdapter.java

示例3: ConversationAdapter

import android.databinding.DataBindingComponent; //导入依赖的package包/类
public ConversationAdapter(DataBindingComponent dataBindingComponent, ConversationClickCallback clickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.clickCallback = clickCallback;
}
 
开发者ID:hbmartin,项目名称:firebase-chat-android-architecture-components,代码行数:5,代码来源:ConversationAdapter.java

示例4: ContributorAdapter

import android.databinding.DataBindingComponent; //导入依赖的package包/类
public ContributorAdapter(DataBindingComponent dataBindingComponent,
        ContributorClickCallback callback) {
    this.dataBindingComponent = dataBindingComponent;
    this.callback = callback;
}
 
开发者ID:googlesamples,项目名称:android-architecture-components,代码行数:6,代码来源:ContributorAdapter.java

示例5: RepoListAdapter

import android.databinding.DataBindingComponent; //导入依赖的package包/类
public RepoListAdapter(DataBindingComponent dataBindingComponent, boolean showFullName,
        RepoClickCallback repoClickCallback) {
    this.dataBindingComponent = dataBindingComponent;
    this.repoClickCallback = repoClickCallback;
    this.showFullName = showFullName;
}
 
开发者ID:googlesamples,项目名称:android-architecture-components,代码行数:7,代码来源:RepoListAdapter.java

示例6: buildDataBindingComponent

import android.databinding.DataBindingComponent; //导入依赖的package包/类
private DataBindingComponent buildDataBindingComponent() {
    return DaggerAppDataBindingComponent.builder().application(this).build();
}
 
开发者ID:ragdroid,项目名称:Dahaka,代码行数:4,代码来源:DahakaApplication.java

示例7: glideBindingComponent

import android.databinding.DataBindingComponent; //导入依赖的package包/类
@NonNull
public static DataBindingComponent glideBindingComponent(
        @NonNull final RequestManager requestManager) {
    return new GlideBindingComponent(requestManager);
}
 
开发者ID:Doctoror,项目名称:PainlessMusicPlayer,代码行数:6,代码来源:BindingAdapters.java


注:本文中的android.databinding.DataBindingComponent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。