2013-07-09 71 views
0

在Eclipse的Android的预览画面,我看到以下内容:https://dl.dropboxusercontent.com/u/63060352/379d2a92a0b1f8300d25ff15bf5bcbae.pngtextViews没有出现

但是,当我在我的手机,“反馈”和上运行的应用程序“的建议或反馈,让我们知道吗?”。 textViews不在那里,但其他人是。我很困惑,为什么这些在我的手机和模拟器上运行应用程序时没有显示。

这里是我的XML:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@drawable/info_screen_high" 
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 
tools:context=".InfomenuActivity" > 

<ImageView 
    android:id="@+id/imageView1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_marginLeft="16dp" 
    android:layout_marginTop="154dp" 
    android:layout_toRightOf="@+id/textView1" 
    android:src="@drawable/star_rating_medium" /> 

<TextView 
    android:id="@+id/textView1" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_marginTop="149dp" 
    android:text="Rate It" 
    android:textColor="#FFFFFF" 
    android:textSize="32sp" /> 

<TextView 
    android:id="@+id/textView2" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textView1" 
    android:layout_below="@+id/imageView1" 
    android:layout_marginTop="14dp" 
    android:text="Rate this app in the market!" 
    android:textSize="17dp" 
    android:textColor="#B6B6B4" /> 

<TextView 
    android:id="@+id/textView3" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textView2" 
    android:layout_below="@+id/textView2" 
    android:layout_marginTop="20dp" 
    android:text="Tell a friend" 
    android:textColor="#FFFFFF" 
    android:textSize="29dp" /> 

<TextView 
    android:id="@+id/textView4" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textView3" 
    android:layout_centerVertical="true" 
    android:text="Spread the word about the app!" 
    android:textColor="#B6B6B4" 
    android:textSize="17dp" /> 

<TextView 
    android:id="@+id/textView5" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textView4" 
    android:layout_below="@+id/textView4" 
    android:layout_marginTop="285dp" 
    android:text="Feedback" 
    android:textColor="#FFFFFF" 
    android:textSize="29dp" /> 

<TextView 
    android:id="@+id/textView6" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_alignLeft="@+id/textView5" 
    android:layout_below="@+id/textView5" 
    android:text="Suggestions or feedback? Let us know." 
    android:textColor="#B6B6B4" 
    android:textSize="18dp" /> 

</RelativeLayout> 

如果有人可以帮助我,那将是非常感谢!

+0

我认为'textview's在屏幕下丢失。我相信如果你将'RelativeLayout'封装在'ScrollView'中,那么你应该可以看到'TextView'。 – neo108

回答

0

在textView5中有android:layout_marginTop =“285dp”,太多了!你可以把类似30DP的东西,它会去工作

+0

当我放30dp时,文本视图是高的方式,这就是为什么我把285,它完全适合。 – Jaack

+0

好的。我建议,因为在Eclipse中没有向我展示这些TextvView。你尝试删除行android:layout_below =“@ + id/textView4 ??如果我删除该行,我可以在eclipse中看到这些文本 –

+0

好吧,我删除了”android:layout_below =“'+ id/textView4”和然后重新定位它,它工作得很好。感谢您的帮助! – Jaack

0

您是否尝试删除这些填充,可能是此问题。

android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 

你能告诉我们这个屏幕的快照出现在设备中。

+0

我试图删除这些填充,当我悲伤地跑掉它们时,最后的textView仍然丢失。 – Jaack