Question: Sliding Menu won't click
See original GitHub issueHi, 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:
- Created 11 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there any news about this? Thank you!
Yes, TOUCHMODE_FULLSCREEN on the behind view does not work