Advertisement
vyoumans

Untitled

Dec 31st, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1.  
  2. //========================================
  3. // Router
  4. // something is wrong here... with .replace
  5. public void btnNextGotoStep00(View view){
  6. //setContentView(R.layout.fragment_zzf__v01__s00);
  7. getFragmentManager()
  8. .beginTransaction()
  9. .addToBackStack(null).
  10. replace("container", "fragment_zzf__v01__s00")
  11. .commit();
  12. }
  13. public void btnClickGotoStep01(View view){
  14. //setContentView(R.layout.fragment_zzf__v01__s01);
  15. getFragmentManager()
  16. .beginTransaction()
  17. .addToBackStack(null).
  18. replace("container", "fragment_zzf__v01__s01")
  19. .commit();
  20. }
  21. public void btnNextGotoStep02(View view){
  22. //setContentView(R.layout.fragment_zzf__v01__s02);
  23. getFragmentManager()
  24. .beginTransaction()
  25. .addToBackStack(null).
  26. replace("container", "fragment_zzf__v01__s02")
  27. .commit();
  28. }
  29. public void btnNextGotoStep03(View view){
  30. setContentView(R.layout.fragment_zzf__v01__s03);
  31. }
  32. public void btnNextGotoStep04(View view){
  33. setContentView(R.layout.fragment_zzf__v01__s04);
  34. }
  35. public void btnNextGotoStep05(View view){
  36. setContentView(R.layout.fragment_zzf__v01__s05);
  37. }
  38. public void btnNextGotoStep06(View view){
  39. setContentView(R.layout.fragment_zzf__v01__s06);
  40. }
  41. public void btnNextGotoStep10(View view){
  42. setContentView(R.layout.fragment_zzf__v01__s10);
  43. }
  44. public void btnNextGotoStep11(View view){
  45. setContentView(R.layout.fragment_zzf__v01__s11);
  46. }
  47. public void btnClose(View view){
  48. this.finish();
  49. }
  50.  
  51. This is the XML file for the Layout.
  52. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  53. xmlns:tools="http://schemas.android.com/tools"
  54. android:id="@+id/container"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. tools:context="com.techlatin.logi.ZZF_V01_S00"
  58. tools:ignore="MergeRootFrame" />
  59.  
  60.  
  61. /// It would seem to me that the FragmentID would be "container"?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement