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

FormFragment not function in pageadapter and tablayout #32

Closed
powellbird opened this issue Oct 4, 2016 · 4 comments
Closed

FormFragment not function in pageadapter and tablayout #32

powellbird opened this issue Oct 4, 2016 · 4 comments

Comments

@powellbird
Copy link

I have problems in implementing the new feature formFragment because by putting them in a PageAdapter and tablayout only displays the first page but the other tabs are blank, they could help me make the right implementation, thanks

@dkharrat
Copy link
Owner

dkharrat commented Oct 6, 2016

I'm not sure I understand your question. Fragment support was recently implemented by @aveuiller and there's an example of how to use it in the samples directory. I recommend looking at the example code for usage. More details on the issue you're having would be helpful.

@powellbird powellbird reopened this Oct 7, 2016
@powellbird
Copy link
Author

thanks for the reply, when analyzing the FragmenFormActivity example, if I add a fragment more to supportfragmentmanager, only the first fragment is displayed in the form and others are not displayed correctly. Could you tell me how to put two or more fragment in the same activity. Thank you

@aveuiller
Copy link
Contributor

As you can see in the sample, the fragment is here put in the element fragment_container, which is defined in the layout.

Have you tried creating a new ViewHolder like a LinearLayout and putting your second fragment into it with another add in the transaction?

@powellbird
Copy link
Author

I did already the same for another fragment and only see the first, so try a tablayout with pageradapter and three TABS and it happens that the first TAB displays correct, but others are always blank and does not display correctly form. Greetings.

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

3 participants