철스토리

2020-05-07 2회차 내용 본문

안드로이드/강의

2020-05-07 2회차 내용

HyunChol 2020. 5. 7. 14:14
반응형

* LinearLayout

 1. LinearLayout의 속성 중 많이 사용하는 속성

  - android:orientation="vertical" / android:orientation="horizontal"

  - android:background="#ffffff" / android:background="@color/colorPrimary"

  - android:gravity="center_vertical|center_horizontal" // 자식 뷰가 어디에 위치될건지

 

 2. LinearLayout 내부에 View가 배치될 경우 많이 사용하는 속성

  - android:layout_gravity="center" // 부모 뷰의 어디에 위치시킬건지

 

 3. 참고사이트

  - https://recipes4dev.tistory.com/89

 

안드로이드 리니어레이아웃. (Android LinearLayout)

1. 안드로이드 LinearLayout 클래스 안드로이드에서 UI 화면을 구성할 때, View 위젯의 배치를 위한 컨테이너 역할을 하는 ViewGroup인 Layout 클래스는 그 종류가 매우 다양합니다. [안드로이드 레이아웃]에서 살..

recipes4dev.tistory.com

 

* RelativeLayout

 1. RelativeLayout 내부에 View가 배치될 경우 많이 사용하는 속성

  - android:layout_alignParentLeft="true" 

  - android:layout_alignParentRight="true" 

  - android:layout_alignParentTop="true" 

  - android:layout_alignParentBottom="true" 

  - android:layout_below="@+id/layoutTitle" // 아이디 값을 가진 뷰의 아래에 붙음

  - android:layout_above="@+id/containerBottom" // 아이디 값을 가진 뷰의 위에 붙음

 

 2. 참고사이트

  - https://recipes4dev.tistory.com/126

 

안드로이드 렐러티브레이아웃. (Android RelativeLayout)

1. 안드로이드 RelativeLayout 클래스. [안드로이드 리니어레이아웃. (Android LinearLayout)]에서 설명한 LinearLayout 을 사용하여 UI 레이아웃을 구성하다보면, 원하는 배치 구조를 만들기가 쉽지 않은 경우가..

recipes4dev.tistory.com

 

* ConstraintLayout

 1. ConstraintLayout 내부에 View가 배치될 경우 사용하는 속성

  - app:layout_constraintLeft_toLeftOf="parent" // View 자신을 기준으로 왼쪽이 어느뷰의 왼쪽에 붙을건지.. parent => 부모뷰
  - app:layout_constraintRight_toRightOf="@+id/imageView" // View 자신을 기준으로 오른쪽이 imageView의 오른쪽으로 붙음
  - app:layout_constraintTop_toTopOf="parent" 

  - app:layout_constraintDimensionRatio="h, 1:1" // View가 어느 비율만큼 설정될 것인지, 이 때 width, height은 0dp로 세팅되어야 함

 

 2. 참고사이트

  - https://kimch3617.tistory.com/entry/ConstraintLayout%EC%9D%98-%EA%B0%9C%EB%85%90%EA%B3%BC-%EA%B8%B0%EB%B3%B8-%EC%82%AC%EC%9A%A9%EB%B2%95

 

ConstraintLayout의 개념과 기본 사용법

2018 DroidKnights에 참가하여 지금은 Constraint layout 시대라는 주제로 진행하였던 발표내용을 참고하여 작성하였습니다. ConstraintLayout이란? 복잡한 레이아웃을 단순한 계층구조를 이용하여 표현할 수 있는..

kimch3617.tistory.com

 

 

* 다음 진행

  1. ClickEvent 넣는 방법 소개 및 실습

  2. 화면전환 (Intent, startActivity)

  3. TabLayout

  4. ViewPager

  5. Fragment

  6. RecyclerView, RecyclerAdapter, ViewHolder....

반응형

'안드로이드 > 강의' 카테고리의 다른 글

2020-05-14 3회차 내용  (0) 2020.05.08
Comments