コード例 #1
0
  @Override
  public void addSecondFrameChildViews(
      List effectList,
      float v,
      View.OnClickListener mThirdClickListener,
      String pg_sdk_edit_effect_check,
      int color) {
    PGEditEffectHoriScrollItemAdapter baseHoriScrollItemAdapter =
        new PGEditEffectHoriScrollItemAdapter(mSecondHorizontalLayout, -1);
    baseHoriScrollItemAdapter.setContext(mActivity);
    baseHoriScrollItemAdapter.setMaskResource(pg_sdk_edit_effect_check);
    baseHoriScrollItemAdapter.hideFirstPosition();
    mSecondHorizontalLayout.setItemCountOnScreen(v);
    baseHoriScrollItemAdapter.setData(effectList);
    baseHoriScrollItemAdapter.setOnItemViewClickListener(mThirdClickListener);

    mSecondHorizontalLayout.setAdapter(baseHoriScrollItemAdapter);
  }
コード例 #2
0
  @Override
  public void addSecondEffectChildViews(
      List list,
      float showCount,
      View.OnClickListener onThirdClickListener,
      View.OnClickListener onScrollClickListener,
      String maskIcon,
      View lastSelectedView) {

    PGEditEffectHoriScrollItemAdapter baseHoriScrollItemAdapter =
        new PGEditEffectHoriScrollItemAdapter(mSecondHorizontalLayout, -1);
    baseHoriScrollItemAdapter.setOnItemViewClickListener(onThirdClickListener);
    baseHoriScrollItemAdapter.setOnScrollClickListener(onScrollClickListener);
    baseHoriScrollItemAdapter.hideFirstPosition();
    baseHoriScrollItemAdapter.setMaskResource(maskIcon);
    baseHoriScrollItemAdapter.setData(list);
    baseHoriScrollItemAdapter.setContext(mActivity);
    baseHoriScrollItemAdapter.setLastSelectedView(lastSelectedView);

    mSecondHorizontalLayout.setItemCountOnScreen(showCount);
    mSecondHorizontalLayout.setAdapter(baseHoriScrollItemAdapter);
  }