dkharrat / NexusDialog

Library that allows you to easily and quickly create forms in Android with little code
Apache License 2.0
183 stars 52 forks source link

FormFragment not function in pageadapter and tablayout #32

Closed powellbird closed 8 years ago

powellbird commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

As you can see in the sample, the fragment is here put in the element _fragmentcontainer, 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 commented 8 years ago

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.