A much easier and more straightforward way to display images to the
screen is to do it in XML markup, like so:

inside main.xml [after your doctype declaration and inside any
LinearLayouts or RelativeLayouts you may want to use to layout the
view]..

<ImageView
android:id="@+id/myimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/divano3" />

You can then change the drawable used in this image programatically in
Java by grabbing a handle on this view item [inside an Activity
subclass]:
ImageView iv = (ImageView) findViewById(R.id.myimage);
and then mess with iv using any methods defined for ImageView or its
parent class, View.

Try following some of the real entry level tutorials like the Notepad
app, to establish an understanding of the Android system and the API
provided for developers. Also I imagine something you'll want to
investigate for a game would be MotionEvent so you can handle advanced
touch events. But yea, start slow—don't try to jump into anything too
complicated [like... a game] right away.

-Nick


On Mar 19, 4:25 am, Prasanjit Deka <[email protected]> wrote:
> Hi,
>
> Its not difficult , for design the screen in android is simple.
>
> In the directory structure of android application we may have the folder
> call "rec " under that there is a folder called "layout" right
>
> Under this u may design a XML template , default is main.xml.
>
> So for each design u have corresponding tag like ..for button u have
> <button><button>, for text label u have <Textview></TextView>
> So for Image view u have <Imageview></ImageView>
>
> Regards
> Prasanjit
> On Fri, Mar 19, 2010 at 4:41 PM, Fred Grott(Android Expert,
>
>
>
> http://mobilebytes.wordpress.com) <[email protected]> wrote:
> > It would help if you asked about a specific first step..
>
> > On Mar 18, 2:23 pm, massimo <[email protected]> wrote:
> > > Hi,
> > > I'm italian boy. I see that I have big big difficult to start to
> > > develop with android.
> > > I know Java and I have all the Eclipes and Android SDK installed.
>
> > > But for me undestand this SDK is very impossible. Online the Google
> > > Docs about SDK is too less complete and I see that is difficult to
> > > make something of realistic like a little videogame. I have difficult
> > > too to put an image inside.
>
> > > How I can do? Someone could help me to start? For example by MSN? Pls
> > > I need help because I would like make a little videogame.
>
> > > Thank you
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe from this group, send email to android-developers+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to