/**
  * 设置view的监听器
  *
  * @param field the field
  * @param select the select
  * @param noSelect the no select
  * @throws Exception the exception
  */
 public void setViewSelectListener(Field field, String select, String noSelect) throws Exception {
   Object obj = field.get(mActivity);
   if (obj instanceof View) {
     ((AbsListView) obj)
         .setOnItemSelectedListener(
             new AbIocEventListener(mActivity).select(select).noSelect(noSelect));
   }
 }
Ejemplo n.º 2
0
 private static void setViewSelectListener(
     Object injectedSource, Field field, String select, String noSelect) throws Exception {
   Object obj = field.get(injectedSource);
   if (obj instanceof View) {
     ((AbsListView) obj)
         .setOnItemSelectedListener(
             new EventListener(injectedSource).select(select).noSelect(noSelect));
   }
 }