• This repository has been archived on 20/Feb/2021
  • Stars
    star
    932
  • Rank 49,020 (Top 1.0 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Highly customizable SlidingLayer as you have seen in Wunderlist

6Wunderkinder SlidingLayer for Android

This repository hosts a library that provides an easy way to include an autonomous layer/view that slides from any side of your screen and which is fully gesture ready, the same way as our detail view in Wunderlist 2 does. This pattern can also be seen in Google+’s notification center, Google Maps, Google Music, Contacts app in Lollipop, Basecamp’s detail view, among others.

If you want to see how it works you can have a look to our video or directly download from Google Play it to test in on your device.

Implementation setup

As easy as to draw a green droid yourself, just grab it in your build gradle:

compile 'com.wunderlist:sliding-layer:1.2.5'

or directly add it as a submodule inside of your project.

Integration

Due to simplicity and lightness, this container is currently based on a FrameLayout. Just treat it as you would with other container: Place it in any of your XML layout files or drag it from the Custom Components panel. Additionally you can add this view programmatically. In the following example the same layout will be added by using the two mentioned ways.

XML

<com.wunderlist.slidinglayer.SlidingLayer
    xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
    android:id="@+id/slidingLayer1"
    android:layout_width="@dimen/layer_width"
    android:layout_height="@dimen/layer_height"
    slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
    slidingLayer:shadowSize="@dimen/shadow_size"
    slidingLayer:offsetDistance="@dimen/offset_distance"
    slidingLayer:previewOffsetDistance="@dimen/preview_offset_distance"
    slidingLayer:stickTo="top|bottom|right|left"
    slidingLayer:changeStateOnTap="true">

    …
    …
</com.wunderlist.slidinglayer.SlidingLayer>

Properties:

  • shadowDrawable - a reference to the resource drawable used to paint the shadow of the container
  • shadowSize - a reference to the dimension of the desired size of the given shadow
  • offsetDistance - a reference to the dimension of the desired size for the layer to offset in the screen in order for it to be directly swipable to open
  • previewOffsetDistance - a reference to the dimension of the desired size of the preview mode. When opening the layer in this state, it will only show this amount of the layer. Preview mode can be open by tapping the layer, dragging or programmatically by calling openPreview(boolean smoothAnimation).
  • stickTo - an enum that determines to where the container should stick to. ‘left’ sticks the container to the left side of the screen. ‘right’ sticks the container to the right side of the screen, and so on with ‘top‘ and ‘bottom‘ states. Default is ‘right’.
  • changeStateOnTap - a boolean that enables/disables the action to change the state of the layer -open, preview or close- by tapping on an empty space of the container. Default value is true.

Java

public class SlidingLayerExampleActivity extends Activity {
  
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
  		setContentView(R.layout.main_view);
  
  		SlidingLayer slidingLayer = (SlidingLayer) findViewById(R.id.slidingLayer1);
      
        slidingLayer.setShadowDrawable(R.drawable.sidebar_shadow);
        slidingLayer.setShadowSizeRes(R.dimen.shadow_size);
        slidingLayer.setOffsetDistanceRes(R.dimen.offset_distance);
        slidingLayer.setPreviewOffsetDistanceRes(R.dimen.preview_offset_distance);
        slidingLayer.setStickTo(SlidingLayer.STICK_TO_LEFT);
        slidingLayer.setChangeStateOnTap(false);
  		
        slidingLayer.addView(new Button(this));
        ...
    }
}

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

More Repositories

1

cqrs-journey

Microsoft patterns & pratices CQRS Journey sample application
C#
1,361
star
2

msdn-code-gallery-microsoft

Samples from Microsoft teams for the MSDN Code Gallery
696
star
3

New-KrbtgtKeys.ps1

This script will enable you to reset the krbtgt account password and related keys while minimizing the likelihood of Kerberos authentication issues being caused by the operation.
PowerShell
392
star
4

semantic-logging

Supporting semantic/structured logging for .NET
C#
217
star
5

mef

C#
153
star
6

http2-katana

HTTP 2.0 with Katana
C#
133
star
7

Learn-LTI

Access the Microsoft Learn http://docs.microsoft.com/learn Catalog of Learning Paths and Modules directly from your Learning Management Systems using the Microsoft Learn LTI application
TypeScript
125
star
8

BatchAI

Repo for publishing code Samples and CLI samples for BatchAI service
Jupyter Notebook
124
star
9

clrprofiler

C#
124
star
10

api

The Wunderlist API Documentation
123
star
11

wunderlist.js

Wunderlist Javascript SDK
JavaScript
120
star
12

KinectCommonBridge

C++
114
star
13

ttlcache

an in-memory LRU string-string map with expiration for golang
Go
109
star
14

iot-journey

a guidance project for implementing an IoT solution on Azure
C#
89
star
15

botauth

Authentication middleware for the botframework
C#
74
star
16

msdn-code-gallery-community-s-z

MSDN Code Gallery Community Samples S-Z
C#
73
star
17

enterprise-library

Microsoft Enterprise Library is a collection of reusable software components (application blocks) addressing common cross-cutting concerns.
C#
71
star
18

SilverlightToolkit

The Silverlight Toolkit provides open source controls and components for Silverlight developers
C#
68
star
19

changelog

Wunderlist Release Notes
53
star
20

msdn-code-gallery-community-a-c

MSDN Code Gallery Community Samples A-C
C#
49
star
21

msgraph-sdk-python

Microsoft Graph SDK for Python.
Python
48
star
22

HTTP-SPEED-PLUS-MOBILITY

Prototype of the HTTP Speed+ Mobility proposal submitted to IETF
C#
44
star
23

msdn-code-gallery-community-m-r

MSDN Code Gallery Community Samples M-R
C#
43
star
24

bono

Quantum visualizer
JavaScript
41
star
25

wlist

A command line client for Wunderlist
Ruby
39
star
26

wunderlist-python

Example code on how to talk to the Wunderlist API from Python.
Python
35
star
27

moxy

a multi-host reverse proxy for golang
Go
34
star
28

msdn-code-gallery-community-d-l

MSDN Code Gallery Community Samples D-L
C#
29
star
29

WindowsPhoneToolkit

The Windows Phone Toolkit provides additional controls and capabilities for Windows Phone XAML developers
C#
28
star
30

bcl

C#
26
star
31

clrsecurity

C#
25
star
32

AWS-SDK-for-WP

Windows Phone 7 SDK for Amazon Web Services
C#
22
star
33

microsoft-teams-apps-profileplus

20
star
34

cordova-plugin-auth-dialog

JavaScript
18
star
35

backbone-azure-mobile-services

Backbone sync for Azue Mobile Services
JavaScript
18
star
36

clj-bugsnag

Fully fledged Bugsnag client for Clojure. Supports ex-data and ring middleware.
Clojure
18
star
37

microsoft-teams-apps-boards

Boards is OOB Power App in Teams
17
star
38

microsoft-teams-apps-employeeideas

17
star
39

mobile-web

Project Silk's MileageStats enhanced with a mobile experience
C#
16
star
40

microsoft-teams-apps-issuereporting

16
star
41

ETWFlamegraph

Tool to generare Flamegraphs from etl files
JavaScript
16
star
42

microsoft-teams-apps-perspectives

Perspectives is OOB Power App in Teams
15
star
43

wamo

Python
15
star
44

msdn-code-gallery-community-0-9-non-alphabetic

MSDN Code Gallery Community Samples 0-9 and Non-Alphabetic
Visual Basic .NET
15
star
45

night-shift

A micro-framework to build data processing workflows with GNU Make
Python
14
star
46

hamustro

Hamustro - the collector of events.
Go
14
star
47

Kinect-for-Windows-Samples

13
star
48

microsoft-teams-apps-inspection

Enables front line workers to inspect an asset or area to manage quality of products and services or maintain safety at workplace
12
star
49

grunt-local-googlefont

Download and use local Google fonts in your Grunt jobs
JavaScript
12
star
50

graphics-dependencies

MSOpenTech graphics projects dependencies
C
11
star
51

OpenGAX

The Guidance Automation Extensions (GAX) expands the capabilities of Visual Studio by running guidance packages, which automate key development tasks from within the Visual Studio environment. The Guidance Automation Toolkit (GAT) allows authoring of guidance packages.
C#
11
star
52

wunderbits.core

