why can't i do this?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

why can't i do this?

Postby sentient » Fri Mar 27, 2009 4:35 pm

Code: Select all
                <DefaultView
      android:id="@+id/defaultview"
      android:layout_width="100"
      android:layout_height="fill_parent">
   </DefaultView>


It says in the docs you can use an integer to represent the number of pixels for the width and height attributes but it gives me this error:

Description Resource Path Location Type
Unparsed aapt error(s)! Check the console for output. Demo Unknown Generic ADT Problem
Do or do not, there is no try!
sentient
Freshman
Freshman
 
Posts: 8
Joined: Mon Feb 16, 2009 11:57 am
Location: London

Top

Postby prajkti.khadse » Mon Mar 30, 2009 4:36 am

Hi

You should provide uni(px,sp,mm,etc)t while you are mentioning width or height as integer

your code would work perfectly fine as

android:layout_width="100px"
prajkti.khadse
Developer
Developer
 
Posts: 32
Joined: Thu Mar 19, 2009 1:01 pm
Location: Bangalore

Postby sentient » Mon Mar 30, 2009 9:18 am

thank you :)
Do or do not, there is no try!
sentient
Freshman
Freshman
 
Posts: 8
Joined: Mon Feb 16, 2009 11:57 am
Location: London

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 10 guests