Code example for ListFragment

Methods: getFragmentManager

0
        if (!post.hasQuotes()) {
            return; 
        } 
 
        DialogFragment quoteFragment = QuoteDialogFragment.newInstance(post, posts);
        quoteFragment.show(getFragmentManager(), "choose_board_dialog");
    } 
 
    @Override 
    public boolean onTouch(View v, MotionEvent event) {
        switch (event.getAction()) {
            case MotionEvent.ACTION_DOWN:
                mIsImagePress = BoardFragment.isImagePress(v, event);
                if (mIsImagePress) {
                    imageFrameLayout = (FrameLayout) v.findViewById(R.id.post_img_frame);
                    imageFrameLayout.setForeground(getResources().getDrawable(R.color.image_foreground));
                } else { 
                    v.setBackgroundResource(android.R.color.holo_blue_dark);
                } 
                break; 
            case MotionEvent.ACTION_CANCEL: