Frame layout

BaabtraMentoringPartner 702 views 9 slides Nov 26, 2012
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

No description available for this slideshow.


Slide Content

Disclaimer:This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra -Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

Frame Layout

Frame layout Frame layouts are one of the simplest and most efficient types of layouts used by Android developers to organize view controls. They are used less often than some other layouts, simply because they are generally used to display only one view, or views which overlap.  10/11/12

Frame layouts are very simple, which makes them very efficient. They can be defined within XML layout resources or programmatically in the application’s Java code. A child view within a frame layout is always drawn relative to the top left-hand corner of the screen. If multiple child views exist, then they are drawn, in order, one atop the other. This means that the first view added to the frame layout will display on the bottom of the stack, and the last view added will display on top. 10/11/12

10/11/12 Create new android project [File >> New >> Android Project] with project name Frame Click next and select target android device version [I chose version 2.3] Click next and enter package name – ‘ com.calicut.Frame ’ Click finish

10/11/12 <?xml version= "1.0" encoding="utf-8"?> < FrameLayout android:id = "@+id/ mainlayout " android:layout_height =" fill_parent " android:layout_width = " fill_parent " android:orientation ="vertical" xmlns:android = "http://schemas.android.com/apk/res/android"> < ImageView android:layout_height = " wrap_content " android:layout_width =" wrap_content " android:padding = "5px" android:src ="@ drawable / ic_launcher "/> < ImageView android:layout_height = " wrap_content " android:layout_width =" wrap_content " android:padding = "5px" android:src ="@ drawable / friday "/> </ FrameLayout >

10/11/12

If this presentation helped you, please visit our page  facebook.com/ baabtra  and like it. Thanks in advance.    www.baabtra.com  |  www.massbaab.com  | www.baabte.com
Tags