Created
April 13, 2011 07:31
-
-
Save agiletalk/917128 to your computer and use it in GitHub Desktop.
[예제] RelativeLayout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
> | |
<TextView | |
android:id="@+id/chulsoo" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginRight="20px" | |
android:textSize="15pt" | |
android:text="철수" | |
/> | |
<TextView | |
android:id="@+id/younghee" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_toRightOf="@id/chulsoo" | |
android:textSize="10pt" | |
android:text="영희" | |
/> | |
<TextView | |
android:id="@+id/mongryong" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/younghee" | |
android:layout_alignParentRight="true" | |
android:layout_marginLeft="10px" | |
android:textSize="15pt" | |
android:text="몽룡" | |
/> | |
<TextView | |
android:id="@+id/chunhyang" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_toLeftOf="@id/mongryong" | |
android:layout_alignBottom="@id/mongryong" | |
android:textSize="10pt" | |
android:text="춘향" | |
/> | |
</RelativeLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="wrap_content" | |
android:background="#ffffff" | |
android:padding="5px" | |
> | |
<ImageView | |
android:id="@+id/picture" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_marginRight="5px" | |
android:src="@drawable/picman" | |
/> | |
<Button | |
android:id="@+id/btndel" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Del" | |
android:textSize="6pt" | |
android:layout_below="@id/picture" | |
/> | |
<TextView | |
android:id="@+id/name" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="홍길동" | |
android:textColor="#000000" | |
android:textSize="12pt" | |
android:layout_alignParentTop="true" | |
android:layout_toRightOf="@id/picture" | |
/> | |
<TextView | |
android:id="@+id/call" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="015-123-4567" | |
android:textColor="#0000ff" | |
android:textSize="6pt" | |
android:layout_alignParentRight="true" | |
android:layout_alignBaseline="@id/name" | |
/> | |
<TextView | |
android:id="@+id/description" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="우리 딸래미가 처음 그린 그림이다. 누구를 그린 것인지는 알 수 없으나 머리 카락이 몇 올 없는 것으로 보아 갓 태어난 동생을 그린 것으로 추측된다. 본인도 기억이 나지 않는다 하여 확인할 방법은 없다. " | |
android:textColor="#000000" | |
android:textSize="6pt" | |
android:layout_below="@id/name" | |
android:layout_alignLeft="@id/name" | |
/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment