안녕하세요 안드로이드를 공부한지 얼마되지않은 학생입니다.
<LinearLayout
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:orientation="vertical"
tools:context="com.example.taewung.newbook11.MainActivity">
( <LinearLayout
android:layout_marginTop="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/shape_title">
<ImageView
android:padding="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/star_bling"
android:layout_gravity="left"
android:adjustViewBounds="true"
android:maxHeight="150dp"
android:maxWidth="150dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="2">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Starry Night"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Goh"/>
</LinearLayout>
</LinearLayout> ) *2
</LinearLayout>
이렇게했을때 위쪽 뷰와 아래쪽뷰가 붙어있어야하지않나요...?
marginbottom 설정하지 않았는데 왜 둘이 떨어져있나요?