private void setupView()
 {
   super.setContentView(R.layout.review_succeed_view);
   super.setTitleButton("关闭", this);
   MeasuredListView localMeasuredListView = (MeasuredListView)findViewById(R.id.commend_shops);
   localMeasuredListView.setAdapter(this.adapter);
   localMeasuredListView.setOnItemClickListener(this);
 }
Beispiel #2
0
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   super.setContentView(R.layout.huihui_rules_activity);
   super.getWindow().setBackgroundDrawable(null);
   setTitle("使用规则");
   this.rules = getIntent().getParcelableArrayListExtra("rules");
   this.tip = getStringParam("tip");
   initView();
 }
 public void onCreate(Bundle paramBundle) {
   super.onCreate(paramBundle);
   super.setContentView(R.layout.submit_scenery_order);
   paramBundle = getIntent().getData().getQueryParameter("shopid");
   try {
     this.shopID = Integer.valueOf(paramBundle).intValue();
     this.ticket = ((DPObject) getIntent().getParcelableExtra("ticket"));
     initView();
     return;
   } catch (Exception paramBundle) {
     while (true) Log.e("FormatException , ex = " + paramBundle.getMessage());
   }
 }
  private void setupView()
  {
    super.setContentView(R.layout.wedding_feast_fuzzy_recommend);
    this.phoneNumEdit = ((EditText)findViewById(R.id.phoneNum));
    this.phoneNumEdit.setOnFocusChangeListener(new View.OnFocusChangeListener()
    {
      public void onFocusChange(View paramView, boolean paramBoolean)
      {
        if (paramBoolean)
          if (WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id == null)
          {
            if ((WeddingFeastFuzzyRecommendActivity.this.shopId == null) || ("null".equals(WeddingFeastFuzzyRecommendActivity.this.shopId)) || ("".equals(WeddingFeastFuzzyRecommendActivity.this.shopId)))
              break label132;
            if (!TextUtils.isDigitsOnly(WeddingFeastFuzzyRecommendActivity.this.shopId))
              break label115;
            WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(WeddingFeastFuzzyRecommendActivity.this.shopId);
          }
        while (true)
        {
          GAHelper.instance().contextStatisticsEvent(WeddingFeastFuzzyRecommendActivity.this.getApplicationContext(), "mobile", WeddingFeastFuzzyRecommendActivity.this.gaExtra, "tap");
          return;
          label115: WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(0);
          continue;
          label132: WeddingFeastFuzzyRecommendActivity.this.gaExtra.shop_id = Integer.valueOf(0);
        }
      }
    });
    this.phoneNumEdit.addTextChangedListener(new TextWatcher()
    {
      public void afterTextChanged(Editable paramEditable)
      {
      }

      public void beforeTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
      {
      }

      public void onTextChanged(CharSequence paramCharSequence, int paramInt1, int paramInt2, int paramInt3)
      {
        WeddingFeastFuzzyRecommendActivity.this.setSubmitButtonState();
      }
    });
    this.submitBtn = ((NovaButton)findViewById(R.id.find_conditions_go_btn));
    this.submitBtn.setGAString("submit");
    this.submitBtn.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramView)
      {
        WeddingFeastFuzzyRecommendActivity.this.checkAndSubmitBookingInfo();
      }
    });
    setSubmitButtonState();
    TextView localTextView = (TextView)findViewById(R.id.orderCountView);
    this.regionView = ((MeasuredGridView)findViewById(R.id.regionView));
    MeasuredGridView localMeasuredGridView1 = (MeasuredGridView)findViewById(R.id.tableView);
    MeasuredGridView localMeasuredGridView2 = (MeasuredGridView)findViewById(R.id.priceView);
    MeasuredGridView localMeasuredGridView3 = (MeasuredGridView)findViewById(R.id.categoryView);
    localTextView.setText(this.orderCount + "");
    this.regionView.setAdapter(new GridViewAdapter(this, this.regions, "region"));
    localMeasuredGridView1.setAdapter(new GridViewAdapter(this, this.tables, "table"));
    localMeasuredGridView2.setAdapter(new GridViewAdapter(this, this.prices, "price"));
    localMeasuredGridView3.setAdapter(new GridViewAdapter(this, this.categorys, "category"));
  }