android - display bug on nexus 4 -


i'm coding app android devices , have problem when run on nexus 4 phone. work on galaxy s3/note 2 , on other devices.

i create avd nexus 4 parameter works on it.

the problem display of main activity. it's mosaic picture.

there isn't in logcat , don't know how correct it.

<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> 

how can correct ?

i can't post screenshot because don't have 10 reputation.


edit : can know post screnshot, :)

what may : correct screen

what it's : enter image description here

i found solution problem, don't know if work you. try add background xml file. like: android:background="#000000" in top level layout.


Comments