android-FlipView icon indicating copy to clipboard operation
android-FlipView copied to clipboard

add fragment programmatically

Open gsus24 opened this issue 9 years ago • 0 comments

Hello,

also asked on stackoverflow http://stackoverflow.com/questions/33450012/android-fragment-flipview-baseadapter-onclick-add-fragment

i tried to add a fragment programatically to overlay a view on my flipView with buttonclick. This is what i done, it´s work, but overlayed always the previous page.

  • defined FrameLayout in xml, container for fragment
  • @onClick: sendBroadcast(Intent); //pass context to adapter
  • @FlipFragment (i use Fragment for Flipview): registerReceiver, BroadcastReceiver{...replace.commit..} //call here instead inside Baseadapter

Hope you could give a tip to add fragment at current page.

Thanks alot for this great library. Best wishes

gsus24 avatar Oct 25 '15 09:10 gsus24