Пример #1
0
  @Override
  public void onClick(View v) {

    ButtonFlat flat = (ButtonFlat) v;
    onGetGoodTypeInterface.onGetGoodTypeInterface(flat.getText().toString());
    getActivity().findViewById(R.id.wheel_all).setVisibility(View.INVISIBLE);
  }
Пример #2
0
  @Nullable
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_good_type, container, false);

    a11 = (ButtonFlat) view.findViewById(R.id.a11);
    a12 = (ButtonFlat) view.findViewById(R.id.a12);
    a13 = (ButtonFlat) view.findViewById(R.id.a13);

    a21 = (ButtonFlat) view.findViewById(R.id.a21);
    a22 = (ButtonFlat) view.findViewById(R.id.a22);
    a23 = (ButtonFlat) view.findViewById(R.id.a23);

    a31 = (ButtonFlat) view.findViewById(R.id.a31);
    a32 = (ButtonFlat) view.findViewById(R.id.a32);
    a33 = (ButtonFlat) view.findViewById(R.id.a33);

    a41 = (ButtonFlat) view.findViewById(R.id.a41);
    a42 = (ButtonFlat) view.findViewById(R.id.a42);
    a43 = (ButtonFlat) view.findViewById(R.id.a43);

    a51 = (ButtonFlat) view.findViewById(R.id.a51);
    a52 = (ButtonFlat) view.findViewById(R.id.a52);
    //        a53 = (ButtonFlat) view.findViewById(R.id.a53);

    a11.setOnClickListener(this);
    a12.setOnClickListener(this);
    a13.setOnClickListener(this);
    a21.setOnClickListener(this);
    a22.setOnClickListener(this);
    a23.setOnClickListener(this);
    a31.setOnClickListener(this);
    a32.setOnClickListener(this);
    a33.setOnClickListener(this);
    a41.setOnClickListener(this);
    a42.setOnClickListener(this);
    a43.setOnClickListener(this);
    a51.setOnClickListener(this);
    a52.setOnClickListener(this);
    //        a53.setOnClickListener(this);

    return view;
  }