コード例 #1
0
  private View createSuccessView() {
    View view = UIUtils.inflate(R.layout.activity_detail);

    mInfoLayout = (FrameLayout) view.findViewById(R.id.detail_info);
    mDetailInfoHolder = new DetailInfoHolder();
    mDetailInfoHolder.setData(appInfo);
    mInfoLayout.addView(mDetailInfoHolder.getRootView());

    mSafeLayout = (FrameLayout) view.findViewById(R.id.detail_safe);
    mSafeHolder = new DetailSafeHolder();
    mSafeHolder.setData(appInfo);
    mSafeLayout.addView(mSafeHolder.getRootView());

    mScreenLayout = (HorizontalScrollView) view.findViewById(R.id.detail_screen);
    appScreenHolder = new DetailScreenHolder();
    appScreenHolder.setData(appInfo);
    mScreenLayout.addView(appScreenHolder.getRootView());

    mDesLayout = (FrameLayout) view.findViewById(R.id.detail_des);
    mDetailDesHolder = new DetailDesHolder();
    mDetailDesHolder.setData(appInfo);
    mDesLayout.addView(mDetailDesHolder.getRootView());

    mBottomLayout = (FrameLayout) view.findViewById(R.id.bottom_layout);
    detailBottomHolder = new DetailBottomHolder();
    detailBottomHolder.setData(appInfo);
    mBottomLayout.addView(detailBottomHolder.getRootView());

    return view;
  }
コード例 #2
0
 @Override
 protected void onDestroy() {
   if (detailBottomHolder != null) {
     detailBottomHolder.stopObserver();
   }
   super.onDestroy();
 }