コード例 #1
0
 @Override
 public void onClick(View v) {
   OtherSpecial otherSpecial = (OtherSpecial) v.getTag();
   SpecilDetailFragment specilDetailFragment =
       new SpecilDetailFragment(otherSpecial.getId() + "");
   ((BaseActivity) getActivity()).addFragment(specilDetailFragment, true);
 }
コード例 #2
0
 private void initFootView() {
   View footView = LayoutInflater.from(getActivity()).inflate(R.layout.special_detail_foot, null);
   LinearLayout linearLayout = (LinearLayout) footView.findViewById(R.id.otherThemeLayout);
   for (OtherSpecial otherSpecial : mDetailBean.getOthers()) {
     View view = LayoutInflater.from(getActivity()).inflate(R.layout.other_them_item, null);
     TextView textView = (TextView) view.findViewById(R.id.other_them_title);
     textView.setText(otherSpecial.getTitle());
     view.setTag(otherSpecial);
     view.setOnClickListener(onClickListener);
     linearLayout.addView(view);
   }
   mSpecialDetailList.addFooterView(footView);
 }