테스트로 작은 어플(추후에는 위젯으로 바꾸어 볼 예정)을 만드는 중입니다.

근데, 일단 layout에 대해서 많이 혼돈되는 부분이 있습니다.
이미지 리소스가 있다고 가정하고 이를 기반으로 이미지를 배치하면 별도의 UI drawing은 안해도 되는 상황입니다.
그런데, 공부하다 보니 AbsoluteLayout을 사용하지 말라고 하더군요.

그래서, 제 짧은 상상력으로
TableLayout을 선언하고 이미지 리소스를 background로 깔았습니다.
그리고 그 위에 <TableRow>와 <View>를 이용해서 적절하게 배치를 했습니다. 맨 아래 main.xml 참조해 주세요.

그런데, eclipse에서 제공하는 layout preview와 실제 AVD에서 보여지는 결과가 조금 다릅니다.
빈 줄로 만들고 싶었던 <View> 부분의 사이즈가 다르게 나오더군요.
이런 차이가 생기는 이유가 궁금합니다. 원래 그런건가요?

<TableLayout android:id="@+id/DigitalClock"
    android:layout_width="211dp"
    android:layout_height="186dp"
    android:background="@drawable/box"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <View
        android:layout_height="30dp" />

    <TableRow>
        <TextView
            android:id="@+id/Time"
            android:textSize="40dp"
            android:textStyle="bold"
            android:paddingLeft="40dp"
            android:text="13 : 26"
            android:layout_width="fill_parent"
        />
    </TableRow>

    <View
        android:layout_height="5dp" />
  
    <TableRow>
        <TextView
            android:id="@+id/WeekDay"
            android:textSize="20dp"
            android:textStyle="bold"
            android:paddingLeft="80dp"
            android:text="Mon"
        />
    </TableRow>

    <View
        android:layout_height="10dp" />
  
    <TableRow>
        <TextView
            android:id="@+id/Date"
            android:textSize="25dp"
            android:textColor="#000000"
            android:textStyle="bold"
            android:paddingLeft="30dp"
            android:text="10/13/2009"
        />
    </TableRow>      
</TableLayout>

혹시나 해서 추가!
공지사항 읽어 보았습니다.