I am trying to apply it using a cover flow layout. Instead of the image I am trying to load the pieces. Fancy coverflow supports the use of the view group instead of the image. This is the code that I am trying to use.
see public getCoverFlowItem (int i, reuseableView View, ViewGroup viewGroup) {LinearLayout linearLayout = null; If (reuseableView! = Tap) {linearLayout = (LinearLayout) reuseableView; } And {linearLayout = new linerlight (context); Linear layout. Sealout side (new fancycoverflow.layoutPerm (750, view group, layoutParamus.WRAP_CONTENT)); } Frame Layout Frame = New Frame Layout (viewGroup.getContext ()); Frame.setId (i + 10000); LinearLayout.addView (frame); Piece Manager Piece Manager = getFragmentManager (); Piece Transaction Piece Transaction = Piece MANAGER.beginTransaction (); FragmentTransaction.add (i + 10000, ItemFragment.init (i)); FragmentTransaction.commit (); Return liner layout; }
But this is not working, even if only one object exists to show a similar way, it is called an infinite number. But if I remove the piece transaction then it will work only once.
Is it going wrong here?
Comments
Post a Comment