Coder Social home page Coder Social logo

stevenrudenko / actionscontentview Goto Github PK

View Code? Open in Web Editor NEW
441.0 441.0 179.0 1.29 MB

ActionsContentView is an standalone library implements actions/content swiping view (AKA Side Navigation UI Pattern, AKA Facebook side menu). The library doesn't use any specific code introduced in new Android SDK versions. This allows develop an application with an action/content swiping view for every version of Android from 2.2 and up.

Home Page: https://play.google.com/store/apps/details?id=sample.actionscontentview

Java 100.00%

actionscontentview's People

Contributors

guillermolechuga avatar mbq- avatar stevenrudenko 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

actionscontentview's Issues

webview hardware back button closes app

In you example ActionsContentViewExample if one is navigating trough the webview pages and uses the hardware back button it closes the app instead of navigating back in the browsing history on the webpage.
fixed #9

crash while quick tapping on action items

Tapped rapidly with multiple fingers on action items.

06-19 14:41:55.163: E/InputEventReceiver(20389): Exception dispatching input event.
06-19 14:41:55.163: E/MessageQueue-JNI(20389): Exception in MessageQueue callback: handleReceiveCallback
06-19 14:41:55.183: E/MessageQueue-JNI(20389): java.lang.NullPointerException
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at shared.ui.actionscontentview.ActionsContentView$ContentScrollController.onFling(ActionsContentView.java:996)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1484)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at shared.ui.actionscontentview.ActionsContentView.onInterceptTouchEvent(ActionsContentView.java:612)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2055)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2295)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1622)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.app.Activity.dispatchTouchEvent(Activity.java:2565)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2243)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.View.dispatchPointerEvent(View.java:8343)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4743)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4609)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4221)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4190)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4301)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4198)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4358)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4221)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4190)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4198)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6517)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6434)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6405)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6370)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6597)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.os.MessageQueue.nativePollOnce(Native Method)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.os.MessageQueue.next(MessageQueue.java:138)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.os.Looper.loop(Looper.java:123)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at android.app.ActivityThread.main(ActivityThread.java:5579)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at java.lang.reflect.Method.invoke(Method.java:515)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
06-19 14:41:55.183: E/MessageQueue-JNI(20389): at dalvik.system.NativeStart.main(Native Method)
06-19 14:41:55.183: D/AndroidRuntime(20389): Shutting down VM
06-19 14:41:55.183: W/dalvikvm(20389): threadid=1: thread exiting with uncaught exception (group=0x41794da0)
06-19 14:41:55.183: W/GAV2(20389): Thread[main,5,main]: dispatch call queued. Need to call GAServiceManager.getInstance().initialize().
06-19 14:41:55.193: E/AndroidRuntime(20389): FATAL EXCEPTION: main
06-19 14:41:55.193: E/AndroidRuntime(20389): Process: com.example.app, PID: 20000
06-19 14:41:55.193: E/AndroidRuntime(20389): java.lang.NullPointerException
06-19 14:41:55.193: E/AndroidRuntime(20389): at shared.ui.actionscontentview.ActionsContentView$ContentScrollController.onFling(ActionsContentView.java:996)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1484)
06-19 14:41:55.193: E/AndroidRuntime(20389): at shared.ui.actionscontentview.ActionsContentView.onInterceptTouchEvent(ActionsContentView.java:612)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2055)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2423)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2156)
06-19 14:41:55.193: E/AndroidRuntime(20389): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2295)
06-19 14:41:55.193: E/AndroidRuntime(20389): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1622)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.app.Activity.dispatchTouchEvent(Activity.java:2565)
06-19 14:41:55.193: E/AndroidRuntime(20389): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2243)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.View.dispatchPointerEvent(View.java:8343)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4743)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4609)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4221)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4190)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4301)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4198)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4358)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4221)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4190)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4198)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4167)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6517)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6434)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6405)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6370)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6597)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.os.MessageQueue.nativePollOnce(Native Method)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.os.MessageQueue.next(MessageQueue.java:138)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.os.Looper.loop(Looper.java:123)
06-19 14:41:55.193: E/AndroidRuntime(20389): at android.app.ActivityThread.main(ActivityThread.java:5579)
06-19 14:41:55.193: E/AndroidRuntime(20389): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 14:41:55.193: E/AndroidRuntime(20389): at java.lang.reflect.Method.invoke(Method.java:515)
06-19 14:41:55.193: E/AndroidRuntime(20389): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
06-19 14:41:55.193: E/AndroidRuntime(20389): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
06-19 14:41:55.193: E/AndroidRuntime(20389): at dalvik.system.NativeStart.main(Native Method)

