Search in sources :

Example 1 with BaseEasingMethod

use of com.marshalchen.common.uimodule.easing.BaseEasingMethod in project UltimateAndroid by cymcsg.

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.easing_item, null);
    TextView tv = (TextView) v.findViewById(R.id.list_item_text);
    tv.setText(name);
    v.setTag(o);
    return v;
}
Also used : Skill(com.marshalchen.common.uimodule.easing.Skill) BaseEasingMethod(com.marshalchen.common.uimodule.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.marshalchen.common.uimodule.easing.BaseEasingMethod)1 Skill (com.marshalchen.common.uimodule.easing.Skill)1