Skip to Main Content
Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)
book

Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)

by 우정은, 돈 그리피스, 데이비드 그리피스
July 2018
Beginner content levelBeginner
936 pages
26h 17m
Korean
Hanbit Media, Inc.
Content preview from Head First Android Development: 개념과 구조를 머릿속에 그려주는 안드로이드 개발 입문서(개정판)
388 Chapter 9
레이아웃 코드
버튼을 MainActivity의 레이아웃에
추가하기
DetailActivity
를 시작할 버튼을
MainActivity
에 추가할
겁니다. 여기서는
DetailActivity
의 프래그먼트를 먼저 구현하는데
MainActivity
에 버튼을 추가하면
MainActivity
에서
DetailActivity
로 쉽게 이동할 수 있기 때문입니다.
먼저 버튼을 레이아웃에 추가합니다.
activity
_
main
.
xml
파일을 열어 여러분
코드를 아래처럼 바꿉니다.
<?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"
android:padding="16dp"
android:orientation="vertical"
tools:context="com.hfad.workout.MainActivity">
<Button
android:layout_width="wrap_co ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Head First C# (개정3판): 상상을 초월하는 객체지향 C# 학습법

Head First C# (개정3판): 상상을 초월하는 객체지향 C# 학습법

최길우, 앤드류 스텔만, 제니퍼 그린

Publisher Resources

ISBN: 9791162240953