コード例 #1
0
ファイル: ShowSettingFragment.java プロジェクト: ISkyLove/LC
  @Override
  protected View bindView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    if (rootView == null) {
      rootView = inflater.inflate(R.layout.v1_lc_setting_show_fragment_layout, null);
    }
    tvName = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_name);
    tvPlay = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_return);
    tvStop = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_stop);
    rlShowList = (RelativeLayout) rootView.findViewById(R.id.v1_lc_setting_show_show_list);

    rlSenceList = (RelativeLayout) rootView.findViewById(R.id.v1_lc_setting_show_sence_list);

    llPane = (LinearLayout) rootView.findViewById(R.id.v1_lc_setting_show_pane);
    mChildPane1 = (LCGridView) rootView.findViewById(R.id.v1_lc_setting_show_pane_1);
    mChildPane2 = (LCGridView) rootView.findViewById(R.id.v1_lc_setting_show_pane_2);
    mChildPane3 = (LCGridView) rootView.findViewById(R.id.v1_lc_setting_show_pane_3);

    tvPane1 = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_pane_text1);
    tvPane2 = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_pane_text2);
    tvPane3 = (TextView) rootView.findViewById(R.id.v1_lc_setting_show_pane_text3);

    ivPaneAdd1 = (ImageView) rootView.findViewById(R.id.v1_lc_setting_show_pane_image_1);
    ivPaneAdd2 = (ImageView) rootView.findViewById(R.id.v1_lc_setting_show_pane_image_2);

    mShowView = new LCShowView(mContext);
    mShowView.setColumnsNum(1);
    mSenceView = new LCSenceView(mContext, true);
    mSenceView.setColumnsNum(1);
    mSenceView.setCanMoveChild(true);
    rlShowList.addView(mShowView.getRootView());
    rlSenceList.addView(mSenceView.getRootView());

    iniPane();
    initData();
    initEvents();

    return rootView;
  }