Tuesday, April 29, 2014

ViewPager can not be displayed


ViewPager FragmentActivity sub Fragment included in FragmentTabHost not display expert answers to solve

Download address http://pan.baidu.com/s/1c0vMr3i
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Their top nobody get over it
Reply:
Paste the code on the map to get hold of people to download something to help you test? Anyway, I will not do
Reply:
Your layout problems

fragment_1.xml
 xmlns: tools = "http://schemas.android.com/tools" 
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical">

android: id = "@ + id / main_title"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
layout = "@ layout / tilte" />

android: id = "@ + id / main_view_pager"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_gravity = "center"
android: flipInterval = "30"
android: persistentDrawingCache = "animation" />



Reply:
reference to the third floor hjywyj reply:
your layout problems

fragment_1.xml
 xmlns: tools = "http://schemas.android.com/tools" 
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical">

android: id = "@ + id / main_title"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
layout = "@ layout / tilte" />

android: id = "@ + id / main_view_pager"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_gravity = "center"
android: flipInterval = "30"
android: persistentDrawingCache = "animation" />


where the problem can be said about it?
Reply:
reference to the third floor hjywyj reply:
your layout problems

fragment_1.xml
 xmlns: tools = "http://schemas.android.com/tools" 
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical">

android: id = "@ + id / main_title"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
layout = "@ layout / tilte" />

android: id = "@ + id / main_view_pager"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_gravity = "center"
android: flipInterval = "30"
android: persistentDrawingCache = "animation" />


Thank you discovered the problem
Reply:
reference to the second floor Lee_shuo reply: posted code shown on
people get hold of something to help you download the test? Anyway, I will not do

I think so, I think that the main floor is the key code to learn, learn to paste the key code. .

No comments:

Post a Comment