本文整理汇总了Java中com.felipecsl.asymmetricgridview.library.model.AsymmetricItem类的典型用法代码示例。如果您正苦于以下问题:Java AsymmetricItem类的具体用法?Java AsymmetricItem怎么用?Java AsymmetricItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsymmetricItem类属于com.felipecsl.asymmetricgridview.library.model包,在下文中一共展示了AsymmetricItem类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RowInfo
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public RowInfo(final Parcel in) {
rowHeight = in.readInt();
spaceLeft = in.readFloat();
int totalItems = in.readInt();
items = new ArrayList<>();
final ClassLoader classLoader = AsymmetricItem.class.getClassLoader();
for (int i = 0; i < totalItems; i++) {
items.add((T) in.readParcelable(classLoader));
}
}
示例2: createFromParcel
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
@Override
public RowInfo createFromParcel(final Parcel in) {
return new RowInfo<AsymmetricItem>(in);
}
示例3: getRowHeight
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
protected int getRowHeight(final AsymmetricItem item) {
return getRowHeight(item.getRowSpan());
}
示例4: getRowWidth
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
protected int getRowWidth(final AsymmetricItem item) {
return getRowWidth(item.getColumnSpan());
}
示例5: getRowHeight
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
public int getRowHeight(final AsymmetricItem item) {
return getRowHeight(item.getRowSpan());
}
示例6: getRowWidth
import com.felipecsl.asymmetricgridview.library.model.AsymmetricItem; //导入依赖的package包/类
public int getRowWidth(final AsymmetricItem item) {
return getRowWidth(item.getColumnSpan());
}