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;
  }
  @Override
  protected void initActionbar() {
    actionBar = getSupportActionBar();
    actionBar.setTitle(UIUtils.getString(R.string.app_name));
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setHomeButtonEnabled(true);

    actionBarDrawerToggle =
        new ActionBarDrawerToggle(
            this, drawer_layout, R.drawable.ic_drawer, R.string.drawer_open, R.string.drawer_close);
    actionBarDrawerToggle.syncState();
  }
 public MainAdapter(FragmentManager supportFragmentManager) {
   super(supportFragmentManager);
   tab_names = UIUtils.getStringArray(R.array.tab_names);
 }