An Android Library that allows users to pull down a menu and select different actions. It can be implemented inside ScrollView, GridView, ListView.

Related tags

Menu AndroidPullMenu
Overview

AndroidPullMenu

Android Arsenal

AndroidPullMenu is an Open Source Android library that allows developers to easily create applications with pull menu. The aim of this library is to allow users that with a simple pull gesture to choose actions that they want to be executed.

This actions stand for refreshing options like refreshing the latest news, most viewed news, most commented views etc. or adding more actions inside view when you don’t want to implement these actions inside sliding menu. It can be implemented inside ScrollView, GridView, ListView.

sample

For more information see the website: AndroidPullMenu

Simple Example:

The implementation should be easy if you have used this library: ActionBar-PullToRefresh

Java code:

public class MainActivity extends ActionBarActivity implements OnRefreshListener{

private PullMenuLayout mPullMenuLayout;

@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_scrollview);
			
	// Now find the PullMenuLayout and set it up
    mPullMenuLayout = (PullMenuLayout) findViewById(R.id.pm_layout);
    
    ArrayList<String> mList = new ArrayList<String>();
    mList.add("Top Stories");
    mList.add("Most Recent");
    mList.add("Interest");
    mList.add("Refresh"); 
   
    // We can now setup the PullMenuLayout
    ActionBarPullMenu.from(this)
	        .allChildrenArePullable()
	        .listener(this)
	        .setup(mPullMenuLayout,android.R.color.white,mList);
}

@Override
public void onRefreshStarted(View view, int position, String selectedField) {
		Toast.makeText(MainActivity.this, position + " # "+selectedField, Toast.LENGTH_SHORT).show();
    /**
     * Simulate Refresh with 4 seconds sleep
     */
    new AsyncTask<Void, Void, Void>() {

        @Override
        protected Void doInBackground(Void... params) {
            try {
                Thread.sleep(Constants.SIMULATED_REFRESH_LENGTH);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return null;
        }

        @Override
        protected void onPostExecute(Void result) {
            super.onPostExecute(result);
            // Notify PullMenuLayout that the refresh has finished
            mPullMenuLayout.setRefreshComplete();
        }
    }.execute();
}   
}

XML Code:

  <al.shkurti.pullmenu.library.PullMenuLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/pm_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent">

  <ScrollView
      android:id="@+id/scrollview"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="8dp"
      android:scrollbarStyle="outsideInset">

      <TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/_text"/>

  </ScrollView>

</al.shkurti.pullmenu.library.PullMenuLayout>

Sample

Android pull menu sample apk

Developed by:

  • Armando Shkurti

Credits:

Inspired by:

Opinions for this concept:

https://news.layervault.com/stories/40871-pull-menu-menu-interaction-concept

Special Thanks

@chrisbanes: https://github.com/chrisbanes/ActionBar-PullToRefresh

@jpardogo and @astuetz: https://github.com/jpardogo/PagerSlidingTabStrip\

@castorflex: https://github.com/castorflex/SmoothProgressBar

License

Feel free to use it in your Android apps and also include the license in your app. I would be grateful if you would inform me about its usage

Copyright 2015 Armando Shkurti

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
You can easily add awesome animated context menu to your app.
You can easily add awesome animated context menu to your app.

ContextMenu You can easily add awesome animated context menu to your app. Check this project on dribbble Check this project on Behance Usage: For a wo

Android-NewPopupMenu 3.9 0.0 Java  is an android library to create popup menu with GoogleMusic app-like style.
Android-NewPopupMenu 3.9 0.0 Java is an android library to create popup menu with GoogleMusic app-like style.

Android-NewPopupMenu Android-NewPopupMenu is an android library to create popup menu with GoogleMusic app-like style. Requirements Tested with APIv4 H

A floating menu library for Android.
A floating menu library for Android.

Hover Hover is a floating menu implementation for Android. Goals The goals of Hover are to: Provide an easy-to-use, out-of-the-box floating menu imple

Simple and easy to use circular menu widget for Android.
Simple and easy to use circular menu widget for Android.

Deprecated This project is no longer maintained. No new issues or pull requests will be accepted. You can still use the source or fork the project to

:fire: The powerful and easiest way to implement modern material popup menu.
:fire: The powerful and easiest way to implement modern material popup menu.

PowerMenu 🔥 The powerful and easiest way to implement modern material popup menu. PowerMenu can be fully customized and used for popup dialogs. Downl

A menu consisting of icons (ImageViews) and metaball bouncing selection to give a blob effect. Inspired by Material design

Metaball-Menu A menu consisting of icons (ImageViews) and metaball bouncing selection to give a blob effect. Inspired by Material design ScreenShot Us

💧 A customizable jetpack compose dropdown menu with cascade and animations
💧 A customizable jetpack compose dropdown menu with cascade and animations

Dropdown 💧 A customizable jetpack compose dropdown menu with cascade and animations. Who's using Dropdown? 👉 Check out who's using Dropdown Include

an animated circular menu for Android
an animated circular menu for Android

CircularFloatingActionMenu An animated, customizable circular floating menu for Android, inspired by Path app. Getting Started Requirements API = 15

Android Satellite Menu
Android Satellite Menu

#Satellite Menu 'Path' has a very attractive menu sitting on the left bottom corner of the screen. Satellite Menu is the open version of this menu. Fo

底部划动菜单,滑动时背景图透明度渐变,支持嵌套 ListView 或 ScrollView

SlideBottomPanel 底部划出视图,轻松实现「知乎日报β版」效果(效果见底部效果图) 可以划出的视图可以包裹 ListView 及 ScrollView。并且 ListView 及 ScrollView 可以在第二级或第三级视图中。 Demo apk 下载地址:SlideBottomPa

NeXT 815 Dec 21, 2022
Kai Liao 2.2k Jan 3, 2023
🎨A Jetpack Compose searchable drop down menu library

Searchable-Dropdown-Menu-Jetpack-Compose ?? A Jetpack Compose Android Library to create a dropdown menu that is searchable. How to include it into you

Breens Robert 30 Dec 26, 2022
** A slide-out menu implementation, which allows users to navigate between views in your app.

MenuDrawer A slide-out menu implementation, which allows users to navigate between views in your app. Most commonly the menu is revealed by either dra

Simon Vig Therkildsen 2.6k Dec 8, 2022
Floating Action Menu for Android. Inspired by the Google Plus floating menu

android-floating-action-menu Floating Action Menu for Android. Inspired by the Google Plus floating menu. Demo Setup The simplest way to use this libr

Alessandro Crugnola 242 Nov 10, 2022
Classic Power Menu is a Power Menu Replacement for Android 11+

Classic Power Menu is a Power Menu Replacement for Android 11+, with the main aim being restoring power menu options (Device Controls & Quick Access Wallet) on Android 12.

Kieron Quinn 385 Dec 31, 2022
A dual-function menu button that offers a default action as well as the possibility of choosing a different action by selecting from a set of alternatives.

A dual-function menu button that offers a default action as well as the possibility of choosing a different action by selecting from a set of alternatives.

Kojo Fosu Bempa Edue 114 Nov 29, 2022
A multicard menu that can open and close with animation on android

MultiCardMenu A multicard menu that can open and close with animation on android,require API level >= 11 Demo ##Usage <net.wujingchao.android.view.

null 562 Nov 10, 2022
A menu which can ... BOOM! - Android

BoomMenu 2.0.0 Comes Finally Approximately 8 months ago, I got an inspiration to creating something that can boom and show menu, which I named it Boom

Nightonke 5.8k Dec 27, 2022