android.databinding.DataBindingComponent Java Examples
The following examples show how to use
android.databinding.DataBindingComponent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataBinderMapperImpl.java From Android-POS with MIT License | 6 votes |
@Override public ViewDataBinding getDataBinder(DataBindingComponent component, View[] views, int layoutId) { if(views == null || views.length == 0) { return null; } int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId); if(localizedLayoutId > 0) { final Object tag = views[0].getTag(); if(tag == null) { throw new RuntimeException("view must have a tag"); } switch(localizedLayoutId) { } } return null; }
Example #2
Source File: DataBinderMapperImpl.java From Android-POS with MIT License | 6 votes |
@Override public ViewDataBinding getDataBinder(DataBindingComponent component, View[] views, int layoutId) { if(views == null || views.length == 0) { return null; } int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId); if(localizedLayoutId > 0) { final Object tag = views[0].getTag(); if(tag == null) { throw new RuntimeException("view must have a tag"); } switch(localizedLayoutId) { } } return null; }
Example #3
Source File: DataBinderMapperImpl.java From Android-POS with MIT License | 5 votes |
@Override public ViewDataBinding getDataBinder(DataBindingComponent component, View view, int layoutId) { int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId); if(localizedLayoutId > 0) { final Object tag = view.getTag(); if(tag == null) { throw new RuntimeException("view must have a tag"); } } return null; }
Example #4
Source File: DataBinderMapperImpl.java From Android-POS with MIT License | 5 votes |
@Override public ViewDataBinding getDataBinder(DataBindingComponent component, View view, int layoutId) { int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId); if(localizedLayoutId > 0) { final Object tag = view.getTag(); if(tag == null) { throw new RuntimeException("view must have a tag"); } } return null; }
Example #5
Source File: DataBinderMapper.java From Small with Apache License 2.0 | 5 votes |
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); }
Example #6
Source File: DataBinderMapper.java From Small with Apache License 2.0 | 5 votes |
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); }
Example #7
Source File: BindingAdapters.java From PainlessMusicPlayer with Apache License 2.0 | 4 votes |
@NonNull public static DataBindingComponent glideBindingComponent( @NonNull final RequestManager requestManager) { return new GlideBindingComponent(requestManager); }