I followed the way that 
http://developer.android.com/guide/topics/ui/actionbar.html#Tabs says to 
use appcompat actionbar to add tabs. 

However, I found that the oncreateview() of added fragments  will be called 
twice.

After searching the web, I found there is a workaround solution at 
http://stackoverflow.com/questions/10983396/fragment-oncreateview-and-onactivitycreated-called-twice.

Nevertheless, I am stunned that following what the official documentation 
says leads to the problem of oncreateview() of added fragments  being 
called twice. 

I wonder which is the correct implementation. 

Or is it a bug of either the documentation/samples or the appcompat library?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to