Search in sources :

Example 1 with MxxBlurView

use of com.mixiaoxiao.android.blur.MxxBlurView in project 9GAG by Mixiaoxiao.

the class ImageFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    rootView = (RelativeLayout) inflater.inflate(R.layout.fragment_image, null);
    rootView.setVisibility(View.INVISIBLE);
    mImageTitleTextView = (TextView) rootView.findViewById(R.id.fragment_image_title_textview);
    ((View) mImageTitleTextView.getParent()).setAlpha(0);
    mProgressWheel = (ProgressWheel) rootView.findViewById(R.id.fragment_image_progresswheel);
    mImageViewEx = (ImageViewEx) rootView.findViewById(R.id.fragment_image_imageViewex);
    mImageViewEx.setFillDirection(ImageViewEx.FillDirection.HORIZONTAL);
    blurView = (MxxBlurView) rootView.findViewById(R.id.fragment_image_blurview);
    this.mScaleImageView = (MxxScaleImageView) rootView.findViewById(R.id.fragment_image_scaleimageview);
    mScaleImageView.setBlurView(blurView);
    SystemBarTintManager manager = new SystemBarTintManager(getActivity());
    View view = (View) mScaleImageView.getParent();
    view.setPadding(0, manager.getConfig().getPixelInsetTop(true), 0, 0);
    return rootView;
}
Also used : SystemBarTintManager(com.mixiaoxiao.android.util.SystemBarTintManager) MxxScaleImageView(com.mixiaoxiao.android.view.MxxScaleImageView) ImageView(android.widget.ImageView) MxxBlurView(com.mixiaoxiao.android.blur.MxxBlurView) View(android.view.View) TextView(android.widget.TextView)

Aggregations

View (android.view.View)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 MxxBlurView (com.mixiaoxiao.android.blur.MxxBlurView)1 SystemBarTintManager (com.mixiaoxiao.android.util.SystemBarTintManager)1 MxxScaleImageView (com.mixiaoxiao.android.view.MxxScaleImageView)1