SlideShare a Scribd company logo
1 of 6
Download to read offline
홍은기
ANDROID
APP BAR
안드로이드 SDK를 롤리팝 버전으로, 안드로이드 스튜디오를
최신버전으로 업데이트하고 나니…
???
레이아웃 파일이 2개가 되었다.
오랜만의 안드로이드…
CoordinatorLayout?
AppBarLayout?
widget.toolbar?
뭐지
http://developer.android.com/training/appba
r/setting-up.html#add-toolbar
이전에는 ActionBarActivity를 상속받아
'ActionBar' 라이브러리를 사용했지만, 이제는
AppCompatActivity를 상속받아 'Toolbar' 라
이브러리를 사용.
Toolbar 라이브러리는 Material Design를 지원.
TOOLBAR SUPPORT LIBRARY
위의 코드를 통해 실제 내용을 가지고 있는
acitivity_main_content.xml을
activity_main.xml에 포함시키고,
위와 같이 MainActivity에서 툴바 생성
이제는
App Bar를 이용해, '환경설정', '메인 화면으로 가기',
'언어 설정' 등 다양한 기능 지원 가능
APP BAR

More Related Content

More from EunGi Hong

More from EunGi Hong (16)

최소 편집 거리와 동적 프로그래밍
최소 편집 거리와 동적 프로그래밍최소 편집 거리와 동적 프로그래밍
최소 편집 거리와 동적 프로그래밍
 
철자 교정기
철자 교정기철자 교정기
철자 교정기
 
라틴어로 보는 컴퓨터 과학
라틴어로 보는 컴퓨터 과학라틴어로 보는 컴퓨터 과학
라틴어로 보는 컴퓨터 과학
 
검색엔진 오픈 소스 Lucene
검색엔진 오픈 소스 Lucene검색엔진 오픈 소스 Lucene
검색엔진 오픈 소스 Lucene
 
Haskell and Function
Haskell and FunctionHaskell and Function
Haskell and Function
 
Wordswordswords
WordswordswordsWordswordswords
Wordswordswords
 
Haskell and List
Haskell and ListHaskell and List
Haskell and List
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Automata
AutomataAutomata
Automata
 
Ah Counter App 마무리
Ah Counter App 마무리Ah Counter App 마무리
Ah Counter App 마무리
 
Linguistics
LinguisticsLinguistics
Linguistics
 
안드로이드 개발하기 3rd week
안드로이드 개발하기 3rd week안드로이드 개발하기 3rd week
안드로이드 개발하기 3rd week
 
안드로이드 개발하기 2nd week
안드로이드 개발하기 2nd week안드로이드 개발하기 2nd week
안드로이드 개발하기 2nd week
 
안드로이드 개발하기_1st
안드로이드 개발하기_1st안드로이드 개발하기_1st
안드로이드 개발하기_1st
 
Python learning for Natural Language Processing (2nd)
Python learning for Natural Language Processing (2nd)Python learning for Natural Language Processing (2nd)
Python learning for Natural Language Processing (2nd)
 
Python Learning for Natural Language Processing
Python Learning for Natural Language ProcessingPython Learning for Natural Language Processing
Python Learning for Natural Language Processing
 

Android App Bar