org.robobinding.widget.adapterview.MultiItemLayoutSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robobinding Show documentation
Show all versions of robobinding Show documentation
A Presentation Model(MVVM) framework for the Android platform
The newest version!
package org.robobinding.widget.adapterview;
import java.util.List;
import org.robobinding.itempresentationmodel.ViewTypeSelectable;
import org.robobinding.itempresentationmodel.ViewTypeSelectionContext;
/**
* @since 1.0
* @author Cheng Wei
*
*/
public class MultiItemLayoutSelector implements ItemLayoutSelector {
private final List itemLayoutIds;
private final ViewTypeSelectable viewTypeSelector;
public MultiItemLayoutSelector(List itemLayoutIds, ViewTypeSelectable viewTypeSelector) {
this.itemLayoutIds = itemLayoutIds;
this.viewTypeSelector = viewTypeSelector;
}
@Override
public int getViewTypeCount() {
return itemLayoutIds.size();
}
@Override
public int getItemViewType(Object item, int position) {
ViewTypeSelectionContext
© 2015 - 2025 Weber Informatics LLC | Privacy Policy