New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change the right part dynamically #5
Comments
Thanks :) |
I am not familiar with Fragment, but you light me up. I am hoping your example could come out soon, and I am going to read up this project and figure out a solution. thanks a lot, ^_^ |
Well done on the code, however I have this same issue. How do you assign the fragments to the menu items and then later read them and switch to them? Thanks in advance, and Great Work! |
Set the main acivite contentview as setContentView(R.layout.main); and there is a main container LinearLayout which we use to hold the fragment, and the we can replace the layout like the code show below String className = (String) mMenuData.get(position).getClassName();//get the fragment class name I have just seen this email. sorry for replying you so lately |
Set the main acivite contentview as setContentView(R.layout.main); and String className = (String) mMenuData.get(position).getClassName();//get I have just seen this email. sorry for replying you so lately 2012/10/22 drinu notifications@github.com
|
This project is great, and the example shows how to extend the sliding activity.
But I am still confused about how to start another normal activity so that it would appear in the right part. For example, the left menu lists "activity1,activity2,activity3“, when the users click on the menu list, the activity
starts accordingly and the menu becomes invisible at the same time.
The text was updated successfully, but these errors were encountered: