Friday, 1 June 2012

Android simple programs.


Android  simple programs.



<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/relativeLayout1"
    android:layout_height="fill_parent"
    android:background="@drawable/icon"
    android:layout_width="fill_parent">
        <LinearLayout android:orientation="vertical"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/linearLayout1"
        android:layout_centerVertical="true"
        android:layout_alignParentLeft="true"
         android:layout_marginLeft="93dp">
         </LinearLayout>
        <ImageView android:src="@drawable/icon"
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
         android:id="@+id/imageView1"
         android:layout_alignParentTop="true"
         android:layout_alignParentLeft="true"
         android:layout_marginLeft="17dp"
         android:layout_marginTop="46dp"></ImageView>
        <ImageButton android:src="@drawable/icon"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/imageButton1"
        android:layout_below="@+id/imageView1"
        android:layout_toRightOf="@+id/linearLayout1"
        android:layout_marginLeft="33dp"></ImageButton>
        <MediaController android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/mediaController1"
        android:layout_below="@+id/imageButton1"
         android:layout_toRightOf="@+id/imageView1"
          android:layout_marginTop="32dp"></MediaController>
        <VideoView android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/videoView1"
        android:layout_alignParentTop="true"
         android:layout_toLeftOf="@+id/imageView1"></VideoView>
        <TimePicker android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/timePicker1"
         android:layout_below="@+id/linearLayout1"
         android:layout_centerHorizontal="true"></TimePicker>
        <Gallery android:layout_height="wrap_content"
         android:layout_width="match_parent"
         android:id="@+id/gallery1"
         android:layout_alignBottom="@+id/mediaController1"
         android:layout_toRightOf="@+id/mediaController1"
          android:layout_marginLeft="14dp"></Gallery>
    </RelativeLayout>

No comments:

Post a Comment