i solve this bug :(The ImageButton open or close menu bug... when you click itbug)

i sovle : #4 (comment)
i'm sure that the library demo have this bug. if you click button ..scroll view to back,,, scroll to show menu ,, click menu ,.. again and again like this . it will catch a problem when you click button to show menu , you must click it twice.....
If you don't believe me you can println your state(like "viewActionsContentView.isActionsShown()" ==true or false ??)...
so i think you can use your anothen method:viewActionsContentView.toggleActions() to show or close menu . and you must create another boolean state to records your menu state (open or close )whatever you scroll or click ..
here is my code:
/**

  • menu state open or close content show --false content hid --true
    • */
      private boolean mMenuOpenstate = false;
      .........................................
      public void toggleActions() {
      Log.e(TAG, "" + mMenuOpenstate);
      if (mMenuOpenstate) {
      showContent();
      mMenuOpenstate=false;
      }else {

      showActions();
      mMenuOpenstate=true;
      

      }
      }
      .......................................................
      /**

      • Starts auto-scrolling to bound which is closer to current position.
        */
        private void completeScrolling() {
        final int startX = viewContentContainer.getScrollX();

        final int rightBound = getRightBound();
        final int middle = -rightBound / 2;
        if (startX > middle) {

        mMenuOpenstate = false;
        Log.e(TAG, "show" + "mMenuOpenstate " + mMenuOpenstate);
        showContent(mFlingDuration);
        

        } else {

        mMenuOpenstate = true;
        Log.e(TAG, "hid" + "mMenuOpenstate " + mMenuOpenstate);
        hideContent(mFlingDuration);
        

        }
        }
        .............................................................
        i wish it can help you to solve this problem even a small problem..........

action content view with underline

How to creat underline like facebook on action content view?

please check the pic.

The last category hasn't underline and the action title has the blank which is above it.

tjczk 1

How to set the BottomBar to Top

Hi, in your example project, I tried to set the "bottomBar" to top and set the ActionsContentView just below the "bottomBar", it appears the ActionsContentView has a blank space on its top, how do I get rid of this blank space, thanks.

content view and fullscreen videos

Webviewfragment incapable of handling properly HTML videos (full screen button freezes the video)

Ex. content viewed in webpage by webviewfragment that has lets say a youtube embed Iframe video the html player overrides it playng the video on press play button.

full screen button actually stops the video.

Just wanted to point that out not sure if its in the scope of the library but i leave it here anyway.

Unfortunately, ActionsContentView stopped,

I tried to add another three itmes under setting category, but then the apps stopped working, the second question where I can find the setting file to create more categories.
finally.
I created a new login.xml layout and I want to link item settings://login item to login.xml.( we need an example) I see that many needs that

I use ActionsContentViewExample.
please don't forward me to read any thing else I need your answer thanks,.

Error in Library

Got this error when i opened example.xml (ActionsContentView Example)

The following classes could not be instantiated:

  • shared.ui.actionscontentview.ActionsContentView (Open Class, Show Error Log)
    See the Error Log (Window > Show View) for more details.
    Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse

