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 - How to put icons on the screen?

How to put icons on the screen?

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

How to put icons on the screen?

Postby discover_dileep » Fri Oct 31, 2008 3:16 pm

Hi
i am atttaching here my snapshot.Actually like this my UI should be.So for putting icons on UI what i am supposed to do ?With the help of droid draw i am not able to draw it.So,if i have to write xml code for this then can anyone suggest me how to write xml code for this.
please help me out.i am new to this field.

THANKS
DILU
Attachments
view copy.png
view copy.png (42.95 KiB) Viewed 439 times
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Top

Postby Quetzalcoatl » Fri Oct 31, 2008 11:54 pm

Might be worth having a look at ImageButton

Code: Select all
<ImageButton android:id="@+id/button_id"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:src="@drawable/file_name_of_icon"/>


Just replace "file_name_of_icon" with the filename of what ever icon you wish to display on the button. Put the icon in your res/drawable folder, so if you added contact.png you would just replace 'file_name_of_icon' with 'contact'.
Image
Quetzalcoatl
Senior Developer
Senior Developer
 
Posts: 129
Joined: Sat Oct 18, 2008 8:21 pm
Location: near Manchester, UK

thanks Quetzalcoatl

Postby discover_dileep » Wed Nov 05, 2008 11:32 am

hi Quetzalcoatl
yeah now its working.
discover_dileep
Developer
Developer
 
Posts: 33
Joined: Tue Oct 21, 2008 2:19 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests