Giter Club home page Giter Club logo

android-sliding-layer-lib's People

Contributors

aconsuegra avatar akshaydashrath avatar ankushg avatar cesarvaliente avatar chrisjenx avatar emilsjolander avatar eveliotc avatar fhur avatar jlugia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-sliding-layer-lib's Issues

Parallax effect

Hi, I kinda want to add a parallax feature? any ideas how to implement this ? Thanks

How to install your library on intelliJ

Hello THANKS for this library but ;p
I try this with intelliJ idea

File > import Module and choose your library but in java I dont found the class SlidingLayer. ( I am french my english is not good but i can understand)
How to fix it ?

Slider with two XML layout

Hi

I would like to call another layout as a sliding layer is this possible?.

I would like to have the main layout with a button the when a click it, it must call another layout as a Sliding layer.

Please Make This For Fragments!!

Hi, im very pleased with this, but when you are going to use it in a fragment, the SlindingLayer overlaps with the fragment widgets, so please make it available to be compatible with tab navigation :).

using stickTo="right" correctly

Another question:
I am trying to get a slide in from the right side of the screen as you have it in wunderlist.
So I am setting
slidingLayer:stickTo="right"
and it flys correctly in from the right side but goes all the way to left. So the visible area below is on the right again.

What am I doing wrong? :)

Nothing fancy in the layout:

android:layout_width="300dp"
android:layout_height="fill_parent"
slidingLayer:stickTo="right"

onClosed is not being called

I'm not doing nothing fancy, but OnInteractListener.onClosed() is not being called, however onClose() is. ¿Has anyone had this problem?

[BUG] Sliding layer does not fully disappear when layer is in small width or height

Sliding layer does not fully disappear when calling closeLayer(true). This will occur when sliding layer's layout is in small width or height.

I checked the code, and found it is caused by computeScroll() has not been called again when mScroller is reaching to its final position but not the final position.

Eg. i have a sliding layer with height 200, when i closed the sliding layer, and it will call smoothScrollTo(0, 200), and computeScroll() will stop to be called when mScroller's current position reach to 198. So the layer will not scroll to the position 220, and will not totally disappear.

Further, i will make a pull request to fix this bug.

Problem in API 4.2.2

Hi
i have a problem in api 4.2.2 when SlideLayer.openLayer(true).
can i help me?
Regarads Fatemeh

Move sliding layer with finger when using offsetDistance

Hello,
This library is very useful and working perfectly in my application.
But I want to allow user to swipe from left to right and then move the sliding layer as per the movement of finger. e.g. android Gmail application.
This is working when user try to close already opened layer by touching on layer and move the finger(In this case sliding layer moves along with finger which exactly i want while opening the layer).

Maybe this is already implemented in library,in that case..am i missing something?

OnClosed doesn't work correctly

onclosed doesn't work correctly
when Slidinglayer stick to left please check

it wasn't called when Slidinglayer already close but it was called when
i try to open layer again in the same time as onopen
but it works fine when Slidinglayer stick to the right side !!!

(try to register the listener to the your sample that you gave with library)

Sorry for my English
Thanks

ACTION_POINTER_INDEX_MASK issue

the eclipse says it cannot be resolved as a type in file SlidingLayer.java line 446.
the minimum sdk required for using motionEvent is 8 and it's not let me compile it

How to install your library on intelliJ

Hello THANKS for this library but ;p
I try this with intelliJ idea

File > import Module and choose your library but in java I dont found the class SlidingLayer. ( I am french my english is not good but i can understand)
How to fix it ?

Shadow for a top slider leads to visible artifacts on activity creation

It looks strange: when my Activity is shown for the first time, the top slider I have on the layout reveals a few pixels too much on top for a very short time. You can see that the shadow is added underneath the slider and then this gap is filled because the shadow "pushes" the content up.
That looks awkward and not nice.

How can we prevent that the user sees how the shadow is added?

This problem is only visible for top sliders, not bottom. This first screenshot shows the layout at the moment of display - see the top slider's visible portion "Start: ...." and a small grey gap between it and the action bar.
screenshot_2014-02-05-10-12-31 1

