<?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:layout_weight="1"
    android:orientation="vertical">
    <RelativeLayout android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:background="#b4b4b4">

        <LinearLayout android:orientation="vertical"
            android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
            android:layout_width="wrap_content"
android:layout_height="wrap_content"
            android:paddingLeft="5dip">

            <TextView android:id="@+id/txt"
android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:textSize="8pt"
                android:textStyle="bold" android:textColor="#000000"
android:text="Digital">
            </TextView>
            <TextView android:id="@+id/txtor"
android:layout_width="wrap_content"
                android:layout_height="wrap_content"
android:textColor="#000000"
                android:textSize="6pt" android:textStyle="bold"
android:text="Clock">
            </TextView>

        </LinearLayout>
         <DigitalClock android:id="@+id/digitalclock"
            android:layout_width="wrap_content"
android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_alignParentRight="true" />
        </RelativeLayout>

</LinearLayout>
TRY this it will work.....Abhijit Chakra
On Wed, Jul 20, 2011 at 2:05 PM, Goutom <goutom.sust....@gmail.com> wrote:

> Hi All
>
> I want to integrate digital clock in my xml file.
>
>
> -------------------------------------------------start---------------------------------------------------------------------
>
> <?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:fitsSystemWindows="true" android:layout_weight="1"
>     android:orientation="vertical">
>     <RelativeLayout android:layout_width="fill_parent"
>         android:layout_height="wrap_content" android:background="#b4b4b4">
>
>         <LinearLayout android:orientation="vertical"
>             android:layout_alignParentLeft="true"
> android:layout_centerVertical="true"
>             android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>             android:paddingLeft="5dip">
>
>             <TextView android:id="@+id/txt"
> android:layout_width="wrap_content"
>                 android:layout_height="wrap_content" android:textSize="8pt"
>                 android:textStyle="bold" android:textColor="#000000"
> android:text="Digital">
>             </TextView>
>             <TextView android:id="@+id/txtor"
> android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
> android:textColor="#000000"
>                 android:textSize="6pt" android:textStyle="bold"
> android:text="Clock">
>             </TextView>
>         </LinearLayout>
>
>         <DigitalClock android:id="@+id/digitalclock"
>             android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>             android:layout_alignParentRight="true"
> android:layout_centerVertical="true" />
>
>     </RelativeLayout>
>
> </LinearLayout>
>
>
> ----------------------------------------------------------end-------------------------------------------------------------
>
> But it shows nothing. I want declare the clock in xml file.What to do?
>
> Thanks in Advance.
>
> Regards
> Goutom
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to