I have layout with child (NOT as root) element RelativeLayout and then i create ViewPager and insert it as child of my Relative layout, so it's like
+Relative Layout (root)
|
+-- Relative Layout (child)
|
+-- -- ViewPager
For now moment - all ok.
But then i try add some view item to ViewPager with own layout then i got error
10-12 15:32:46.777: E/AndroidRuntime(6031): FATAL EXCEPTION: main
10-12 15:32:46.777: E/AndroidRuntime(6031): java.lang.StackOverflowError
10-12 15:32:46.777: E/AndroidRuntime(6031): at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5035)
How do that ViewPager will me as Child of RelativeLayout with havin own Child Views?
LayoutInflater.inflate(resId, container, false)
in a child fragment does the same trick for me. – Gaffe