4
我正在爲android設備編寫應用程序,並且在nexus 4手機上運行時遇到問題。它適用於Galaxy S3/Note 2和其他一些設備。在nexus 4上顯示錯誤4
我使用nexus 4參數創建了一個AVD,但它對它有效。
問題是關於顯示我的主要活動。這就像一張馬賽克圖片。
logcat中沒有任何東西,我不知道如何更正它。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MainActivity" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Titre_fav"
android:textAppearance="?android:attr/textAppearanceLarge" />
<ImageView
android:id="@+id/imageView1"
android:contentDescription="@string/image_desc_star_logo"
android:layout_width="25dp"
android:layout_height="25dp"
android:src="@drawable/ic_fav" />
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/fav_scroll">
</LinearLayout>
</ScrollView>
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="50dp" >
<TextView
android:id="@+id/console"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<Button
android:id="@+id/nav_to_foud"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="@string/nav_to_found_text" />
<Button
android:id="@+id/nav_to_settings"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nav_to_settings_text" />
</RelativeLayout>
</RelativeLayout>
我該如何糾正它?
我無法發佈我的屏幕截圖,因爲我沒有10點聲望。
編輯:我知道後screnshot,謝謝:)
它可能是什麼樣子:
那是什麼樣子:
這裏是一個+1 ..張貼圖片... :) ..並歡迎來到StackOverflow。 – Madushan
發佈照片。來自我的+1! –
張貼的照片:) – Tsuna77