BaseOrchestrationFragment.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:FMTech 作者:
protected final View onCreateThemedView(LayoutInflater paramLayoutInflater, ViewGroup paramViewGroup, Bundle paramBundle)
{
  View localView = paramLayoutInflater.inflate(this.mRootLayout, paramViewGroup, false);
  this.mMainContent = ((FocusedViewToTopScrollView)localView.findViewById(R.id.main_content));
  this.mTitleImageView = ((FifeNetworkImageView)localView.findViewById(R.id.title_image));
  this.mTopBarView = ((TopBarView)localView.findViewById(R.id.top_bar));
  this.mTitleSeparator = localView.findViewById(R.id.title_separator);
  this.mButtonBar = ((ButtonBar)localView.findViewById(R.id.button_bar));
  this.mButtonBar.setPositiveButtonOnClickListener(this);
  this.mButtonBar.setNegativeButtonOnClickListener(this);
  this.mButtonBar.setExpandButtonOnClickListener(this);
  String str = this.mArguments.getBundle("additionalArgs").getString("com.google.android.wallet.orchestration.TITLE_IMAGE_FIFE_URL");
  if (!TextUtils.isEmpty(str))
  {
    this.mTitleImageView.setOnLoadedListener(new FifeNetworkImageView.OnLoadedListener()
    {
      public final void onLoaded$70e9aa75(Bitmap paramAnonymousBitmap)
      {
        int i;
        int j;
        int k;
        int m;
        float f;
        int n;
        if (paramAnonymousBitmap != null)
        {
          BaseOrchestrationFragment.this.mTitleImageView.setScaleType(ImageView.ScaleType.MATRIX);
          i = BaseOrchestrationFragment.this.mTitleImageView.getWidth();
          j = BaseOrchestrationFragment.this.mTitleImageView.getHeight();
          k = paramAnonymousBitmap.getWidth();
          m = paramAnonymousBitmap.getHeight();
          f = k / m;
          if (!BaseOrchestrationFragment.this.getResources().getBoolean(R.bool.wallet_uic_is_tablet)) {
            break label156;
          }
          n = (int)(f * j);
        }
        for (int i1 = j;; i1 = Math.max(j, (int)(i / f)))
        {
          RectF localRectF1 = new RectF(0.0F, 0.0F, k, m);
          RectF localRectF2 = new RectF(0.0F, 0.0F, n, i1);
          Matrix localMatrix = new Matrix();
          localMatrix.setRectToRect(localRectF1, localRectF2, Matrix.ScaleToFit.FILL);
          BaseOrchestrationFragment.this.mTitleImageView.setImageMatrix(localMatrix);
          return;
          label156:
          n = Math.max(i, (int)(f * j));
        }
      }
    });
    this.mTitleImageView.setVisibility(0);
    this.mTitleImageView.setFadeIn(false);
    this.mTitleImageView.setFifeImageUrl(str, PaymentUtils.getImageLoader(getActivity().getApplicationContext()), ((Boolean)G.images.useWebPForFife.get()).booleanValue());
  }
  this.mTopInfoText = ((ImInfoMessageTextView)localView.findViewById(R.id.top_info_text));
  this.mTopInfoText.setParentUiNode(this);
  this.mTopInfoText.setUrlClickListener(this);
  this.mProgressTopBarView = ((TopBarView)localView.findViewById(R.id.progress_top_bar));
  this.mProgressBar = ((ProgressBar)localView.findViewById(R.id.progress_bar));
  this.mProgressText = ((TextView)localView.findViewById(R.id.progress_text));
  this.mErrorText = ((TextView)localView.findViewById(R.id.message));
  this.mErrorCode = ((TextView)localView.findViewById(R.id.details));
  updateNonSubformPageUi();
  this.mSubFormFragment = ((FormFragment)getChildFragmentManager().findFragmentById(R.id.sub_form_holder));
  if (this.mSubFormFragment == null) {
    updateSubFormFragment();
  }
  for (;;)
  {
    if ((paramBundle != null) && (this.mInlineErrorMessageDetails != null)) {
      updateInlineErrorMessageStateAndVisibility();
    }
    localView.findViewById(R.id.steal_focus_and_hide_keyboard).setOnFocusChangeListener(this);
    return localView;
    configureAutoScrollingForPage();
    constructAndConfigureDependencyGraphManagerForPage();
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号