use of com.mixiaoxiao.android.view.MxxScaleImageView 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;
}
Aggregations