Posts

Showing posts from February, 2012

Relative Layout in android UI Design

Image
android program: Relative Layout in android UI Design open project >res>layout>main.xml  and edit as below main.xml: --------------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical" >     <TextView         android:id="@+id/my_label"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="Face Book"         android:textSize="12pt" />     <EditText         android:id="@+id/text_box"         android:layout_width="fill_parent"         android:la

Linear Layout (Horizontal & Vertical) in Android

Image
android program: Linear Layout  ( Horizontal & Vertical ) in Android open project >res>layout>main.xml  and edit as below <?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" >     <LinearLayout         android:orientation="horizontal"         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:layout_weight="1">     <Button         android:text="one"         android:layout_width="wrap_content"         android:layout_height="wrap_content"/>     <Button         android:text="two"         android:layout_width="wrap_content"         android:layout_height=&

Linear Layout(Horizontal) in Android

Image
android program: Linear Layout ( Horizontal ) in Android UI open project >res>layout>main.xml  and edit as below <?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="horizontal"     >         <TextView           android:text="red"           android:background="#aa0000"           android:layout_width="105px"           android:layout_height="fill_parent"                   />       <TextView           android:background="#00aa00"           android:text="green"           android:layout_width="95px"           android:layout_height="450px"           />           <TextView           android:layout_width="85px"