本文整理汇总了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);
}
示例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;
}
示例5: RepoListAdapter
import android.databinding.DataBindingComponent; //导入依赖的package包/类
public RepoListAdapter(DataBindingComponent dataBindingComponent, boolean showFullName,
RepoClickCallback repoClickCallback) {
this.dataBindingComponent = dataBindingComponent;
this.repoClickCallback = repoClickCallback;
this.showFullName = showFullName;
}
示例6: buildDataBindingComponent
import android.databinding.DataBindingComponent; //导入依赖的package包/类
private DataBindingComponent buildDataBindingComponent() {
return DaggerAppDataBindingComponent.builder().application(this).build();
}
示例7: glideBindingComponent
import android.databinding.DataBindingComponent; //导入依赖的package包/类
@NonNull
public static DataBindingComponent glideBindingComponent(
@NonNull final RequestManager requestManager) {
return new GlideBindingComponent(requestManager);
}