All Projects → joelan → WeiboPopupMenu

joelan / WeiboPopupMenu

Licence: other
模仿新浪微博菜单弹出界面(已停止维护)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to WeiboPopupMenu

Zhpopupcontroller
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.
Stars: ✭ 1,481 (+1874.67%)
Mutual labels:  popup, sina
Simpler
Simpler是一款轻量级的第三方微博应用,具有微博的基础功能,兼有外观优雅,运行流畅,内存占用低,省电省流量等特点。
Stars: ✭ 27 (-64%)
Mutual labels:  sina
Customized-Popup
Customized popup provides you independency related to how you want to show a popup according to your UX.
Stars: ✭ 13 (-82.67%)
Mutual labels:  popup
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+74.67%)
Mutual labels:  popup
corner-popup
jQuery pop-up script displaying various types of content in corner of browser
Stars: ✭ 23 (-69.33%)
Mutual labels:  popup
CountdownView
Simple countdown view with custom animations
Stars: ✭ 70 (-6.67%)
Mutual labels:  popup
fuckfuckadblock
Filters for blocking pop-ups and anti-adblock bypass.
Stars: ✭ 983 (+1210.67%)
Mutual labels:  popup
plain-modal
The simple library for customizable modal window.
Stars: ✭ 21 (-72%)
Mutual labels:  popup
vim-hitspop
💬 Popup the number of search results
Stars: ✭ 38 (-49.33%)
Mutual labels:  popup
mac-ibm-notifications
macOS agent used to display custom notifications and alerts to the end user.
Stars: ✭ 206 (+174.67%)
Mutual labels:  popup
Sina Spider
新浪爬虫,基于Python+Selenium。模拟登陆后保存cookie,实现登录状态的保存。可以通过输入关键词来爬取到关键词相关的热门微博。
Stars: ✭ 25 (-66.67%)
Mutual labels:  sina
Bonsai
🌲 Bonsai makes your view controller custom size.
Stars: ✭ 63 (-16%)
Mutual labels:  popup
customer-ajax-login
Free magento 2 extension for Popup and AJAX based Login and Sign Up | Manish Joy
Stars: ✭ 14 (-81.33%)
Mutual labels:  popup
MaterialDesign-Toast
Custom android Toast with Material Design
Stars: ✭ 70 (-6.67%)
Mutual labels:  popup
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-81.33%)
Mutual labels:  popup
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-81.33%)
Mutual labels:  popup
ng2-dialog-window
Modal/dialog windows and popups module for Angular applications.
Stars: ✭ 17 (-77.33%)
Mutual labels:  popup
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-74.67%)
Mutual labels:  popup
react-apple-signin-auth
 Apple signin for React using the official Apple JS SDK
Stars: ✭ 58 (-22.67%)
Mutual labels:  popup
XPopupExt
XPopup扩展功能库,基于XPopup强大的弹窗能力和PickerView的选择器逻辑,封装了时间选择器弹窗、城市选择器弹窗和条件选择器。
Stars: ✭ 248 (+230.67%)
Mutual labels:  popup

仿微博添加按钮弹出菜单

Download

image image

版本更新须知(1.0.5)

增加MenuItem的获取,预设的的个别几项属性设置settter和getter

版本更新(1.0.7)

增加菜单被关闭监听

1.依赖

依赖库分发在Jcenter。

dependencies {
compile 'com.lrq.menu:addpopmenu:latestVersion'
}

2.使用

在对应要弹出的按钮事件上加上这段代码

    mPopMenu = 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)))

                .setOnItemClickListener(new PopMenuItemListener() {
                    @Override
                    public void onItemClick(PopMenu popMenu, int position) {


                        Toast.makeText(MainActivity.this, "你点击了第" + position + "个位置", Toast.LENGTH_SHORT).show();


                    }
                })
                .build();
       mPopMenu.show();         
                

3.自定义

(1)在PopMenu以下属性的set方法都可以自定义相对应的自定义功能(调用.build()后调用,show()调用之前)

   /**
     * 关闭按钮距离屏幕底部位置单位dp
     */
   private int mCloseMenuMarginbottom=15;

    /**
     * 背景颜色
     */
    private int mBackGroundColor=Color.parseColor("#f0f3f3f3");

    /**
     * 关闭按钮的图片
     */
    private int mCloseButtomResourceid=R.drawable.tabbar_compose_background_icon_close;

    /**
     * Menu相对于屏幕顶部的距离的的倍数因子(屏幕高度减去菜单本身高度剩下部分除以这个倍数因子)
     */

    private   float mMarginTopRemainSpace=1.5f;

    /**
     * 是否错位弹出菜单
     */
    private   boolean mIsmalpositionAnimatOut=true;

    /**
     * 错位动画时间(毫秒)默认50
     */
    private   int malposition=50;
    

(2)在PopMenu以下属性的set方法都可以自定义相对应的自定义功能(调用.build()前调用)

    /**
     * 一行多少列,默认三列
     *
     */
        public Builder columnCount(int count) {
            this.columnCount = count;
            return this;
        }

    /**
     *添加菜单项
     *
     */
        public Builder addMenuItem(PopMenuItem menuItem) {
            this.itemList.add(menuItem);
            return this;
        }
    /**
     * 动画执行时间,默认300毫秒
     *
     */
        public Builder duration(int duration) {
            this.duration = duration;
            return this;
        }
    /**
     * 拉力系数,默认10
     *
     */
        public Builder tension(double tension) {
            this.tension = tension;
            return this;
        }

    /**
     * 摩擦力系数默认5
     *
     */
        public Builder friction(double friction) {
            this.friction = friction;
            return this;
        }
    /**
     * item水平之间的间距
     */
        public Builder horizontalPadding(int padding) {
            this.horizontalPadding = padding;
            return this;
        }
    /**
     * item竖直之间的间距
     */
        public Builder verticalPadding(int padding) {
            this.verticalPadding = padding;
            return this;
        }
    /**
     * item点击监听器
     */
        public Builder setOnItemClickListener(PopMenuItemListener listener) {
            this.popMenuItemListener = listener;
            return this;
        }
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].