public View getView(int i, View view, ViewGroup viewgroup) { if (i >= getCount()) { View view1 = view; if (view == null) { view1 = a(d, a(), viewgroup); } return view1; } view = super.getView(i, view, viewgroup); viewgroup = (Button) view.findViewById(h.gx); String s = ((ehw) view).a().a; boolean flag = g.a(HiddenContactsFragment.a(j), s); if (flag) { i = l.so; } else { i = l.sn; } if (!flag) { flag = true; } else { flag = false; } viewgroup.setText(i); viewgroup.setClickable(flag); return view; }
public View onCreateView(LayoutInflater layoutinflater, ViewGroup viewgroup, Bundle bundle) { layoutinflater = super.onCreateView(layoutinflater, viewgroup, bundle); viewgroup = (Button) layoutinflater.findViewById(h.iy); viewgroup.setTextColor(layoutinflater.getResources().getColor(h.iu)); viewgroup.setText(g.mL); g.a((ImageView) layoutinflater.findViewById(h.ix), context.getResources(), g.mJ); return layoutinflater; }
public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) { paramView = LayoutInflater.from(DebugShopConfigActivity.this.getApplicationContext()).inflate(R.layout.debug_shop_config_item, null); paramViewGroup = (TextView)paramView.findViewById(R.id.name); TextView localTextView = (TextView)paramView.findViewById(R.id.value); ImageView localImageView = (ImageView)paramView.findViewById(R.id.arrow); View localView = paramView.findViewById(R.id.arrow_name); DebugShopConfigActivity.ConfigData localConfigData = (DebugShopConfigActivity.ConfigData)this.configDataList.get(paramInt); paramViewGroup.setText(localConfigData.shopView); localTextView.setText(localConfigData.agentList); if (localConfigData.isVisibile) { localImageView.setImageResource(R.drawable.arrow_up); localTextView.setVisibility(0); } while (true) { localView.setOnClickListener(new DebugShopConfigActivity.ShopAdapter.1(this, localConfigData, localTextView, localImageView)); return paramView; localImageView.setImageResource(R.drawable.arrow_down); localTextView.setVisibility(8); } }
public View getView(int paramInt, View paramView, ViewGroup paramViewGroup) { Object localObject1 = getItem(paramInt); if ((localObject1 instanceof DPObject)) { localObject1 = (DPObject)localObject1; Object localObject2; View localView2; double d2; View localView1; if ((paramView == null) || (paramView.getTag() != this)) { paramView = LayoutInflater.from(paramViewGroup.getContext()).inflate(R.layout.item_mobile_pay, paramViewGroup, false); paramView.setTag(this); paramViewGroup = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()).format(new Date(((DPObject)localObject1).getTime("Time"))); ((TextView)paramView.findViewById(R.id.name)).setText(((DPObject)localObject1).getString("ShopName")); ((TextView)paramView.findViewById(R.id.time)).setText(paramViewGroup); ((TextView)paramView.findViewById(R.id.price)).setText("消费 ¥" + HuiPayListActivity.FMT.format(((DPObject)localObject1).getDouble("OriAmount"))); paramViewGroup = ((DPObject)localObject1).getString("StatusMsg"); ((TextView)paramView.findViewById(R.id.status)).setText(paramViewGroup); double d1 = ((DPObject)localObject1).getDouble("CurrentAmount"); localObject2 = (TextView)paramView.findViewById(R.id.paid_price); localView2 = paramView.findViewById(R.id.price_divider1); d2 = ((DPObject)localObject1).getDouble("SaveAmount"); paramViewGroup = (TextView)paramView.findViewById(R.id.saved_price); localView1 = paramView.findViewById(R.id.price_divider2); paramInt = ((DPObject)localObject1).getInt("Status"); if ((paramInt == 0) || (paramInt == -1)) break label451; if (d1 <= 0.0D) break label419; ((TextView)localObject2).setText("实付 ¥" + HuiPayListActivity.FMT.format(d1)); ((TextView)localObject2).setVisibility(0); localView2.setVisibility(0); } while (true) { if (d2 <= 0.0D) break label436; localObject1 = "节省 ¥" + HuiPayListActivity.FMT.format(d2); localObject2 = new SpannableString((CharSequence)localObject1); ((SpannableString)localObject2).setSpan(new ForegroundColorSpan(HuiPayListActivity.this.getResources().getColor(R.color.light_red)), ((String)localObject1).indexOf("¥"), ((String)localObject1).length(), 18); paramViewGroup.setText((CharSequence)localObject2); paramViewGroup.setVisibility(0); localView1.setVisibility(0); return paramView; break; label419: ((TextView)localObject2).setVisibility(8); localView2.setVisibility(8); } label436: paramViewGroup.setVisibility(8); localView1.setVisibility(8); return paramView; label451: ((TextView)localObject2).setVisibility(8); localView2.setVisibility(8); paramViewGroup.setVisibility(8); localView1.setVisibility(8); return paramView; } if (localObject1 == LOADING) { HuiPayListActivity.this.loadNewPage(); return getLoadingView(paramViewGroup, paramView); } if (localObject1 == EMPTY) return getEmptyView(this.emptyMsg, null, paramViewGroup, paramView); return (View)(View)getFailedView(this.errorMsg, new HuiPayListActivity.Adapter.1(this), paramViewGroup, paramView); }
public final View a(int i, ViewGroup viewgroup) { viewgroup = (TextView) g.inflate(0x7f030256, viewgroup, false); viewgroup.setText(c(i)); viewgroup.setId(((c) b.get(i)).e); return viewgroup; }