示例#1
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (null != mImage) {
     BitmapFetcher.cancelWork(mImage);
     mImage.setImageDrawable(null);
   }
 }
        @Override
        public void onTextChanged(CharSequence s) {
          hidingInputBoard(mSearchText);
          searchingText = s.toString();
          if (null == searchingText || searchingText.equals(""))
            mSearchClear.setVisibility(View.GONE);
          else mSearchClear.setVisibility(View.VISIBLE);

          mLoading.setVisibility(View.VISIBLE);
          // hidingInputBoard(mSearchText);
          // searchingText = mSearchText.getText().toString();
          mSearchResult.clear();
          if (!TextUtils.isEmpty(searchingText)) {
            new Searching().exec();
          } else {
            mAdapter.notifyDataSetChanged();
            mLoading.setVisibility(View.GONE);
          }
        }
 @Override
 public View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   setLayout(R.layout.chat_union_search);
   View v = super.onCreateView(inflater, container, savedInstanceState);
   mSearchedListView = (ListView) v.findViewById(R.id.chat_unions_search_list);
   mSearchedListView.setOnItemClickListener(mOnItemClickListener);
   mBaseSearchWatcher.setOnTextChangedListener(mOnTextChangedListener);
   mSearchText = (EditText) v.findViewById(R.id.base_search_input_box);
   mSearchText.setHint(R.string.unions_title_search);
   mSearchText.addTextChangedListener(mBaseSearchWatcher);
   mLoading = v.findViewById(R.id.base_loading_view);
   mSearchClear = (RecyclingImageView) v.findViewById(R.id.base_serach_clear_button);
   mSearchClear.setOnClickListener(mOnClickListener);
   return v;
 }
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    setLayout(R.layout.time_line_album_cover_list);
    View v = super.onCreateView(inflater, container, savedInstanceState);

    // mToCamera = (RelativeLayout) v
    // .findViewById(R.id.time_line_bottom_to_camera);

    mPager = (ViewPager) v.findViewById(R.id.time_line_album_cover_pager);
    mContainer = (RelativeLayout) v.findViewById(R.id.time_line_album_cover_container);

    mToTimeline = (RecyclingImageView) v.findViewById(R.id.time_line_right_top_flag);
    mToTimeline.setOnClickListener(mOnClickListener);
    return v;
  }