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 - Bitmap vs. Drawable

Bitmap vs. Drawable

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Bitmap vs. Drawable

Postby Zael » Tue Oct 05, 2010 8:57 pm

Hey Guys.

I have developed several games in C++ using SDL and have used JAVA for web application programming, but I am brand new to Android development. I am learning by working on a game for my phone, and was wondering about Bitmap vs. Drawable for sprites. It looks to me like the google example programs use Bitmap for the sprites. What is the drawable for? Is one preferable based on View type?

Also, right now I am using a custom view drawing directly to the canvas onDraw(). My understanding is that if a high frame rate isn't required, this is better because it uses less resources. Hoping for input on both these questions. Also is there a way to set a transparent color when loading a sprite, or does the png have to be transparent for transparency?

Thanks for the help guys.
Zael
Freshman
Freshman
 
Posts: 5
Joined: Tue Oct 05, 2010 8:43 pm

Top

Return to General

Who is online

Users browsing this forum: Exabot [Bot] and 5 guests