use of com.mingle.widget.SweetView in project AndroidSweetSheet by zzz40500.
the class ViewPagerDelegate method createView.
@Override
protected View createView() {
View rootView = LayoutInflater.from(mParentVG.getContext()).inflate(R.layout.layout_vp_sweet, null, false);
mSweetView = (SweetView) rootView.findViewById(R.id.sv);
mFreeGrowUpParentRelativeLayout = (FreeGrowUpParentRelativeLayout) rootView.findViewById(R.id.freeGrowUpParentF);
mIndicatorView = (IndicatorView) rootView.findViewById(R.id.indicatorView);
mIndicatorView.alphaDismiss(false);
mSweetView.setAnimationListener(new AnimationImp());
mViewPager = (ViewPager) rootView.findViewById(R.id.vp);
if (mContentViewHeight > 0) {
mFreeGrowUpParentRelativeLayout.setContentHeight(mContentViewHeight);
}
return rootView;
}
use of com.mingle.widget.SweetView in project AndroidSweetSheet by zzz40500.
the class CustomDelegate method createView.
@Override
public View createView() {
View rootView = LayoutInflater.from(mParentVG.getContext()).inflate(R.layout.layout_custom_sweet, null, false);
mSweetView = (SweetView) rootView.findViewById(R.id.sv);
mSweetView.setSweetSheetColor(sweetSheetColor);
mFreeGrowUpParentRelativeLayout = (FreeGrowUpParentRelativeLayout) rootView.findViewById(R.id.freeGrowUpParentF);
mContentRL = (RelativeLayout) rootView.findViewById(R.id.rl);
sliderIm = (CRImageView) rootView.findViewById(R.id.sliderIM);
mSweetView.setAnimationListener(new AnimationImp());
if (mContentView != null) {
mContentRL.removeAllViews();
mContentRL.addView(mContentView);
}
if (mContentViewAnimationType == AnimationType.DuangLayoutAnimation) {
mAnimationView = null;
if (mContentView instanceof ViewGroup) {
mAnimationView = (ViewGroup) mContentView;
} else {
mAnimationView = mContentRL;
}
Animation animation = AnimationUtils.loadAnimation(mContentRL.getContext(), R.anim.item_duang_show);
LayoutAnimationController layoutAnimationController = new LayoutAnimationController(animation);
layoutAnimationController.setDelay(0.1f);
mAnimationView.setLayoutAnimation(layoutAnimationController);
}
if (mContentViewHeight > 0) {
mFreeGrowUpParentRelativeLayout.setContentHeight(mContentViewHeight);
}
return rootView;
}
use of com.mingle.widget.SweetView in project AndroidSweetSheet by zzz40500.
the class RecyclerViewDelegate method createView.
@Override
protected View createView() {
View rootView = LayoutInflater.from(mParentVG.getContext()).inflate(R.layout.layout_rv_sweet, null, false);
mSweetView = (SweetView) rootView.findViewById(R.id.sv);
mFreeGrowUpParentRelativeLayout = (FreeGrowUpParentRelativeLayout) rootView.findViewById(R.id.freeGrowUpParentF);
mRV = (RecyclerView) rootView.findViewById(R.id.rv);
sliderIm = (CRImageView) rootView.findViewById(R.id.sliderIM);
mRV.setLayoutManager(new LinearLayoutManager(mParentVG.getContext(), LinearLayoutManager.VERTICAL, false));
mSweetView.setAnimationListener(new AnimationImp());
if (mContentViewHeight > 0) {
mFreeGrowUpParentRelativeLayout.setContentHeight(mContentViewHeight);
}
return rootView;
}
Aggregations