Android application (how to change the background) tutorial #3

Preview:

DESCRIPTION

A tutorial to show you how to change your Android application background.

Citation preview

5

Android Application TutorialHow to change the background

All Copy Rights Saved to the 7th Students’ Conference on Communication and Information Based in the Faculty of Computers and Information Cairo University – Egypt 2011/2012 www.scci-cu.com

Tutorial Code: APS-05-2012

Instructed on: 02-Mar-2012 | Tutorial: #05

By : Yasmine Sherif Mahmoud

• We are now going to continue working on our last project to change its background.

• Open your project and follow these steps:

I added a new picture to the drawable file to use it as a background.You can add a new picture as we learned in the last tutorial.

Here is the new picture in the drawable file that I will use as a background.

Expand the layout file and open the main.xml file

Choose this tab.

You will begin editing your code here

Begin writing android:b and it will give you these options:Choose android:background

After choosing android:background write = and open a “ then it will give you these options.Choose @drawable/

Type the name of your picture.Close the “Close the >

Save

Run as

Open your application

Background is changed successfully

Yasmine Sherif EL-Adly

@YasmineSherif91

+Yasmine Sherif EL-Adly

Contact Me: