Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 22nd, 2012  |  syntax: None  |  size: 2.22 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.         xmlns:android="http://schemas.android.com/apk/res/android"
  4.     android:layout_width="fill_parent"
  5.     android:layout_height="fill_parent"
  6.     >
  7.    
  8.     <RelativeLayout
  9.         android:layout_centerInParent="true"
  10.         android:layout_width="fill_parent"
  11.         android:layout_height="wrap_content"
  12.         android:layout_marginLeft="10dp"
  13.         android:layout_marginRight="10dp"      
  14.         >
  15.         <LinearLayout
  16.                 android:orientation="horizontal"
  17.                 android:id="@+id/id_ll_Hour&Minute"
  18.                 android:gravity="center"
  19.                 android:layout_width="wrap_content"
  20.                 android:layout_height="wrap_content"
  21.                 >
  22.         <TextView
  23.                 android:text="7"
  24.                 android:id="@+id/id_tv_hour"
  25.                 android:textSize="150sp"
  26.                 android:layout_width="wrap_content"
  27.                 android:layout_height="wrap_content"
  28.         />
  29.         <TextView
  30.                 android:text=":"
  31.                 android:id="@+id/id_tv_firstdots"
  32.                 android:layout_toRightOf="@+id/id_tv_hour"
  33.                 android:textSize="150sp"
  34.                 android:layout_width="wrap_content"
  35.                 android:layout_height="wrap_content"
  36.         />
  37.         <TextView
  38.                 android:text="30"
  39.                 android:id="@+id/id_tv_minutes"
  40.                 android:layout_toRightOf="@+id/id_tv_firstdots"
  41.                 android:textSize="150sp"
  42.                 android:layout_width="wrap_content"
  43.                 android:layout_height="wrap_content"
  44.         />     
  45.         </LinearLayout>
  46.         <LinearLayout
  47.                 android:id="@+id/id_ll_Seconds&AMPM"
  48.                 android:layout_toRightOf="@+id/id_ll_Hour&Minute"
  49.                 android:layout_alignBottom="@+id/id_ll_Hour&Minute"
  50.                 android:layout_width="wrap_content"
  51.                 android:layout_height="wrap_content"
  52.                 >
  53.         <TextView
  54.                 android:text=":"
  55.                 android:id="@+id/id_tv_seconddots"
  56.                 android:textSize="50sp"
  57.                 android:layout_width="wrap_content"
  58.                 android:layout_height="wrap_content"
  59.         />
  60.         <TextView
  61.                 android:text="30"
  62.                 android:id="@+id/id_tv_seconds"
  63.                 android:layout_toRightOf="@+id/id_tv_seconddots"
  64.                 android:textSize="50sp"
  65.                 android:layout_width="wrap_content"
  66.                 android:layout_height="wrap_content"
  67.         />     
  68.                
  69.         </LinearLayout>
  70.     </RelativeLayout>  
  71.        
  72. </RelativeLayout>