Back to project page bad.
The source code is released under:
Copyright (C) 2013 Madis Pink Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
If you think the Android project bad listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.madisp.bad.decor; //from w ww . j a v a 2s .co m import android.content.Context; import android.util.TypedValue; import com.madisp.bad.eval.Scope; import com.madisp.bad.expr.Expression; import com.madisp.bad.expr.ExpressionFactory; import com.madisp.bad.lib.BadLayoutFactory; /** * Created with IntelliJ IDEA. * User: madis * Date: 5/9/13 * Time: 1:55 PM */ public abstract class BaseDecorator<T> implements BadDecorator<T> { protected final ExpressionFactory expressionFactory; protected BaseDecorator(final ExpressionFactory expressionFactory) { this.expressionFactory = expressionFactory; } protected final Expression buildExpr(final TypedValue tv) { return expressionFactory.buildExpression(tv.string.toString()); } @Override public void apply(Scope scope, T view, BadLayoutFactory layoutFactory) {} }