Core components of Wunderbits. Dependency free, high quality, 100% coverage.
JavaScript
10
star
53

of-kinect-demos

Private Kinect V2 demos
C++
9
star
54

web-essentials

The tools, concepts, and docs for building things for the web
HTML
9
star
55

snowblower

Golang based Snowplow collector which forwards events to an SNS topic
Go
8
star
56

data-access-application-block

C#
8
star
57

transient-fault-handling-application-block

C#
8
star
58

microsoft-teams-apps-milestones

Milestones is an OOB Power App for Teams
8
star
59

cordova-azure-mobile-services

Cordova plugin for Azure Mobile Services
JavaScript
8
star
60

logsanitizer

Log processing and sanitizer tool written in Python.
Python
7
star
61

cocos2d-x-3.4-quickstart

Cocos2d-x v3.4 quick start challenge for GDC 2015
C++
7
star
62

painless-config-as-code

Environment variable resolution using configuration-as-code logic on top of painless-config. For Node.js apps.
JavaScript
7
star
63

cheetah

Command line interface for MSSQL
JavaScript
7
star
64

keyvault-configuration-resolver-node

Helpful Azure KeyVault configuration resolver for Node.js objects
JavaScript
7
star
65

data-pipeline

Exploring the problem of high-scale data ingestion on Azure
Groff
6
star
66

exception-handling-application-block

C#
6
star
67

cordova-cortana-plugin

JavaScript
6
star
68

Visual-Studio-Puppet-plugin

Puppet Plug-in for Visual Studio
C#
6
star
69

kinect-x64

x64 builds of Kinect Common Bridge
6
star
70

reliable

A reliable queue using redis
Ruby
5
star
71

python-social-auth

Python
5
star
72

enterprise-library-common-infrastructure

C#
5
star
73

edx-platform

edx platform
Python
5
star
74

validation-application-block

C#
4
star
75

trie.js

Trie structure based text search for the browser
JavaScript
4
star
76

talks

Here you can find different material, as talk slides, community stuff, workshop code, public snippets that the folks at 6Wunderkinder use in their community/talks/events that they collaborate
4
star
77

cordova-cortana-demo

A demo of using Cortana in a Cordova app
JavaScript
4
star
78

ff-jpegxr

Proof of Concept for jpegxr support in Firefox
C
4
star
79

logging-application-block

C#
4
star
80

wunderbits.db

Data storage for the browser
JavaScript
4
star
81

archived-repo

To gain access, please finish setting up this repository now at: https://repos.opensource.microsoft.com/microsoft/wizard?existingreponame=archived-repo&existingrepoid=607391243
4
star
82

function-configuration-resolver-node

A specialized Node.js module to execute all the functions within an object graph, intended to enable post-processing configuration objects.
JavaScript
4
star
83

appgateway-ios

Application Gateway - iOS version
Objective-C
3
star
84

braketini

martini middleware for reporting panics to airbrake
Go
3
star
85

cordova-pointerevents

cordova-pointerevents
JavaScript
3
star
86

mauer

frontend package manager with patching support
JavaScript
3
star
87

environment-configuration-resolver-node

Helpful environment variable resolver for Node.js objects that performs a deep walk looking for a custom env:// scheme
JavaScript
3
star
88

gostack

set of idiomatic golang middlewares for building web servers
Go
2
star
89

appgateway-android

Application Gateway - Android
Java
2
star
90

policy-injection-application-block

C#
2
star
91

msopentech.github.io

JavaScript
2
star
92

freight-truck

S3 uploader grunt task
JavaScript
2
star
93

microsoft-teams-apps-howto

2
star
94

crud.js

Browsers databases available as CRUD stores
JavaScript
2
star
95

microsoft-teams-apps-bulletins

Bulletins is OOB Power App in Teams
2
star
96

Cocos2dGame-v3.7

Cocos2d-x v3.7 Windows 10 QuickStart Challenge for OSCON
C++
2
star
97

wunderlist.github.io

Wunderlist developer Zeug
HTML
2
star
98

angle-win8.0

Angle for Windows 8.0 Phone and Store Apps
C++
2
star
99

.github

1
star
100

handlebars-anti-clickjack

Simple handlebars helper for preventing iframe click jacking
JavaScript
1
star