android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F060000.
at android.content.res.BridgeResources.throwException(BridgeResources.java:693)
at android.content.res.BridgeResources.getDimensionPixelSize(BridgeResources.java:406)
at shared.ui.actionscontentview.ActionsContentView.(ActionsContentView.java:169)
at shared.ui.actionscontentview.ActionsContentView.(ActionsContentView.java:157)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0( at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:422)
at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:179)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:135)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:746)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:718)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:372)

The ImageButton open or close menu bug... when you click it

Here is my log:

01-15 16:42:37.479: D/memalloc(7779): /dev/pmem: Mapped buffer base:0x4be0a000 size:9216000 offset:7680000 fd:58
01-15 16:42:37.559: E/dalvikvm(7779): GC_FOR_ALLOC freed 123K, 8% free 9970K/10787K, paused 2ms+2ms
01-15 16:42:37.879: D/memalloc(7779): /dev/pmem: Mapped buffer base:0x4d4d7000 size:16465920 offset:14929920 fd:61
01-15 16:42:38.659: D/memalloc(7779): /dev/pmem: Mapped buffer base:0x4ccd3000 size:4608000 offset:3072000 fd:64
01-15 16:42:39.739: E/TAG(7779): ___
01-15 16:42:39.739: E/TAG(7779): viewActionsContentView.showActions()_
01-15 16:42:50.429: E/TAG(7779): ___
01-15 16:42:50.429: E/TAG(7779): viewActionsContentView.isActionsShown()_true
01-15 16:42:54.089: E/TAG(7779): ___
01-15 16:42:54.089: E/TAG(7779): _viewActionsContentView.showActions()

01-15 16:42:57.189: E/TAG(7779): ___
01-15 16:42:57.189: E/TAG(7779): viewActionsContentView.isActionsShown()_true
01-15 16:42:58.449: E/TAG(7779): ___
01-15 16:42:58.449: E/TAG(7779): _viewActionsContentView.showActions()

01-15 16:42:59.549: E/TAG(7779): ___
01-15 16:42:59.549: E/TAG(7779): viewActionsContentView.isActionsShown()_true
01-15 16:43:00.649: E/TAG(7779): ___
01-15 16:43:00.649: E/TAG(7779): _viewActionsContentView.showActions()

01-15 16:43:01.669: E/TAG(7779): ___
01-15 16:43:01.669: E/TAG(7779): viewActionsContentView.isActionsShown()_true
01-15 16:43:02.549: E/TAG(7779): ___
01-15 16:43:02.549: E/TAG(7779): __viewActionsContentView.isActionsShown()_true
01-15 16:45:31.479: E/TAG(7779): ___
01-15 16:45:31.479: E/TAG(7779): _viewActionsContentView.showActions()

OK . the last :
01-15 16:43:01.669: E/TAG(7779): __viewActionsContentView.isActionsShown()_true
01-15 16:43:02.549: E/TAG(7779): ___
01-15 16:43:02.549: E/TAG(7779): __viewActionsContentView.isActionsShown()_true

so . i should click the button twice and then it can show left menu
here is you code:
public void onActionsButtonClick(View view) {
if (viewActionsContentView.isActionsShown())
viewActionsContentView.showContent();
else
viewActionsContentView.showActions();
}

what's wrong? tell me please ..
Thanks !

ViewPager on content view doesn't show anything

Hello, i am trying to add a ViewPager to content view but it doesn't show anything and i can even see the action view behind content.
Here is a picture of what i got
untitled1

Could you tell me what is the problem and how can i fix that?
Thanks you!

java.lang.NullPointerException

Hello Steven,

I am using android studio and when I run your example code I get null pointer exception.
Caused by: java.lang.NullPointerException
at sample.actionscontentview.ExamplesActivity.onCreate(ExamplesActivity.java:60)
at android.app.Activity.performCreate(Activity.java:5426)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
            at android.app.ActivityThread.access$900(ActivityThread.java:161)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:157)
            at android.app.ActivityThread.main(ActivityThread.java:5356)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
            at dalvik.system.NativeStart.main(Native Method)

