스크롤뷰 적용시키는 방법좀요 ㅠㅠ
조회수 1151회
제가 완전 생 초보라 ...ㅠㅠㅠ 스크롤 뷰를 적용 시켜야 하는데 relativelayout에 적용 시킬수 있는지 잘 모르겠어요.
사진 보시면 이미지버튼 부분부터 쭉 스크롤 뷰를 넣고 싶은데 넣는 방법을 잘 모르겠어요 ㅠ
아래 코드 있습니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/statusBar"
android:layout_width="match_parent"
android:layout_height="46.1dp"
android:background="@color/mainPurple">
<ImageButton
android:id="@+id/backBtn"
android:layout_width="12.5dp"
android:layout_height="12.5dp"
android:background="#fff"
android:layout_centerVertical="true"
android:layout_marginLeft="30dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="버스커인증"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:textColor="#fff"
android:fontFamily="@font/kopubbold"
android:textSize="17dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff"
android:lineSpacingExtra="2sp"
android:layout_centerVertical="true"
android:fontFamily="@font/kopubbold"
android:layout_alignParentRight="true"
android:layout_marginRight="30dp"
android:text="완료"
android:textSize="17dp" />
</RelativeLayout>
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/buskerRelative"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/buskerImage"
android:layout_width="match_parent"
android:layout_height="250dp"
android:background="@color/subGray"
android:layout_marginTop="45dp"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/certification"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_below="@+id/buskerRelative"
android:gravity="center">
<EditText
android:id="@+id/teamName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="활동팀명"
android:layout_marginTop="34dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:inputType="text"
android:fontFamily="@font/kopubmedium"
android:textColor="@color/mainPurple"
android:lineSpacingExtra="1sp"
android:background="#00000000"
android:textSize="12sp"/>
<View
android:id="@+id/teamnameUnderLine"
android:layout_width="match_parent"
android:layout_height="0.9dp"
android:layout_below="@+id/teamName"
android:background="@color/mainPurple"/>
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/teamnameUnderLine"
android:layout_marginTop="35dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:inputType="text"
android:fontFamily="@font/kopubmedium"
android:textColor="@color/mainPurple"
android:text="성명"
android:lineSpacingExtra="1sp"
android:background="#00000000"
android:textSize="12sp"/>
<View
android:id="@+id/nameUnderLine"
android:layout_width="match_parent"
android:layout_height="0.9dp"
android:layout_below="@+id/name"
android:background="@color/mainPurple"/>
<EditText
android:id="@+id/cellPhone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/nameUnderLine"
android:layout_marginTop="35dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:inputType="text"
android:fontFamily="@font/kopubmedium"
android:textColor="@color/mainPurple"
android:text="휴대폰"
android:lineSpacingExtra="1sp"
android:background="#00000000"
android:textSize="12sp"/>
<View
android:id="@+id/cellphoneUnderLine"
android:layout_width="match_parent"
android:layout_height="0.9dp"
android:layout_below="@+id/cellPhone"
android:background="@color/mainPurple"/>
<EditText
android:id="@+id/certificationNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/cellphoneUnderLine"
android:layout_marginTop="35dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:inputType="text"
android:fontFamily="@font/kopubmedium"
android:textColor="@color/mainPurple"
android:text="인증번호"
android:lineSpacingExtra="1sp"
android:background="#00000000"
android:textSize="12sp"/>
<View
android:id="@+id/certificationnumberUnderLine"
android:layout_width="match_parent"
android:layout_height="0.9dp"
android:layout_below="@+id/certificationNumber"
android:background="@color/mainPurple"/>
<EditText
android:id="@+id/activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/certificationnumberUnderLine"
android:layout_marginTop="35dp"
android:paddingBottom="15dp"
android:paddingLeft="5dp"
android:inputType="text"
android:fontFamily="@font/kopubmedium"
android:textColor="@color/mainPurple"
android:text="활동지 및 장르"
android:lineSpacingExtra="1sp"
android:background="#00000000"
android:textSize="12sp"/>
<View
android:id="@+id/activityUnderLine"
android:layout_width="match_parent"
android:layout_height="0.9dp"
android:layout_below="@+id/activity"
android:background="@color/mainPurple"/>
<CheckBox
android:id="@+id/agree"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_below="@+id/activityUnderLine"
android:layout_marginTop="35dp"
android:checked="false"
android:button="@android:color/transparent"
android:background="@drawable/next_btn"/>
<TextView
android:id="@+id/useagree"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/activityUnderLine"
android:layout_marginLeft="8dp"
android:layout_toRightOf="@+id/agree"
android:layout_marginTop="37dp"
android:textSize="13dp"
android:textColor="#000000"
android:lineSpacingExtra="1sp"
android:text="이용약관에 동의하기"/>
</RelativeLayout>
</ScrollView>
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력