Search in sources :

Example 1 with SlideBottomExit

use of com.flyco.animation.SlideExit.SlideBottomExit in project FlycoDialog_Master by H07000223.

the class DialogHomeActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.ac_dialog_home);
    ButterKnife.bind(this);
    mMenuItems.add(new DialogMenuItem("收藏", R.mipmap.ic_winstyle_favor));
    mMenuItems.add(new DialogMenuItem("下载", R.mipmap.ic_winstyle_download));
    mMenuItems.add(new DialogMenuItem("分享", R.mipmap.ic_winstyle_share));
    mMenuItems.add(new DialogMenuItem("删除", R.mipmap.ic_winstyle_delete));
    mMenuItems.add(new DialogMenuItem("歌手", R.mipmap.ic_winstyle_artist));
    mMenuItems.add(new DialogMenuItem("专辑", R.mipmap.ic_winstyle_album));
    mBasIn = new BounceTopEnter();
    mBasOut = new SlideBottomExit();
    View decorView = getWindow().getDecorView();
    HomeAdapter adapter = new HomeAdapter(mContext);
    mElv.setAdapter(adapter);
    // extend all group
    for (int i = 0; i < mGroups.length; i++) {
        mElv.expandGroup(i);
    }
    mElv.setOnChildClickListener(this);
    mElv.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {

        @Override
        public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {
            return true;
        }
    });
}
Also used : DialogMenuItem(com.flyco.dialog.entity.DialogMenuItem) BounceTopEnter(com.flyco.animation.BounceEnter.BounceTopEnter) SlideBottomExit(com.flyco.animation.SlideExit.SlideBottomExit) HomeAdapter(com.flyco.dialogsamples.adapter.HomeAdapter) View(android.view.View) AdapterView(android.widget.AdapterView) ExpandableListView(android.widget.ExpandableListView) ExpandableListView(android.widget.ExpandableListView)

Example 2 with SlideBottomExit

use of com.flyco.animation.SlideExit.SlideBottomExit 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)

Aggregations

View (android.view.View)2 SlideBottomExit (com.flyco.animation.SlideExit.SlideBottomExit)2 AdapterView (android.widget.AdapterView)1 ExpandableListView (android.widget.ExpandableListView)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1 OnClick (butterknife.OnClick)1 BounceTopEnter (com.flyco.animation.BounceEnter.BounceTopEnter)1 SlideBottomEnter (com.flyco.animation.SlideEnter.SlideBottomEnter)1 DialogMenuItem (com.flyco.dialog.entity.DialogMenuItem)1 BubblePopup (com.flyco.dialog.widget.popup.BubblePopup)1 HomeAdapter (com.flyco.dialogsamples.adapter.HomeAdapter)1 CustomBubblePopup (com.flyco.dialogsamples.extra.CustomBubblePopup)1