SlidingMenu scroll doesn't work
I'm trying to make a scrollview inside a sliding menu(created with jfeinstein10 library)
public class TestActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SlidingMenu menu = new SlidingMenu(this);
setContentView(R.layout.menu_frame);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setTouchModeBehind(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW);
menu.setMenu(R.layout.menu_frame);
}
}
Here is menu_frame.xml
android:layout_width="match_parent"
android:layout_height="wrap_content">android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="1000dp"
android:text="long button"/>
The problem is that long button scrolls ok in activity's layout, but when I open sliding menu, I can't scroll it there. What is the problem, please help.
Read more
stackoverflow.comm
No comments:
Post a Comment