Skip to content
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

add fragment programmatically #66

Open
gsus24 opened this issue Oct 25, 2015 · 0 comments
Open

add fragment programmatically #66

gsus24 opened this issue Oct 25, 2015 · 0 comments

Comments

@gsus24
Copy link

gsus24 commented Oct 25, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant