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;
}