Search in sources :

Example 6 with Style

use of com.tmall.wireless.tangram.dataparser.concrete.Style in project Tangram-Android by alibaba.

the class WrapCellCard method parseWith.

@Override
public void parseWith(@NonNull JSONObject data, @NonNull MVHelper resolver) {
    maxChildren = 1;
    id = data.optString(KEY_ID, id == null ? "" : id);
    this.type = TangramBuilder.TYPE_SINGLE_COLUMN;
    this.stringType = TangramBuilder.TYPE_CONTAINER_1C_FLOW;
    createCell(resolver, data, true);
    // do not need parse style, leave style empty
    this.extras.remove(KEY_STYLE);
    style = new Style();
}
Also used : Style(com.tmall.wireless.tangram.dataparser.concrete.Style)

Aggregations

Style (com.tmall.wireless.tangram.dataparser.concrete.Style)6 View (android.view.View)1 BaseLayoutHelper (com.alibaba.android.vlayout.layout.BaseLayoutHelper)1 GridRangeStyle (com.alibaba.android.vlayout.layout.RangeGridLayoutHelper.GridRangeStyle)1 Card (com.tmall.wireless.tangram.dataparser.concrete.Card)1 CardSupport (com.tmall.wireless.tangram.support.CardSupport)1