안녕하세요 ..
안드로이드 관련해서.. 아래의 사진을 보고, 문제를 풀려고 하는데..
도저히 어떻게 풀지 모르겠어서 이렇게 질문을 올립니다 ㅠㅠ..
리니어 레이아웃만을 사용해서, 저렇게 만들어야 하는데..
도저히 아무리 4시간째 생각을 해봐도 해답이 떠오르질 않습니다 ㅠㅠ
도와주세요 ㅠㅠ
아래의 사진 첨부해봅니다 ㅠㅠ
<?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"> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="horizontal"> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#FF0000"/> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#CCFF00"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="horizontal"> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#FFFFF0" android:id="@+id/textView" /> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#000000"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2" android:orientation="horizontal"> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#FFFFFF"/> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#0000FF"/> <TextView android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:background="#66FF00"/> </LinearLayout> </LinearLayout>