here is the line 60: viewActionsList.setAdapter(actionsAdapter);

I would really appreciate your response.

thanks,
Bilal Saeed.

Actions view and content view show both

when in a pad.
I want to show actions view and content view both.
Then I show the actions view.
The right of the content view should out of the window.
I want the content view math parent, do not out of the window.
Any suggestions?

NavigationSample

why when I install ActionsContentView on my mobile using Eclisps the NavigationSample will installed automatically .
and when I remove it from my project the project will not run due to errors. any idea how to remove it from the project.

Slide ActionBar

Hi, thanks for the great library. Is there any support to slide ActionBar together with the menu?

How to Re-size Icon size???

Well I was trying to use action content view based on the example but the icons on sidebar are very large... How Do I set them right........

How in the world do you add a category?

Hey!

After going through your code numerous times, I can't for the life of me figure out how the heck you added categories. ('Bookmarks').

If you could please show me how, or give me a link to where I could find my answer, I'd really appreciate it.

Thank you so much for such an awesome library. Use it in nearly all the apps I create.

  • Kyler

Disable Swipe

How can i disable swipe?
I tried viewActionsContentView.setSwipingEnabled(false); but that has no effect. On the res file I couldn't find an attribute to disable swipe.

how to implementing right side sliding support

this library layout direction is LEFT by default and i try to find some document to change options to set this layout to RIGHT but i can't find.

this quote is library document:

Feature to be implemented in future

Left, right or both side sliding support

is anybody use this library and can help me to change default layout? thanks

look this screen shot

Fatal Exception: java.lang.NullPointerException

In the meantime I've added a try/catch to keep my app from crashing. I'm not sure how to add that to the git project or I would.

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
       at shared.ui.actionscontentview.ActionsContentView$ContentScrollController.onFling(ActionsContentView.java:993)
       at android.view.GestureDetector.onTouchEvent(GestureDetector.java:620)
       at shared.ui.actionscontentview.ActionsContentView.onInterceptTouchEvent(ActionsContentView.java:612)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2214)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2687)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2362)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2687)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2362)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2687)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2362)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2687)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2362)
       at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2740)
       at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1832)
       at android.app.Activity.dispatchTouchEvent(Activity.java:2944)
       at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2701)
       at android.view.View.dispatchPointerEvent(View.java:9360)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4978)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4739)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4324)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4290)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4416)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4298)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4473)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4324)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4290)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4298)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
       at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6866)
       at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6747)
       at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6718)
       at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6956)
       at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:143)
       at android.os.Looper.loop(Looper.java:130)
       at android.app.ActivityThread.main(ActivityThread.java:6837)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Sample project has bug when device is rotated

I noticed in the sample for the library if you rotate the device a few times the shown fragment will be messed up.

To reproduce this: Start the app > Choose settings > rotate device > choose about > rotate device. Now you should see the setting fragment although about was chosen.

It's lying somewhere in the updateContent() method but I couldn't find out whats the issue.

Would you able to show me how to implement or include your library in Eclipse?

I have done both ways
a) only using and include the jar file as the library on my codings
b) include the whole folder called "ActionsContentViewLib" as the library in the workplace.

There are errors found from the runtime testing.

  1. Source not found..

  2. [2013-06-27 15:41:50 - ActionsContentViewLib] Could not find ActionsContentViewLib.apk!
    the apk file located in the bin was not found.

What is the correct way to include your library in the workplace??

Page scroll width

Hi, thanks for this library, it's very usefull!
It's possible to set the "scroll width" of the page?

Thanks
Regards

adding new category and items

I like your ActionsContentView and I want to implement in my project. first I need to add on top new category with some items. so I did like this but I got an error.
1.
I add

category://Service
settings://Rent
settings://Book
category://settings
.....................................................................
2. I add

<string name="action_service">Service</string>
<string name="action_about">About</string>

...........................................................................

3.I add in sample.actionscontentview.adapter ActionsAdapter

