티스토리 뷰
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="7">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="weight = 1"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#20000000"
android:gravity="center"
android:text="weight = 1"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
android:gravity="center"
android:text="weight = 3"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="#20000000"
android:gravity="center"
android:text="weight = 1.5"
android:textSize="20sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:gravity="center"
android:text="weight = 0.5"
android:textSize="20sp" />
</LinearLayout>
'안드로이드 스튜디오 전체 > 따라하기' 카테고리의 다른 글
AndroidX.RecyclerView 로 화면 구현하기 (0) | 2020.09.22 |
---|---|
로그인화면 구현하기 (0) | 2020.09.14 |
Relative Layout 관계 정의하기 (0) | 2020.09.03 |
Hello World 시작 (0) | 2020.09.02 |
유튜브 센치한개발자 강의 따라하기 (0) | 2020.09.02 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- 총 방문자
- 오늘 방문
- 어제 방문