Shortly after this is visible, the shadow appears below and pushes the visible portion up so you cannot see the gap any more:
screenshot_2014-02-05-10-12-47 1

Possible to tell when and which way the SlidingLayer is sliding?

I want to be able to have a sort of parallax effect and have the information in the background layer slide while the SlidingLayer slides in.

From what I can tell, the best way to do this would be if there were a Listener for when the SlidingLayer is sliding and then move the background layer depending on which direction the SlidingLayer is moving.

I am a bit confused by what exactly onOpened() vs onOpen() do in the OnInteractListener interface so my logic might be flawed on this, but here is my idea: I start sliding the background at a constant speed when onOpen() is called and then stop when onOpened() is called. I can then do the opposite with onClose() and onClosed(). I can see this working if sliding the layer open and close both take the same amount of time, but I am not sure about that.

Can someone help me out?

middle Not Recognized As Valid stickTo Option

The stickTo attribute is documented as supporting middle. However, that is not accepted:

Error:(15, 27) String types not allowed (at 'stickTo' with value 'middle').

Values of right and bottom are. middle does not seem to be in your stickTo attr enum.

The documentation also mentions an auto value, which does not appear in the enum either.

SlidingLayer does not close all the way while Keyboard is Open

Steps to reproduce:

  1. Create a SlidingLayer with an EditText in it
  2. Click into the EditText and start typing
  3. Slide the SlidingLayer closed while the keyboard remains open
  4. Hide the keyboard

The SlidingLayer is still visible under the area where the keyboard was when this happens.
Is there some way to fix it?

No project.properties file?

Is there a reason that this repo doesn't have a project.properties file? Not having one makes it more difficult to use this repo as a submodule since whenever you try to compile it, you need to create one first (and mark the project as a library project) which then marks the submodule as dirty.

SlidingLayer and viewPager with drawerLayout

Hey,
I want to implement the slidingLayer component and my activity holds viewPager and DrawerLayout.
Is it possible to do it?
the sample app you wrote uses relativeLayout in the activity.
because i use a viewPager I used a linearLayout in the main activity.
if you can guide me through this it will be helpful for me.

thanks in advance.
Best,
Shalom Melamed

Close Sliding Layer on tap of area BELOW layer?

Is it possible to close the sliding layer when the user taps on an area that is NOT in the layer (i.e., the part "below" the layer) rather than when the user taps on an empty area within the layer?

Attribute already defined

Hello,

im tring to use your library but i have always this error:
Error:(1) Attribute "shadowDrawable" has already been defined

I use play services: 7.3.0 and it say that attribute is inside wallet_colors.xml

Im just add
compile 'com.wunderlist:sliding-layer:1.1.1'

Thanks
Sam

tab on other parts of the screen

I currently can use all the ui elements on other parts of the screen. They still work.
How can I disable that? I would like to close the menu in that case as Wunderlist does.
setCloseOnTapEnabled does not do the work as I hoped.

Lack of documentation

Is there any kind of documentation available for the library. I successfully set it to use in my android app, but the problem is that I don't know which functions are available and how to use them. I have only one option of trying to figure out from the sample project given. Is there a better and faster way to learn how to use this library?

Comments in the sample code explaining the use of the library also won't hurt.

Sliding is not smooth when performing an adapter's notifyDataSetChanged

I got a fairly simple setup: in a sliding layer, I show a ListView to choose an item. Once an item is clicked, I retract the sliding layer, revealing the main contents ListView.

In a background task, the new data is prepared and once finished, the main adapter's notifyDataSetChanged method is called to update the contents.

Problem is: the sliding animation is stopped for a noticeable amount of time to make the UI feel sluggish, not smooth.
I don't know how to work around this! Whenever loading is finished before the sliding layer is back in its retracted position, the user feels something is bumpy. If I deliberately slow down background calculation so that the sliding layer can move back before updating the main adapter, everything seems better - but that's not what I want!