private static final int VIEW_TYPES_SERVICE = 4;

@OverRide
public int getItemViewType(int position) {
final Uri uri = Uri.parse(mUrls[position]);
final String scheme = uri.getScheme();
if ("category".equals(scheme))
return VIEW_TYPE_CATEGORY;
else if ("settings".equals(scheme))
return VIEW_TYPE_SETTINGS;
else if ("service".equals(scheme))
return VIEW_TYPES_SERVICE;
return VIEW_TYPE_SITES;
}

some items in my post was hidden so please see the image

http://www.4shared.com/photo/tLuosLvB/action.html

please help me doing this.... Thanks

Set content to custom layout instead of fragment

I would like to set a linear layout with a few views and then put a fragment at the bottom of the layout, how would I do this using your library? I'm confused mostly due to not knowing how the fragment transaction knows that R.id.content is only the content part of the ActionsContentView.

ActionsContentView with googlemaps

I am trying to implement the menu with google maps as my main fragment activity. Although when I have both the actionscontentview and mapfragment in the layout xml the map displays but I am not able to swipe the menu in from the left. When I increase the margin on the left side of the map I can see the menu partially, but only to the edge of the map.

Is this maybe because the map is picking up the swipe?

Any help appreciated.

Sliding menu with fragmentactivity

Hi!

How should I coding about sliding menu with fragmentactivity without change page like facebook?

your code have what I thought, but that is fragment.

Your fragmentactivity will change the page, but fragment won't.

So, how should I do like fragment won't change the page? Cuz my code is fragmentactivity.

I mean call a different fragmentactivity in one activity from slidemenu..

Implement horizontal swipping logic for content view like it made at Gmail application.

Scenario:

  1. add ViewPager with few views as content view.
  2. start application and try swipe through the views.

While we are on first view there should be ability to swipe content view to open actions by swiping from left to right.
While we are on any other view we there should be ability to swipe ViewPager content before swiping ActionsContentView.

Shadow blocks nav items in Android 5.0(L)

When the menu button is pressed my content slides right. The shadow that is to the left of the content and thus above the menu items covers the menu items and therefore the menu items are not selectable. This has only become an issue as of Android 5.0. I'll will report back if I find a solution before you do.

java.lang.NoClassDefFoundError: shared.ui.actionscontentview.R$styleable

hi, some of my app users are getting this error as soon as they try to launch an actionscontentview.

Do you have an idea how to solve it ?

java.lang.NoClassDefFoundError: shared.ui.actionscontentview.R$styleable
at shared.ui.actionscontentview.ActionsContentView.<init>(ActionsContentView.java:169)
at shared.ui.actionscontentview.ActionsContentView.<init>(ActionsContentView.java:159)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
at android.view.LayoutInflater.inflate(Native Method)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:286)
at android.app.Activity.setContentView(Activity.java:1881)
at com.preiss.swapps.link.Adapters.NotifActivity.onCreate(NotifActivity.java:104)
at android.app.Activity.performCreate(Activity.java:5122)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5371)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)

How does ViewPager exist in ActionsContentView without using Intent?

Hello, I got a problem.

My viewpager is a fagmentactivity and I hope that when I press a button which is in ActionContentView, the viewpager will show out in the right-hand's fragment.

Fragmentactivity is a subclass of activity, it needs to use intent to call it.

I don't want to use intent, because it will switch the page.

I just hope the viewpager will display and no switching page like settings, abouts ... etc which are functions in your source codes.

Have any solutions?

i get actions above content, how can i fix this?

thank you for your library, it is very useful.

i have small problem ,
when i use the library like the sample i get actions above content but i need the reverse, how can i fix this?

thank you :)

Improve performance

Hi,

First of all, congrats for the library. This is the one that suits most kinds of app menus due to its many setting options.

The problem is that after mergin the last changes (since two or three of months ago) the scrolling performance dropped a lot.

Is this issue on the 'coming soon' roadmap?

Thanks.

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.