[android-beginners] Re: Snake on Image
On May 4, 9:45 am, vineeth Desai vineeth.desa...@gmail.com wrote: Raphael, This already I tried. It didnt work for me. I am trying this for smaple game snake in Android SDK. Please let us know the solution. I am blocked with other developments. Warm Regards, Sunil There is no way it doesn't work. Just simply put : ImageView android:src=@drawable/menu_background android:layout_width=fill_parent android:layout_height=fill_parent /ImageView into your layout .xml, and of course store menu_background file in drawable dir. BR, Rafal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Snake on Image
Raphael, This already I tried. It didnt work for me. I am trying this for smaple game snake in Android SDK. Please let us know the solution. I am blocked with other developments. Warm Regards, Sunil On Sun, May 3, 2009 at 3:55 AM, Raphael r...@android.com wrote: Simply use android:background=@drawable/some_image and put your image in res/drawable. R/ On Tue, Apr 28, 2009 at 9:46 PM, Ragavendra ragavendra...@gmail.com wrote: Hi Folks, I am new here. I need to add a background image of the Snake sample game. I could change the color by adding android:background=# as shown below FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=# -- 'A Problem is first solved in the mind and then on paper' Thanks Regards, LinuxFlavour.co.in http://linuxflavour.co.in/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Snake on Image
On Mon, May 4, 2009 at 12:45 AM, vineeth Desai vineeth.desa...@gmail.com wrote: Raphael, This already I tried. It didnt work for me. I am trying this for smaple game snake in Android SDK. Please let us know the solution. I am blocked with other developments. I don't know about snake specifically but I'm pretty sure ApiDemo should have an example of setting a bitmap as background. For sure LunarLander does that, doesn't it? There are many ways to achieve that: via an activity theme, via the window, by placing an imageview in a framelayout (oops, did I say that? don't do that, it's ugly :-)) Maybe something like this could help you: http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Snake on Image
Simply use android:background=@drawable/some_image and put your image in res/drawable. R/ On Tue, Apr 28, 2009 at 9:46 PM, Ragavendra ragavendra...@gmail.com wrote: Hi Folks, I am new here. I need to add a background image of the Snake sample game. I could change the color by adding android:background=# as shown below FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=# -- 'A Problem is first solved in the mind and then on paper' Thanks Regards, LinuxFlavour.co.in --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---