Search in sources :

Example 1 with BaseEasingMethod

use of com.daimajia.easing.BaseEasingMethod in project AnimationEasingFunctions by daimajia.

the class EasingAdapter method getView.

@Override
public View getView(int i, View view, ViewGroup viewGroup) {
    Object o = getItem(i);
    BaseEasingMethod b = ((Skill) o).getMethod(1000);
    int start = b.getClass().getName().lastIndexOf(".") + 1;
    String name = b.getClass().getName().substring(start);
    View v = LayoutInflater.from(mContext).inflate(R.layout.item, null);
    TextView tv = (TextView) v.findViewById(R.id.list_item_text);
    tv.setText(name);
    v.setTag(o);
    return v;
}
Also used : Skill(com.daimajia.easing.Skill) BaseEasingMethod(com.daimajia.easing.BaseEasingMethod) TextView(android.widget.TextView) TextView(android.widget.TextView) View(android.view.View)

Aggregations

View (android.view.View)1 TextView (android.widget.TextView)1 BaseEasingMethod (com.daimajia.easing.BaseEasingMethod)1 Skill (com.daimajia.easing.Skill)1