All Projects → JingYeoh → Slidemenulayout

JingYeoh / Slidemenulayout

🔥An android slide menu that supports left and right swipes and slides with parallax.(一个支持左右滑动并带有视差滑动效果的安卓侧滑菜单控件.仿[QQ/探探侧滑])

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Slidemenulayout

drag-to-close
Android library that provides a view group which allows to finish an activity by dragging a view.
Stars: ✭ 69 (-70.64%)
Mutual labels:  view, viewgroup
ShadowDrawable
为View 和 ViewGroup 添加阴影效果--Android,Add shadow for single view or viewgroup layout.
Stars: ✭ 22 (-90.64%)
Mutual labels:  view, viewgroup
bottomsheets
Material Bottom Sheets library for Android
Stars: ✭ 76 (-67.66%)
Mutual labels:  view, viewgroup
Chips Input Layout
A customizable Android ViewGroup for displaying Chips (specified in the Material Design Guide).
Stars: ✭ 591 (+151.49%)
Mutual labels:  view, viewgroup
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (-80.43%)
Mutual labels:  view, viewgroup
CoolView
一些炫酷的自定义控件(Some cool custom controls),逐步完善中...
Stars: ✭ 63 (-73.19%)
Mutual labels:  view, viewgroup
SlipperyLayout
A layout that supports sliding.
Stars: ✭ 44 (-81.28%)
Mutual labels:  view, viewgroup
FlowlayoutTags
具有标签功能的流式布局,接口简单。可多选单选,可记住选择状态,状态切换有过渡动画。
Stars: ✭ 78 (-66.81%)
Mutual labels:  view, viewgroup
Nestedtouchscrollinglayout
🎱处理子 View,父 View 嵌套滚动,成本比 support v4 NestedScrolling 低,放心食用~
Stars: ✭ 557 (+137.02%)
Mutual labels:  view, viewgroup
Calendarview
Calendar View Library
Stars: ✭ 71 (-69.79%)
Mutual labels:  view, viewgroup
Weathericonview
Weather Icon View for Android applications
Stars: ✭ 206 (-12.34%)
Mutual labels:  view
Artist
An artist creates views. Artist is a Gradle plugin that codegens a base set of Android Views.
Stars: ✭ 208 (-11.49%)
Mutual labels:  view
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (-5.53%)
Mutual labels:  view
Riot
Simple and elegant component-based UI library
Stars: ✭ 14,596 (+6111.06%)
Mutual labels:  view
Codeview
Android Code Highlighter
Stars: ✭ 204 (-13.19%)
Mutual labels:  view
Aksidemenu
Beautiful iOS side menu library with parallax effect. Written in Swift
Stars: ✭ 216 (-8.09%)
Mutual labels:  parallax
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (-15.32%)
Mutual labels:  view
Pagemenulayout
【Android分页菜单控件】快速实现美团、饿了么、京东、淘宝首页分页菜单效果
Stars: ✭ 197 (-16.17%)
Mutual labels:  view
Wiv
Window image viewer [DEPRECATED]
Stars: ✭ 196 (-16.6%)
Mutual labels:  view
Shadowimageview
🔥可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
Stars: ✭ 2,560 (+989.36%)
Mutual labels:  view

SlideMenuLayout

Introduction

An android slide menu that supports left and right swipes and slides with parallax.
一个支持左右滑动并带有视差滑动效果的安卓滑动菜单控件。(中文版入口)
Platform SDK

Demo

Encapsulate the sliding nesting of different scenarios.

Features

  • [x] Support for sliding direction configuration
  • [x] Can be used as ViewGroup
  • [x] Handle the sliding conflicts in each scenarios
  • [x] Option to click on content view to close menu when it's opening
  • [x] Option to dim the content view automatically
  • [x] Option to toggle the parallax effect

Version

name SlideMenuLayout
latest Download

Configure

Maven

<dependency>
  <groupId>com.justkiddingbaby</groupId>
  <artifactId>slidemenu</artifactId>
  <version>the latest version</version>
  <type>pom</type>
</dependency>

JCenter

First. add to project build.gradle

repositories {
    jcenter()
}

Second. add to module build.gradle

compile 'com.justkiddingbaby:slidemenu:the latest version'

Attributes instruction

attribute instruction value
slideMode sliding mode left right both none
slidePadding the content view padding when slide menu is opened dimension
slideTime the time of slide menu open,the default value is 800ms integer
parallax option to toggle the parallax effect,default is true boolean
contentAlpha the alpha of shadow for ContentView when menu is opened.(0<alpha<=1.0),default is 0.5f float
contentShadowColor the color of shadow for ContentView when menu is sliding,default is #000000 color
contentToggle option to click on content view to close menu when it's opening,default is false boolean
allowDragging option to enables or disables dragging for this view boolean

Function instruction

return function name instruction
void setSlideMode(int slideMode) set slide mode
void setSlidePadding(int slidePadding) set slide content padding when slide menu is open
void setSlideTime(int slideTime) set the time of opening slide menu
View getSlideLeftView() return left slide menu view
View getSlideRightView() return right slide menu view
View getSlideContentView() return content view
void toggleLeftSlide() open or close left slide menu
void openLeftSlide() open left slide menu
void closeLeftSlide() close left slide menu
boolean isLeftSlideOpen() return the result of left slide menu is open
void toggleRightSlide() open or close right slide menu
void openRightSlide() open right slide menu
void closeRightSlide() close right slide menu
boolean isRightSlideOpen() return the result of right slide menu is open
void setParallaxSwitch(boolean parallax) set is able to toggle the parallax effect
void setContentAlpha(float contentAlpha) set the alpha of shadow for ContentView when menu is opened.,1.0f means the effect is not abled
void setContentShadowColor(int color) set the color of shadow for ContentView when menu is sliding,default is #000000
void setContentToggle(boolean contentToggle) option to click on content view to close menu when it's opening.default is false
void setAllowTogging(boolean allowTogging) set the option for whether to allow drag slidemenu to open/close slide menu.default is true.
void addOnSlideChangedListener(OnSlideChangedListener listener) Register a callback to be invoked when this slide is changed.

Usage

use in the layout

 <com.jkb.slidemenu.SlideMenuLayout
        android:id="@+id/mainSlideMenu"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white"
        app:slideMode="both">
        <include layout="@layout/content_menu_left" />
        <include layout="@layout/content_menu_right" />
        <include layout="@layout/content_menu_content" />
 </com.jkb.slidemenu.SlideMenuLayout>

Mind

when you use SlideMenuLayout in layout,it can only host three child view,and the left slide menu view and the right slide menu view must add before the content view (for prevent the right slide menu from overlapping).
if slideMode is both then the SlideViewLayout must host three child views.

Release history

v1.3.0(2017/12/25)

1、Add feature: Enables or disables dragging for this view.
2、Add feature: Add listener to register a callback to be invoked when this slide is changed.

v1.2.2(2017/12/18)

1、Fix issue#5

v1.2.1(2017/9/18)

1、Intercept the touch action of content view when contentToggle attribute's value is true.

v1.2.0(2017/8/20)

1、Add feature: Option to click on content view to close menu when it's opening. 2、Add feature: Option to dim the content view automatically. 3、Add feature: Option to toggle the parallax effect.

v1.0.1(2017/6/29)

1、Update minSdkVersion to SDK 12.

v1.0.0(2017/6/8)

1、Release SlideMenuLayout,Handle the sliding conflicts in each scenarios.
2、Encapsulation demo.

License

This library is available under the MIT license. See the LICENSE file for more info.

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].