Use Hierarchy View to determine where your DigitalClock is and why it is not displaying.
On Wed, Jul 20, 2011 at 4:35 AM, 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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