As soon as I can, I want to update the screen, while the layer still scrolls smoothly!

Any hints??

Random RunTime Error: canvas: trying to use a recycled bitmap

Hello,

I finally got runing the sliding layer on my app. It was an API level issue, i was using 4.2.... Using 4.1 the problem was solved...

Now my problem is that when i slide-in and slide-out the layer, i get a random runtime exception that indicates the following... Can you help me out?

java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@40db6420

04-23 12:49:59.658: E/AndroidRuntime(28582): at android.graphics.Canvas.throwIfRecycled(Canvas.java:1026)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.graphics.Canvas.drawBitmap(Canvas.java:1065)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13625)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13594)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13594)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13715)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13596)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13715)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.widget.FrameLayout.draw(FrameLayout.java:467)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13596)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13594)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.drawChild(ViewGroup.java:2928)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2797)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.View.draw(View.java:13715)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.widget.FrameLayout.draw(FrameLayout.java:467)
04-23 12:49:59.658: E/AndroidRuntime(28582): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2211)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2281)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2177)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2045)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1854)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.Choreographer.doCallbacks(Choreographer.java:562)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.Choreographer.doFrame(Choreographer.java:532)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.os.Handler.handleCallback(Handler.java:725)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.os.Handler.dispatchMessage(Handler.java:92)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.os.Looper.loop(Looper.java:137)
04-23 12:49:59.658: E/AndroidRuntime(28582): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-23 12:49:59.658: E/AndroidRuntime(28582): at java.lang.reflect.Method.invokeNative(Native Method)
04-23 12:49:59.658: E/AndroidRuntime(28582): at java.lang.reflect.Method.invoke(Method.java:511)
04-23 12:49:59.658: E/AndroidRuntime(28582): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-23 12:49:59.658: E/AndroidRuntime(28582): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-23 12:49:59.658: E/AndroidRuntime(28582): at dalvik.system.NativeStart.main(Native Method)

Slide partially feature.

How can I open the SlidingLayer partially so that it only shows 50% or 70% of its View on the screen. Im talking about something similar in the GoogleMaps app in which when a POI is clicked a layer opens but it still shows a marker on top. Thanks !

How to swype a viewpager inside a SlidingLayer

Hi, I want put a simple viewpager inside a SlidingLayer. I tried the below xml code but I lose the swype gesture to change tabs. If I put this viewpager outside of SlidingLayer it works nice.

    <com.wunderlist.slidinglayer.SlidingLayer
      android:id="@+id/slidinglayer"
      android:layout_width="@dimen/layer_size"
      android:layout_height="wrap_content">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:layout_gravity="center">

            <TextView
                android:id="@+id/title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:textSize="16sp"
                android:layout_centerVertical="true"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true" />
        </RelativeLayout>

        <android.support.v4.view.ViewPager
            android:id="@+id/viewpager"
            android:layout_width="@dimen/layer_size"
            android:layout_height="match_parent" />

        <com.viewpagerindicator.CirclePageIndicator
            android:id="@+id/circle_page_indicator"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:padding="10dip" />

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

Is there any approach to allow me to use viewpager with SlidingLayer? Looking the source code of SlidingLayer maybe I should change the behavior of onInterceptTouchEvent or onTouchEvent.

Thank you in advance for any help you can provide

Open layer oncreate

Is there a method to get de slidinglayer opened at the app launch ?
I'm usigin openLayer(true); but doesn't do anything inside oncreate() only works in onResume().

Any idea ?

Layer is behind the scroll view?

Related to this: #36 ... well sort of ...

Anyhow ... I was able to push the sliding layer our however, for some reason, the sliding layer appears behind the scrollview.

So for my layout I have ...

RelativeLayout
SlidingLayer
ScrollView
RelativeLayout

Make SlidingLayer hide the ActionBar.

I'm using the SlidingLayer with ActionBarSherlock in my application. I set the sliding layer as stick to bottom and it slides up filling the screen. This works fine but the SlidingLayer only expands over the content of the Activity, it doesn't cover the ActionBar which is the behavior I wanted to have. Is there a way to make the SlidingLayer slide over the ActionBar? Thank you!

