Giter Club home page Giter Club logo

slidingmenusharp's Introduction

SlidingMenuSharp

A direct port of SlidingMenu to C# to work with Xamarin.Android

TODO

  • Create docs on how to use it, for now look in the samples, they should cover all aspects.

Thanks to

License

Just like the original this port is licensed under Apache 2.0.

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.

slidingmenusharp's People

Contributors

admiralnico avatar cheesebaron 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slidingmenusharp's Issues

Give me a hint

Wonderful SlidingMenuSharp...
But I would like to drag and drop even when the sliding content from the front has been slided away... give me a hint how to do it. Or how to replace one content when it is hidden.
Thank you anyway.

System.ObjectDisposedException: Cannot access a disposed object.

I am using this library developed by @Cheesebaron from past years in my project it never gave me any issues. Currently i am upgrading my app to target API level 24 and its crashing occasionally without any proper reason. Below is the error log, kindly help, it is very important

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.ObjectDisposedException: Cannot access a disposed object.
[MonoDroid] Object name: 'Android.Widget.Scroller'.
[MonoDroid] at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00030] in /Users/builder/data/lanes/3511/501e63ce/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.cs:153
[MonoDroid] at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00002] in /Users/builder/data/lanes/3511/501e63ce/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:73
[MonoDroid] at Android.Widget.Scroller.get_IsFinished () [0x00000] in /Users/builder/data/lanes/3511/501e63ce/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Widget.Scroller.cs:218
[MonoDroid] at SlidingMenuSharp.CustomViewAbove.ComputeScroll () [0x00001] in <644015490a8d4e6a9989999589722a33>:0
[MonoDroid] at Android.Views.View.n_ComputeScroll (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/builder/data/lanes/3511/501e63ce/source/monodroid/src/Mono.Android/platforms/android-24/src/generated/Android.Views.View.cs:11484
[MonoDroid] at (wrapper dynamic-method) System.Object:0d8f5eb4-78f9-44d3-b8a3-f9afc5137b0a (intptr,intptr)
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_throw'.
[Mono] Probing 'java_interop_jnienv_throw'.
[Mono] Found as 'java_interop_jnienv_throw'.

Get Slidng event and sliding position

Is there any way we can get SlidingEvent and sliding position in our base activity or leftrightactivity. Please help me on this issues, I have done lot of googling related to this, But failed to achieve this.

Slide menu doesn't fill

Hi, the items of the slide menu doesn't display correctly when the slide is set to left mode
Screenshot_2013-04-24-14-40-10 1
It loks like floating on the right of the menu

Android 2.x Issue

Hello,

I have a modified version of the menu the Xamarin ABS implementation and came across a bug with "CustomViewAbove.cs". The initialization of the interpolator caused a crash. At present my fix is to change how that is initialized; here's what I changed:

Line #27 CustomViewAbove.cs

private IInterpolator _interpolator;

Then where it is used, line 106, I changed that to this crude code:

try
{
if (_interpolator == null)
{
_interpolator = new CVAInterpolator();
}

            _scroller = new Scroller(Context, _interpolator);
        }
        catch
        {
            _scroller = new Scroller(Context);
        }

It was a quick fix for the error I ran into and needs a better solution but I figured I share what I've done with it so far.

Thomas

Black Slide using google maps api v2

Hi, I'm using together the legacybar and slidingmenusharp, when perform the sliding appears a black section in the slide content, I've tried to make a snapshot but doesn't catch the black section it appears like it were working ok.

the content of the view (SlidingFragmentActivity) is a FrameLayout whitin a linearlayout, and the content of the slidemenu is a linearlayout,

other thing, how can i use SetSlidingActionBarEnabled(false); whitn legacybar, I put that line in OnCreate, but still sliding the legacybar

I'm using the google maps api v2 and the map is showing correctly

View.Measure failing on ArgumentException

When using SlidingMenuSharp, at random times my app crashes on the error below. I was not able to identify the reason - menu doesnt have to be manipulated or even open at the time of error.

05-22 16:30:30.340 I/MonoDroid(30088): UNHANDLED EXCEPTION: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
05-22 16:30:30.340 I/MonoDroid(30088): Parameter name: jobject
05-22 16:30:30.340 I/MonoDroid(30088): at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/7f0e3d3c/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:499
05-22 16:30:30.340 I/MonoDroid(30088): at Android.Views.View.Measure (int,int) [0x0002d] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/7f0e3d3c/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Views.View.cs:10375
05-22 16:30:30.340 I/MonoDroid(30088): at SlidingMenuSharp.CustomViewAbove.OnMeasure (int,int) [0x0002c] in d:\Devel\speedcamsprototype\Application\Android\SlidingMenuSharp\CustomViewAbove.cs:339
05-22 16:30:30.340 I/MonoDroid(30088): at Android.Views.View.n_OnMeasure_II (intptr,intptr,int,int) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/7f0e3d3c/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Views.View.cs:11378
05-22 16:30:30.340 I/MonoDroid(30088): at (wrapper dynamic-method) object.bd42ef49-55d3-4861-a730-0897a6e73e12 (intptr,intptr,int,int) <IL 0x0001d, 0x0004b>
Unhandled Exception:

TouchModeAbove & TouchModeBehind Possible Issue

I have set these two properties like so:

SlidingMenu.TouchModeAbove = TouchMode.Margin;
SlidingMenu.TouchModeBehind = TouchMode.Margin;

But I am still able to slide the menu in from the right hand edge of the screen. This means I am having to disable all Sliding when using a ViewPager else the user opens the slider when they try swipe right.

Any ideas why this might be?

PS: Thanks for the awesome control!

ActionBar - NoSuchMethodError

Hello there.
When i used this library in native android, downloaded directly from market the samples run without problems.
When i used it with xamarin, everything worked but the ActionBar accesses in BaseActivity Line 44: ActionBar.SetDisplayHomeAsUpEnabled(true);
throw this exception: "Java.Lang.NoSuchMethodError: getActionBar" on a device with API 2.3.7.
Can you help?

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.