The xml file contains the constant value "1", "0", "-2" for orientation, width, height, for example, android: orientation = "1" , android: layout_width = "2" .

But Eclipse swears at such records (integer types not allowed). How to use these constants correctly?

    1 answer 1

    As written in the error, you cannot use integer.

    To set the sizes, you need to specify the size in the necessary units of px, dp, etc.

    android:layout_width="100dp" 

    For the android:orientation attribute, you need to specify the orientation you want to use vertical or horizontal

     android:orientation="horizontal"