Vertical scroll

Hi, I found this library is so simple, light and easy to integrate. I am wondering how I can make it scrollable vertically in the sliding layer. Do I have to wrap in the scroll view? Thanks.

Multiple Sliding layers

Hi, Is it possible to add more than one sliding layers on a layout? I've tried adding two sliding layers on a layout but the other one doesn't show up, even with different id's. :/

List view

i want the sliding layer to be a list view , but swiping on it is not working ??

Stickto right slider not fully opening

Just noticed that when using a sticked to the right sliding layer it never opens completely (check sample app for confirmation). After clicking open and the layer slided to the left you are always able to drag it a bit further to the left. This means on a "pixel-perfect layout" there will always be a little gap visible...

This does not happen on sticked to the left layers.

How to handle content too long to fit in SlidingLayer without disabling tap-to-close?

My initial reaction when I noticed that some content was too long to fit in the SlidingLayer was to wrap it in a ScrollView, but I've noticed that this disables the ability to use closeOnTap since the ScrollView would intercept the touch event.

I took a look at #10 but it seems that the issue is a bit different from mine.

Is there some easy way to get SlidingLayer's closeOnTap to play nicely with a ScrollView or will I have to make a custom handler? For reference purposes, I have my SlidingLayer anchored to the bottom.

How to run your demo project?

Hello,

I'm really new to Android and Eclipse although I'm familiar with Java. My question is how can I run your demo application?

I've imported SlidingLayerSample into Eclipse but there are tons of errors. I knew it's because I need to import the Library too. Am I right? But how to import the Library as a "library"? Thanks

Stick to bottom?

Hello,

I like your library, but have been looking for something that can slide from the bottom, similar to the latest Google Earth update (bottom drawer hosting pictures).

Do you see adding STICK_TO_BOTTOM in the near future?
Thanks!

Open slider after changing layout loads.

Hi, I'm trying to have the sliding layer display (shown) over the main layout right after I set the content view. Here's my code.

    setContentView(R.layout.randomLayout);      

    slidingLayer = (SlidingLayer) findViewById(R.id.slidingLayer1);
    slidingLayer.setShadowWidthRes(R.dimen.shadow_width);
    slidingLayer.setShadowDrawable(R.drawable.sidebar_shadow);
    slidingLayer.setStickTo(SlidingLayer.STICK_TO_MIDDLE);
    slidingLayer.setCloseOnTapEnabled(false);
    slidingLayer.openLayer(true);

Okay, here's what most of my layout looks like. Now for some reason, the relative layout ain't showing at all when I post this so just imagine that this content is inside a relative layout.

<com.slidinglayer.SlidingLayer
    xmlns:slidingLayer="http://schemas.android.com/apk/res/com.slidinglayersample"
    android:id="@+id/slidingLayer1"
    android:layout_width="@dimen/layer_width"
    android:layout_height="match_parent" />
<include layout="@layout/user_preferences" />

The code "works" as no errors are thrown. However, the layer isn't showing up either.
Is there a way to open the sliding layer after changing layouts?

shadowDrawable errors with this lib loaded...

Any guidance on this.

Error:Attribute "shadowDrawable" has already been defined
Error:Attribute "shadowWidth" has already been defined

Only when this lib is loaded, do I get this error.

How to fix?...seems like needle in a haystack problem...

Getting NullPointerException while adding layout.

Hi i am getting following error while trying to place SlidingLayer inside my xml.

java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log

java.lang.NullPointerException
at com.slidinglayer.SlidingLayer.getScreenSideAuto(SlidingLayer.java:728)
at com.slidinglayer.SlidingLayer.onLayout(SlidingLayer.java:785)
at android.view.View.layout(View.java:13754)
at android.view.ViewGroup.layout(ViewGroup.java:4364)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:948)
at android.view.View.layout(View.java:13754)
at android.view.ViewGroup.layout(ViewGroup.java:4364)
at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
at android.view.View.layout(View.java:13754)
at android.view.ViewGroup.layout(ViewGroup.java:4364)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
at android.view.View.layout(View.java:13754)
at android.view.ViewGroup.layout(ViewGroup.java:4364)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1649)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1507)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1420)
at android.view.View.layout(View.java:13754)
at android.view.ViewGroup.layout(ViewGroup.java:4364)

