Ejemplo n.º 1
0
 private void setData(TechTypeData data) {
   // iv_equip.set
   iv_tech_type.setImageResource(
       getContext()
           .getResources()
           .getIdentifier(data.getIcon(), "drawable", getContext().getPackageName()));
   // tv_name.setText(data.getTypeName());
   if (data.getAllLv() >= 0) {
     tv_lv.setVisibility(View.VISIBLE);
     tv_lv.setText(String.valueOf(data.getAllLv()));
   } else {
     tv_lv.setVisibility(View.GONE);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onClick(View v) {
   // TODO Auto-generated method stub
   if (mListener == null) {
     return;
   }
   mData.setIntent(new Intent(Intent.ACTION_TECH_TYPE_DETAIL));
   mListener.onSelectionChanged(mData, true);
 }