[Layout] 화면 아래쪽에 요소 배치하기(align bottom) > Android Studio

본문 바로가기
사이트 내 전체검색

Android Studio

[Layout] 화면 아래쪽에 요소 배치하기(align bottom)

페이지 정보

profile_image
작성자 최고관리자
댓글 0건 조회 78회 작성일 20-01-16 13:17

본문

부모가 되는 레이아웃을 RelativeLayout 으로 하고 아래쪽에 배치할 레이아웃에 


        android:layout_height="wrap_content"

        android:layout_alignParentBottom="true"


옵션 주기


Ex)


<RelativeLayout 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">


    <LinearLayout

        android:layout_width="fill_parent"

        android:layout_height="wrap_content"

        android:layout_alignParentBottom="true"

        android:layout_gravity="bottom"

        android:orientation="horizontal" >


    </LinearLayout>


</RelativeLayout>

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

접속자집계

오늘
6
어제
9
최대
70
전체
2,977
Copyright © OHPR All rights reserved.