안녕하세요.. ㅔ
레이아웃들을 중복하는 법에 있어서 좀 헷갈린 점이 있어서 여러 레이아웃들의 중복된
형태를 공부해 보고 있는 학생입니다.
아래와 같이 리니어 레이아웃을 중복해서 첫번째의 경우는 배경을 연두색을 주고, 그안의 리니어레이아웃을
중복으로 생성하고 위젯을 에딧텍스트와 버튼을 사용해서 주려고 하는데..
생각했던것보다 제가 하려고 하는게 잘 되지 않아서 이렇게 글을 올렸습니다.
제 코드상의 어느부분이 잘못되어서 이렇게 나오늕건지 궁금합니다 ㅠ
그리고 Match_content 같은 경우에는 너비라던지 높이를 끝까지 다 주는것이고
wrap_content같은 경우에는 임의로 주는걸로 알고 있는데.. 아래의 사진과 같이 하려면
width값은 match로 주고, height값은 wrap으로 준다음에 패딩을 넣는 방법밖에는 없는건가요 ㅠㅠ ?
아래와 같이 어떻게 예쁘게 만든는지 방법을 모르겠어요 ㅠ ㅠ

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#1fd703"
android:orientation="vertical"
tools:context="ex.project3.MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#ff0014">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<Button
android:layout_width="match_parent"
android:layout_weight="1"
android:text="버튼"
android:layout_height="wrap_content"
/>
</LinearLayout>
</LinearLayout>
[