Ejemplo n.º 1
0
 public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) {
   paramViewGroup = paramView;
   if (paramView == null) {
     paramViewGroup = g.a(b).inflate(2130903179, null);
   }
   paramViewGroup.setBackgroundDrawable(b(paramInt));
   ((ImageView) paramViewGroup.findViewById(2131362458)).setImageDrawable(a(paramInt));
   paramView = (TextView) paramViewGroup.findViewById(2131362459);
   paramView.setTextColor(-16777216);
   paramView.setText(d[paramInt]);
   paramView = (RadioButton) paramViewGroup.findViewById(2131362460);
   if (e == paramInt) {}
   for (boolean bool = true; ; bool = false) {
     paramView.setChecked(bool);
     paramView.setClickable(false);
     paramViewGroup.setOnClickListener(new ag(this, paramInt));
     paramViewGroup.setOnTouchListener(new ah(this, paramInt));
     return paramViewGroup;
   }
 }
 public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
 {
   paramView = new NovaTextView(this.context);
   paramView.setGravity(17);
   paramView.setPadding(0, ViewUtils.dip2px(this.context, 7.0F), 0, ViewUtils.dip2px(this.context, 7.0F));
   paramView.setText(this.list[paramInt]);
   paramView.setTextSize(2, 15.0F);
   if ((paramInt == 0) && (!"price".equals(this.name)))
   {
     paramView.setBackgroundDrawable(WeddingFeastFuzzyRecommendActivity.this.getResources().getDrawable(R.drawable.red_line_round_corner_bk));
     paramView.setTextColor(WeddingFeastFuzzyRecommendActivity.this.getResources().getColor(R.color.light_red));
     if (!"region".equals(this.name))
       break label333;
     paramInt = 0;
     label123: if (paramInt < WeddingFeastFuzzyRecommendActivity.this.regions.length)
     {
       if (!WeddingFeastFuzzyRecommendActivity.this.regions[paramInt].equals(paramView.getText()))
         break label326;
       paramViewGroup = new GAUserInfo();
       if (WeddingFeastFuzzyRecommendActivity.this.shopId != null)
         paramViewGroup.shop_id = Integer.valueOf(WeddingFeastFuzzyRecommendActivity.this.shopId);
       paramViewGroup.index = Integer.valueOf(paramInt + 1);
       paramView.setGAString("region_main", paramViewGroup);
     }
   }
   label539: 
   while (true)
   {
     if ("指定区域".equals(paramView.getText()))
       paramView.setGAString("region_district");
     paramView.setOnClickListener(new WeddingFeastFuzzyRecommendActivity.GridViewAdapter.1(this));
     return paramView;
     if ((paramInt == 2) && ("price".equals(this.name)))
     {
       paramView.setBackgroundDrawable(WeddingFeastFuzzyRecommendActivity.this.getResources().getDrawable(R.drawable.red_line_round_corner_bk));
       paramView.setTextColor(WeddingFeastFuzzyRecommendActivity.this.getResources().getColor(R.color.light_red));
       break;
     }
     paramView.setBackgroundDrawable(WeddingFeastFuzzyRecommendActivity.this.getResources().getDrawable(R.drawable.black_line_round_corner_bk));
     paramView.setTextColor(WeddingFeastFuzzyRecommendActivity.this.getResources().getColor(R.color.text_gray));
     break;
     label326: paramInt += 1;
     break label123;
     label333: if ("table".equals(this.name))
     {
       paramInt = 0;
       while (true)
       {
         if (paramInt >= WeddingFeastFuzzyRecommendActivity.this.tables.length)
           break label435;
         if (WeddingFeastFuzzyRecommendActivity.this.tables[paramInt].equals(paramView.getText()))
         {
           paramViewGroup = new GAUserInfo();
           if (WeddingFeastFuzzyRecommendActivity.this.shopId != null)
             paramViewGroup.shop_id = Integer.valueOf(WeddingFeastFuzzyRecommendActivity.this.shopId);
           paramViewGroup.index = Integer.valueOf(paramInt + 1);
           paramView.setGAString("table", paramViewGroup);
           break;
         }
         paramInt += 1;
       }
       continue;
     }
     label435: if (!"price".equals(this.name))
       continue;
     paramInt = 0;
     while (true)
     {
       if (paramInt >= WeddingFeastFuzzyRecommendActivity.this.prices.length)
         break label539;
       if (WeddingFeastFuzzyRecommendActivity.this.prices[paramInt].equals(paramView.getText()))
       {
         paramViewGroup = new GAUserInfo();
         if (WeddingFeastFuzzyRecommendActivity.this.shopId != null)
           paramViewGroup.shop_id = Integer.valueOf(WeddingFeastFuzzyRecommendActivity.this.shopId);
         paramViewGroup.index = Integer.valueOf(paramInt + 1);
         paramView.setGAString("price", paramViewGroup);
         break;
       }
       paramInt += 1;
     }
   }
 }
Ejemplo n.º 3
0
 public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
 {
   Object localObject2 = null;
   Object localObject1 = null;
   Object localObject3 = getItem(paramInt);
   if (localObject3 == HEAD)
   {
     if (paramView == null);
     while (true)
     {
       localObject1 = (NovaTextView)(NovaTextView)localObject1;
       paramView = (View)localObject1;
       if (localObject1 == null)
       {
         paramView = new NovaTextView(paramViewGroup.getContext());
         paramView.setPadding(this.dip10, this.dip10, this.dip10, this.dip10);
         paramView.setGravity(19);
         paramView.setTextColor(ReviewSucceedActivity.this.getResources().getColor(R.color.light_gray));
         paramView.setTextSize(0, ReviewSucceedActivity.this.getResources().getDimension(R.dimen.text_medium));
         paramView.setText("你可能还想点评");
         paramView.setTag(HEAD);
       }
       return paramView;
       if (paramView.getTag() != HEAD)
         continue;
       localObject1 = paramView;
     }
   }
   if (localObject3 == FOOT)
   {
     if (paramView == null)
       localObject1 = localObject2;
     while (true)
     {
       localObject1 = (NovaTextView)(NovaTextView)localObject1;
       paramView = (View)localObject1;
       if (localObject1 != null)
         break;
       paramView = new NovaTextView(paramViewGroup.getContext());
       paramView.setText("更多待点评");
       paramView.setBackgroundResource(R.drawable.list_item);
       paramView.setTextColor(ReviewSucceedActivity.this.getResources().getColor(R.color.deep_gray));
       paramView.setTextSize(0, ReviewSucceedActivity.this.getResources().getDimension(R.dimen.text_medium_1));
       paramView.setGravity(17);
       paramView.setPadding(this.dip10, this.dip10, this.dip10, this.dip10);
       paramView.setTag(FOOT);
       return paramView;
       localObject1 = localObject2;
       if (paramView.getTag() != FOOT)
         continue;
       localObject1 = paramView;
     }
   }
   if ((localObject3 instanceof DPObject))
   {
     localObject1 = (DPObject)localObject3;
     if ((paramView == null) || ((paramView != null) && (!(paramView instanceof RecommendDealView))));
     for (paramView = (RecommendDealView)LayoutInflater.from(ReviewSucceedActivity.this).inflate(R.layout.recommend_deal_view, paramViewGroup, false); ; paramView = (RecommendDealView)paramView)
     {
       paramView.findViewById(R.id.shop_pic_thumb).setVisibility(0);
       paramView.setReviewItem((DPObject)localObject1, false);
       paramView.getReviewBtn().setOnClickListener(new ReviewSucceedActivity.Adapter.1(this, (DPObject)localObject1));
       return paramView;
     }
   }
   return (View)null;
 }