Need help with sina-popmenu?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

hanhailong
200 Stars 51 Forks Apache License 2.0 7 Commits 4 Opened issues

Description

高仿新浪微博弹框菜单

Services available

!
?

Need anything else?

Contributors list

# 119,936
Java
viewpag...
Android
4 commits
# 71,718
Java
spinkit
spinner
Groovy
1 commit

sina-popmenu

高仿新浪微博弹框菜单

效果图如下:

示例代码

PopMenu popMenu = new PopMenu.Builder().attachToActivity(MainActivity.this)
                .addMenuItem(new PopMenuItem("文字", getResources().getDrawable(R.drawable.tabbar_compose_idea)))
                .addMenuItem(new PopMenuItem("照片/视频", getResources().getDrawable(R.drawable.tabbar_compose_photo)))
                .addMenuItem(new PopMenuItem("头条文章", getResources().getDrawable(R.drawable.tabbar_compose_headlines)))
                .addMenuItem(new PopMenuItem("签到", getResources().getDrawable(R.drawable.tabbar_compose_lbs)))
                .addMenuItem(new PopMenuItem("点评", getResources().getDrawable(R.drawable.tabbar_compose_review)))
                .addMenuItem(new PopMenuItem("更多", getResources().getDrawable(R.drawable.tabbar_compose_more)))
                .setOnItemClickListener(new PopMenuItemListener() {
                    @Override
                    public void onItemClick(PopMenu popMenu, int position) {
                        Toast.makeText(MainActivity.this, "你点击了第" + position + "个位置", Toast.LENGTH_SHORT).show();
                    }
                })
                .build();   
popMenu.show();

其他

如果你在使用的过程中遇到问题,请联系我,谢谢!!!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.