Adding image to Background:

by diya blore » Mon, 22 Dec 2008 17:46:21 GMT


Sponsored Links
 Hi All,
Can any one guide how to implement ,As Adding image to the  background.

-- 
Thank's in adv.
Diya :)

--~--~---------~--~----~------------~-------~--~----~



Adding image to Background:

by sukumar » Mon, 22 Dec 2008 18:24:04 GMT


 Setting background Image to where? Application background or ImageView
background? Use ImageView.setBackgroundResource() api if u need to set
it for ImageView.If it is for an entire actiivty, use view's canvas to
set it.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Adding image to Background:

by diya blore » Mon, 22 Dec 2008 19:08:25 GMT


 Hi,
For an  Application background .. i need to add an image.







-- 
Thank's in adv.
Diya :)

--~--~---------~--~----~------------~-------~--~----~



Adding image to Background:

by Sundog » Tue, 23 Dec 2008 01:00:42 GMT


 View.setBackgroundResource()





--~--~---------~--~----~------------~-------~--~----~



Adding image to Background:

by Manjunath » Tue, 23 Dec 2008 01:51:58 GMT


 Hi Diya,
    Can you be more clear on your questions please.

Thanks & Regards
Manjunath




--~--~---------~--~----~------------~-------~--~----~



Adding image to Background:

by Emmanuel » Tue, 23 Dec 2008 08:51:11 GMT


 In the xml layout file, add a android:background option, with the path
to your background file :

example :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=" http://schemas.android.com/apk/res/android" ;
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/bubbles"


Emmanuel
 http://androidblogger.blogspot.com/ 





--~--~---------~--~----~------------~-------~--~----~



Adding image to Background:

by Android » Sat, 27 Dec 2008 07:08:11 GMT


 make the object of the our view and set the background eg:
  view = new SampleView(this);
view1.setBackgroundResource(R.drawable.bg);





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Which Widget/UI Component to use for Gameboard?

If I want to create a gameboard, like a checker board or chess board,
and allow the user to select a square by tapping on it, which widget
should I use? The obvious approach would be to make each individual
square a button, but that sounds like too many objects.

Is there some sort of clickable-map widget I could use (not 'map' in
the sense of Google Maps, of course) to return the coordinates of
where he clicked, and let the programmer calculate which square that
is in? Should I just do the whole board as one View? Then what API do
I call to get the coordinates of the tap?

-- 

2. Android market clearly has to be full of piracy...oh well what can you do

Agreed Mark,

8 months of engineering and work, and so far a couple of weeks
advertising. I'm getting a news spread again in Computer Music
magazine, so that should increase visiblity for the new app too. My
wife says Im just not patient enough lol.

It's not the slow sales the bother me, it's just the strange download
numbers. The slow sales can be worked on with marketing efforts. The
download numbers though make we wonder what is going on behind the
scenes.

-niko





> 

3. WePad

4. Bad decision in twitter app

5. Re[2]: How to stop malicious market reviews?

6. Android market clearly has to be full of piracy...oh well what can you do

7. Fwd: How to debug