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

15
5 Android Application Tutorial How to change the background All Copy Rights Saved to the 7 th 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

Upload: yasmine-sherif-el-adly

Post on 24-Jan-2015

16.257 views

Category:

Education


1 download

DESCRIPTION

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

TRANSCRIPT

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

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

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

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

• Open your project and follow these steps:

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

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.

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

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

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

Expand the layout file and open the main.xml file

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

Choose this tab.

You will begin editing your code here

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

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

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

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

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

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

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

Save

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

Run as

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

Open your application

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

Background is changed successfully

Page 14: Android application (how to change the background) tutorial #3
Page 15: Android application (how to change the background) tutorial #3

Yasmine Sherif EL-Adly

@YasmineSherif91

+Yasmine Sherif EL-Adly

Contact Me: