Search in sources :

Example 1 with AidlEntry

use of com.tencent.wstt.gt.AidlEntry in project GT by Tencent.

the class GTParamListBaseAdapter method getItemViewType.

@Override
public int getItemViewType(int position) {
    AidlEntry o = list.get(position);
    String key = "";
    if (o instanceof OutPara) {
        key = ((OutPara) o).getKey();
    } else {
        key = ((InPara) o).getKey();
    }
    int result = TYPE_SWITCH_ITEM;
    if (key.equals(ParamConst.PROMPT_TITLE) || key.equals(ParamConst.PROMPT_INIT_TITLE)) {
        result = TYPE_PROMPT_ITEM;
    } else if (key.equals(ParamConst.DIVID_TITLE)) {
        result = TYPE_DIVIDE_ITEM;
    } else if (key.equals(ParamConst.PROMPT_DISABLE_TITLE)) {
        result = TYPE_DISABLE_ITEM;
    } else {
        result = TYPE_SWITCH_ITEM;
    }
    return result;
}
Also used : AidlEntry(com.tencent.wstt.gt.AidlEntry) OutPara(com.tencent.wstt.gt.OutPara)

Aggregations

AidlEntry (com.tencent.wstt.gt.AidlEntry)1 OutPara (com.tencent.wstt.gt.OutPara)1