Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - why can't i do this?

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