question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Sliding Menu won't click

See original GitHub issue

Hi, When i implement the example with the code: SlidingMenu slide = new SlidingMenu(this, SlidingMenu.SLIDING_CONTENT);

    slide.setMode(SlidingMenu.LEFT);
    slide.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
    slide.setTouchModeBehind(SlidingMenu.TOUCHMODE_FULLSCREEN);
    slide.setBehindOffset(150);
    slide.setFadeDegree(0.3f);
    slide.setShadowWidth(5);
    slide.setOnClickListener(this);




    slide.setMenu(R.layout.simpleframelayout);


    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    getSupportFragmentManager()
    .beginTransaction()
    .replace(R.id.simpleframelayoutID, new SampleListFragment())
    .commit();

Where this is in a SherlockFragmentActivity. Unfortunately though, the menu will slide across but it is impossible to click any item. The fragment looks like this:

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;
import android.widget.ArrayAdapter;

public class SampleListFragment extends ListFragment {

@Override
public void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    ArrayAdapter<String> titles = new ArrayAdapter<String>(getActivity(), 
            android.R.layout.simple_list_item_1, new String[]{"test","test2"});
    setListAdapter(titles);
}

}

So, am i missing something or is this some bug i’m not aware of?

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
guiledcommented, Nov 5, 2014

Is there any news about this? Thank you!

0reactions
jfeinstein10commented, Mar 18, 2013

Yes, TOUCHMODE_FULLSCREEN on the behind view does not work

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Menu won't slide back up once user go to new page
I'm creating a web app that has a custom responsive menu. It's just your basic three list-item menu dropdown. When user clicks "hamburger"...
Read more >
Screen won't let me slide - Apple Support Communities
Try a forced restart and after the phone completely boots up, try the slider again. iPhone 8 or later: Press and quickly release...
Read more >
How do I fix problems with my drop-down menus and auto ...
When you click on the little down arrow and try and select something that is not the top/first choice, it will automatically scroll...
Read more >
Menu doesn't close after clicking link - Forum | Webflow
A solution is to add an interaction onto each link in the navbar to move the navmenu element 100% to the right. This...
Read more >
Creating a Smooth Sliding Menu : Frontend Coding Exercises
Learn all about how to build a totally awesome menu that smoothly slides in and out of view.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found