Here is my xml

   <com.slidinglayer.SlidingLayer
    xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
    android:id="@+id/slidingLayer1"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#fac72d" >

        <ImageView
            android:id="@+id/imgCloseLayer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_marginTop="5dp"
            android:src="@drawable/cancel" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="30dp"
            android:text="Notes" />

        <com.phonethics.emr.LineEditText
            android:id="@+id/edtNotes"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/imgCloseLayer"
            android:layout_marginTop="5dp"
            android:background="#fac72d"
            android:hint="Enter notes"
            android:gravity="top"
            android:inputType="textMultiLine"
            android:maxLines="5" />
    </RelativeLayout>
</com.slidinglayer.SlidingLayer>

Upload .aar to Maven Central

It would be cool if you could just

compile 'com.wunderkinder:android-sliding-layer-lib:1.0@aar'

i.e. if .aar was uploaded to maven central

You think this is expensive?

Do you think this is too expensive to stuff all these sliding layers with child recyclerviews in one activity?

    <com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/CashLayer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
        slidingLayer:shadowSize="0dp"
        slidingLayer:offsetDistance="0dp"
        slidingLayer:previewOffsetDistance="0dp"
        slidingLayer:stickTo="top"
        slidingLayer:changeStateOnTap="false">

    </com.wunderlist.slidinglayer.SlidingLayer>

    <com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/PointsLayer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
        slidingLayer:shadowSize="0dp"
        slidingLayer:offsetDistance="0dp"
        slidingLayer:previewOffsetDistance="0dp"
        slidingLayer:stickTo="top"
        slidingLayer:changeStateOnTap="false">

        <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/ShopShopsRV"
            app:recyclerviewClipToPadding="true"
            app:recyclerviewPadding="2dp">
        </com.marshalchen.ultimaterecyclerview.UltimateRecyclerView>

    </com.wunderlist.slidinglayer.SlidingLayer>

    <com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/CommentsLayer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
        slidingLayer:shadowSize="0dp"
        slidingLayer:offsetDistance="0dp"
        slidingLayer:previewOffsetDistance="0dp"
        slidingLayer:stickTo="top"
        slidingLayer:changeStateOnTap="false">

    </com.wunderlist.slidinglayer.SlidingLayer>

    <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/ShopShopsRV"
        app:recyclerviewClipToPadding="true"
        app:recyclerviewPadding="2dp">
    </com.marshalchen.ultimaterecyclerview.UltimateRecyclerView>

    <com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/CommentsLayer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
        slidingLayer:shadowSize="0dp"
        slidingLayer:offsetDistance="0dp"
        slidingLayer:previewOffsetDistance="0dp"
        slidingLayer:stickTo="top"
        slidingLayer:changeStateOnTap="false">

        <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/ShopShopsRV"
            app:recyclerviewClipToPadding="true"
            app:recyclerviewPadding="2dp">

        </com.marshalchen.ultimaterecyclerview.UltimateRecyclerView>
    </com.wunderlist.slidinglayer.SlidingLayer>

    <com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/loqooCommentsLayer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowDrawable="@drawable/sidebar_shadow"
        slidingLayer:shadowSize="0dp"
        slidingLayer:offsetDistance="0dp"
        slidingLayer:previewOffsetDistance="0dp"
        slidingLayer:stickTo="top"
        slidingLayer:changeStateOnTap="false">

        <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/ShopShopsRV"
            app:recyclerviewClipToPadding="true"
            app:recyclerviewPadding="2dp">
        </com.marshalchen.ultimaterecyclerview.UltimateRecyclerView>

    </com.wunderlist.slidinglayer.SlidingLayer>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.