Conor Taylor
Conor Taylor

Reputation: 3108

from iOS to Android: Some beginner's questions

OK I've spent a lot of time working with the iOS SDK, and now i'm porting my app to Android with Eclipse. There are just a few basic things I would like to know that I can't seem to find online:

  1. What is the equivalent of UIImageView? I have tried my hand at ImageView, but even in XML it seems nearly impossible to just resize the thing!
  2. What is the equivalent of presentModalViewController, and how do I implement the new java and xml files into my project?

Thanks for your help, it seems much harder to get started with Android than it did with iOS!

Upvotes: 0

Views: 230

Answers (2)

AAV
AAV

Reputation: 3803

1) Yes, UIImageView: ImageView are same and you can resize it using ImageView.setWidth(XX), ImageView.setHeight(XX)

2) For presentModalViewController you have to write the custom animation to make it happen.

Upvotes: 1

Yusuf X
Yusuf X

Reputation: 14633

@Samir's implied response of "start from the beginning" is correct, but to answer your specific questions:

UIImageView: ImageView

The closest thing to presentModalViewController that I use is AlertBuilder

In my very person opinion, Android way harder to set up and a little easier to code. I started with iOS and now do both. The hardest part is getting used to a different workflow. Think of the XML as equivalent to the Interface Builder step, and then the Activity as the controller code.

Upvotes: 2

Related Questions