your post helped me find what I was looking for. In case anyone else
is googling the topic, here is what I found:
http://groups.google.com/group/android-developers/browse_thread/thread/a640da2a01bdfde5
So, the id's are the same, but you just need a separate folder for
landscape layouts.
On Dec
I would suggest then, store both images on the SD card, using the WidgetID
as a key (use widget as folder name and store the two images in it, or just
use the widget id with the orientation appended).
As for the ImageView, point it to the correct file either in
Activity.onCreate() (which should
Jeff, what did you do as a workaround? I think am going to always
process 2 photos one for portrait size and one for landscape. But I
feel like that is double the work needed. I should only have to
process this when needed (ie on orientation change on the homescreen),
this method will only slow
Thanks, but I don't want a different layout. I want to use the same
layout. I just want to change the picture size that i use in the
imageview in the layout. I need to scale/crop the image so that it
fills the correct size in the screen, going from portrait to landscape
should make the image
Clearly, you need two images, one or both scaled and cropped from the
original. I think your question may be when is the best time to do that.
That would depend on how you are storing the images, in res, on the file
system, DB, where?
On Tue, Dec 29, 2009 at 7:54 PM, Ryan rgra...@gmail.com wrote:
You can just check the orientation in the widgets call back method.But this
would not be an immediate change.
On Wed, Dec 30, 2009 at 10:23 AM, Frank Weiss fewe...@gmail.com wrote:
Clearly, you need two images, one or both scaled and cropped from the
original. I think your question may be when
Frank I can see this working. However as my code is now, I use an
imageView in the xml layout files to display my photo, however I don't
point the xml file to the photo. I process the user selected photo,
then save it to the SD card and then in code point the imageView to
the file I just made. I
7 matches
Mail list logo