Android/2012.04월 강좌
2일차 Layout2
Bohemian life
2012. 4. 27. 14:53
xml을 새롭게 만들어서 해보자~~
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <!-- textView --> <TextView android:layout_width="fill_parent" android:layout_height="100px" android:background="#dd1111" android:text="text1" /> <!-- LinearLayout 수평 --> <LinearLayout android:layout_width="fill_parent" android:layout_height="100px" android:orientation="horizontal" > <TextView android:layout_width="100px" android:layout_height="100px" android:layout_weight="1" android:background="#00ee00" android:text="text2" /> <TextView android:layout_width="100px" android:layout_height="100px" android:layout_weight="1" android:background="#0000ff" android:text="text3" /> </LinearLayout> <!-- textView --> <TextView android:layout_width="match_parent" android:layout_height="100px" android:background="#FFFF33" android:text="text4" /> </LinearLayout>