Hello;
This is my first post here. I am a BlackBerry developer trying to
move to Android before my BlackBerry sales totally dry up. I gone
through many samples and have read quite a few post about the subject
of determining the size of the area I have to perform GraphicsActivity
commands, title bar height, etc. I feel even more lost now. I am
hoping someone will not mind helping me out to find the proper path to
head down.
I want to be able to display; the systems title bar, my applications
title bar, a drawable "canvas" for Android.graphics.Canvas functions,
and buttons at the bottom of the screen.
The GraphicsActivity and Android.graphics.Canvas functions look like
the ones I want to use. However, I have run into a few road blocks and
concerns.
1. The only samples I have found so far that use GraphicsActivity use
setContentView(new MyView(this)). I have not found one that uses an
XLM layout to deal with different screen sizes and buttons.
2. If I use do a custom View using setContentView(new MyView(this)),
I have not found a way to get the size of the area I have available
for the Graphics Activity/Canvas functions, which is the screen size
minus the size of the system title bar and my title bar. I have
found several post on" title bar/screen size" and they seem to have
gotten into some heated discussions with no resolution. Therefor I
have no way of knowing the size of the area for the Canvas functions
is. This brings up several concerns.
1. How I can place my buttons at the bottom of the screen if I am
using setContentView(new MyView(this)) in liue of the XML layout files
or how can I use XML layout files with the GraphicsActivity?
2. How can I scale a bitmap to the size of the view available for
the Android.graphics.Canvas functions if I do not know the size of the
area it is going in.
My only other concern at this point is weather or not I can save the
resulting Canvas to a picture file like a Jpeg. However, I have not
researched this issue yet.
Can someone point me in the right direction for accomplishing my goals
of:
1. Display the System title bar, my title bar, a row of buttons
at the bottom of the screen and the rest of the space is used for the
Android.graphics.Canvas functions. I will need to be able to
determine the dimensions of the area used for the
Android.graphics.Canvas functions so I can draw objects and scale
them. Ultimately I would like to save the final "Canvas" to a Jpeg
file.
Thanks for the assistance!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en