Search in sources :

Example 1 with BubblePopup

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");
        }
    });
}
Also used : BubblePopup(com.flyco.dialog.widget.popup.BubblePopup) CustomBubblePopup(com.flyco.dialogsamples.extra.CustomBubblePopup) TextView(android.widget.TextView) ImageView(android.widget.ImageView) TextView(android.widget.TextView) View(android.view.View) OnClick(butterknife.OnClick)

Example 2 with BubblePopup

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();
}
Also used : BubblePopup(com.flyco.dialog.widget.popup.BubblePopup) CustomBubblePopup(com.flyco.dialogsamples.extra.CustomBubblePopup) SlideBottomExit(com.flyco.animation.SlideExit.SlideBottomExit) SlideBottomEnter(com.flyco.animation.SlideEnter.SlideBottomEnter) ImageView(android.widget.ImageView) TextView(android.widget.TextView) View(android.view.View) OnClick(butterknife.OnClick)

Example 3 with BubblePopup

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();
}
Also used : BubblePopup(com.flyco.dialog.widget.popup.BubblePopup) CustomBubblePopup(com.flyco.dialogsamples.extra.CustomBubblePopup) ImageView(android.widget.ImageView) TextView(android.widget.TextView) View(android.view.View) OnClick(butterknife.OnClick)

Example 4 with BubblePopup

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();
}
Also used : BubblePopup(com.flyco.dialog.widget.popup.BubblePopup) CustomBubblePopup(com.flyco.dialogsamples.extra.CustomBubblePopup) BounceRightEnter(com.flyco.animation.BounceEnter.BounceRightEnter) ImageView(android.widget.ImageView) TextView(android.widget.TextView) View(android.view.View) SlideLeftExit(com.flyco.animation.SlideExit.SlideLeftExit) OnClick(butterknife.OnClick)

Aggregations

View (android.view.View)4 ImageView (android.widget.ImageView)4 TextView (android.widget.TextView)4 OnClick (butterknife.OnClick)4 BubblePopup (com.flyco.dialog.widget.popup.BubblePopup)4 CustomBubblePopup (com.flyco.dialogsamples.extra.CustomBubblePopup)4 BounceRightEnter (com.flyco.animation.BounceEnter.BounceRightEnter)1 SlideBottomEnter (com.flyco.animation.SlideEnter.SlideBottomEnter)1 SlideBottomExit (com.flyco.animation.SlideExit.SlideBottomExit)1 SlideLeftExit (com.flyco.animation.SlideExit.SlideLeftExit)1