2010-08-13 6 views

답변

1

아무도 놀라워하지 않았습니다.

아이폰의 기본 테이블 셀과 같은 것이 없다는 것을 알 수 있습니다. 자신 만의 뷰를 정의해야합니다. 표준 형식은 없습니다. 이 특정 UI 디자인 지침은 없습니다. Android 1.6 relative layout의 토론에서 작동하는 레이아웃을 발견했습니다. 해당 레이아웃은 다음과 같습니다.

<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="64dip" 
android:padding="6dip"> 

<TextView 
android:id="@+id/band" 
android:layout_width="fill_parent" 
android:layout_height="26dip" 

android:layout_below="@+id/track" 
android:layout_alignLeft="@id/track" 
android:layout_alignParentBottom="true" 

android:gravity="top" 
android:text="The Airborne Toxic Event" /> 

<TextView 
android:id="@id/track" 
android:layout_marginLeft="6dip" 
android:layout_width="fill_parent" 
android:layout_height="26dip" 

android:layout_toRightOf="@+id/artwork" 

android:textAppearance="?android:attr/textAppearanceMedium" 
android:gravity="bottom" 
android:text="Sometime Around Midnight" /> 

<ImageView 
android:id="@id/artwork" 
android:layout_width="56dip" 
android:layout_height="56dip" 
android:layout_gravity="center_vertical" 

android:src="@drawable/fruit" /> 

</RelativeLayout> 
관련 문제