package eu.konggdev.strikemaps.ui.element.item;

import android.view.View;
import android.widget.TextView;
import eu.konggdev.strikemaps.R;
import eu.konggdev.strikemaps.ui.UIComponent;

public class InlineItem implements UIItem {
    public String text;

    public InlineItem(String text) {
        this.text = text;
    }

    @Override
    public View makeView(UIComponent spawner) {
        View view = spawner.inflateUi(R.layout.item_inline);
        ((TextView) view.findViewById(R.id.inline)).setText(text);
        return view;
    }
}
