use of com.flyco.dialog.widget.popup.BubblePopup in project FlycoDialog_Master by H07000223.
the class BubblePopupActivity method clickTopLeftBtn.
@OnClick(R.id.tv_top_left)
void clickTopLeftBtn() {
View inflate = View.inflate(mContext, R.layout.popup_bubble_text, null);
TextView tv = ButterKnife.findById(inflate, R.id.tv_bubble);
BubblePopup bubblePopup = new BubblePopup(mContext, inflate);
tv.setText("最美的不是下雨天,是曾与你躲过雨的屋檐~");
bubblePopup.anchorView(mTvTopLeft).gravity(Gravity.BOTTOM).show();
tv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
T.showShort(mContext, "tv_bubble");
}
});
}
use of com.flyco.dialog.widget.popup.BubblePopup in project FlycoDialog_Master by H07000223.
the class BubblePopupActivity method clickBottomRightBtn.
@OnClick(R.id.tv_bottom_right)
void clickBottomRightBtn() {
View inflate = View.inflate(mContext, R.layout.popup_bubble_image, null);
new BubblePopup(mContext, inflate).anchorView(mTvBottomRight).bubbleColor(Color.parseColor("#8BC34A")).showAnim(new SlideBottomEnter()).dismissAnim(new SlideBottomExit()).show();
}
use of com.flyco.dialog.widget.popup.BubblePopup in project FlycoDialog_Master by H07000223.
the class BubblePopupActivity method clickBottomLeftBtn.
@OnClick(R.id.tv_bottom_left)
void clickBottomLeftBtn() {
View inflate = View.inflate(mContext, R.layout.popup_bubble_text, null);
new BubblePopup(mContext, inflate).anchorView(mTvBottomLeft).showAnim(null).dismissAnim(null).show();
}
use of com.flyco.dialog.widget.popup.BubblePopup in project FlycoDialog_Master by H07000223.
the class BubblePopupActivity method clickCenterBtn.
@OnClick(R.id.tv_center)
void clickCenterBtn() {
View inflate = View.inflate(mContext, R.layout.popup_bubble_image, null);
BubblePopup bubblePopup = new BubblePopup(mContext, inflate);
bubblePopup.anchorView(mTvCenter).showAnim(new BounceRightEnter()).dismissAnim(new SlideLeftExit()).autoDismiss(true).show();
}
Aggregations