강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

이장한님의 프로필 이미지
이장한

작성한 질문수

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

bts 앱 만들기 부분에 관해 질문드립니다.

작성

·

164

0

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">




<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_1" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_2" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_3"/>

</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_4" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_5" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_6"/>


</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_7" />




</LinearLayout>
이렇게 코드를 적었는데 오류가 많이 나옵니다. 고칠 부분을 잘 모르겠는데, 해결부탁드립니다.
항상 강의 잘 듣고 있습니다. 감사합니다!!

답변 1

0

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

맨 밑에

</LinearLayout>

가 누락된 것 같습니다.

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">




<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_1" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_2" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_3"/>

</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_4" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_5" />

<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_6"/>


</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@drawable/bts_7" />




</LinearLayout>
</LinearLayout>

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

이렇게 해보시겠어요?

이장한님의 프로필 이미지
이장한
질문자

된 것 같습니다 감사합니다!!

 

이장한님의 프로필 이미지
이장한

작성한 질문수

질문하기