Ejemplo n.º 1
0
 public void onAgentChanged(Bundle paramBundle) {
   super.onAgentChanged(paramBundle);
   removeAllCells();
   if ((getShop() != null)
       && (getShopStatus() == 0)
       && (getShop().getBoolean("HasPromo"))
       && (!this.mbReqFinished)) reqOnsale();
   do return;
   while (this.mSaleList.size() <= 0);
   paramBundle = new LinearLayout(getContext());
   Object localObject = new LinearLayout.LayoutParams(-1, -2);
   paramBundle.setOrientation(1);
   paramBundle.setLayoutParams((ViewGroup.LayoutParams) localObject);
   int i = 0;
   while (i < this.mSaleList.size()) {
     localObject = (DPObject) this.mSaleList.get(i);
     CommonCell localCommonCell = createOnsaleCell();
     localCommonCell.setGAString("promotion", "", i);
     localCommonCell.setTitle(((DPObject) localObject).getString("Title"));
     localCommonCell.setSubTitle(((DPObject) localObject).getString("SubTitle"));
     if (i > 0) {
       localCommonCell.findViewById(16908295).setVisibility(4);
       setBackground(localCommonCell.findViewById(R.id.content), R.drawable.cell_item_white);
     }
     localCommonCell.setTag(Integer.valueOf(i));
     localCommonCell.setOnClickListener(this);
     paramBundle.addView(localCommonCell);
     i += 1;
   }
   if ((isWeddingShopType())
       || (isWeddingType())
       || (isHomeDesignShopType())
       || (isHomeMarketShopType())) {
     addCell("0500Cash.40Onsale", paramBundle, "promotion", 0);
     return;
   }
   addCell("0500Cash.60Onsale", paramBundle, "promotion", 0);
 }
Ejemplo n.º 2
0
 private CommonCell createOnsaleCell() {
   CommonCell localCommonCell =
       (CommonCell) this.res.inflate(getContext(), R.layout.onsale_cell, getParentView(), false);
   localCommonCell.setLeftIcon(R.drawable.detail_couponicon);
   return localCommonCell;
 }