mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-03 00:38:53 +00:00
25 lines
493 B
Java
25 lines
493 B
Java
package com.dark98.santoku.recycler;
|
|
|
|
import android.content.Context;
|
|
import android.widget.Space;
|
|
|
|
public class SpaceItem extends SimpleRecyclerItem<Space> {
|
|
private int x, y;
|
|
|
|
public SpaceItem(int x, int y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public Space onCreateView(Context ctx) {
|
|
return new Space(ctx);
|
|
}
|
|
|
|
@Override
|
|
public void onBindView(Space view) {
|
|
view.setMinimumWidth(x);
|
|
view.setMinimumHeight(y);
|
|
}
|
|
}
|