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. Is there any way to start a new activity from a service.

Hi,

Is there any way to start a new activity from a service.

Thank you
--~--~---------~--~----~------------~-------~--~----~

2. How To Load Previous Activity Which Is Running In Background

Hello,

Is there any way to load previous activity which is running in
background.

Thank you
--~--~---------~--~----~------------~-------~--~----~

3. moving from one screen to another

4. Control F11 doesn't revert the orientation on emulator on SDK 1.5 Target

5. how to add some key actions from physical keyboard to android

6. how to get the string from a listview item

7. Error playing YouTube video in my application