Xml / linearlayout not displaying correctly on device

I am sorry if this question has already been asked but I could not find the answers. Here's some background context:

I tested my app on my Nexus 4 to fix some minor bugs. However, as soon as the eclipse triggered it, power was cut in this area, shutting down the computer. In the end, after rebuilding, I decided to install a font with a .setTypeFace () extension before launching my application, but that caused my application to crash when I launched it. So after punching through the code and finding no fix, I decided to get rid of the entire font and just run the app with the bug fix. However, it made my application look like this .

Now on eclipse the graphical layout shows this . My application until today looked great as a graphic layout. Errors do not appear on eclipse.

Why did this happen and how to fix it? Could I have damaged the entire file? Thank.

EDIT: xml file:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/testbg"
    android:orientation="vertical"
    android:weightSum="100" >

    <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="33" >

    ---- bunch of textviews ----

    </RelativeLayout>

    <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="0dp"
    android:layout_weight="57" >

    ---- More Textviews ----

    </RelativeLayout>

    <LinearLayout
    android:id="@+id/linearLayout1"
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:layout_weight="10"
    android:orientation="horizontal"
    android:weightSum="3" >

    ---- three buttons ----

</LinearLayout>

</LinearLayout>

      

+3


source to share


2 answers


I finally figured it out - it was the background. I must have clearly messed up 9.png somewhere, because it fixed itself as soon as I got rid of the background.



+1


source


This usually happens with my applications, when I change the font, some fonts look the same as in layouts, some games around me use adding a character or period after the tab space and it works, but double check the font again try installing the font or installing again different font.



0


source







All Articles