original source : https://youtu.be/qRAMJeH0yzY

image

action bar는 상단에 나타나며 기본적으로 toolbar의 한 형태이다

=========================================================

.

.

image

=========================================================

.

.

image

HomeAsUp 버튼을 클릭한 경우 android.R.id.home에 해당한다.

=========================================================

.

.

image

=========================================================

.

.

image

theme에 정의되어 있는 action bar style이나 속성값들을 수정 함으로써 그 모양을 변경할수 있다. style , 속성값 종류로는 actionBarStyle, windowActionBarOverlay, actionBarSize, actionButtonStyle등이 있다.

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image

fragment back stack을 이용한 back navigation

=========================================================

.

.

image

intent flag를 이용한 up navigation

=========================================================

.

.

image

=========================================================

.

.

image

=========================================================

.

.

image
image

=========================================================

.

.

image
image

=========================================================

.

.

image

=========================================================

.

.

image

AppCompat v7 Toolbar onOptionsItemSelected not called

How does this strange condition happens when show menu item icon in toolbar overflow menu?

Android SearchView in Toolbar

show icon in actionbar/toolbar with AppCompat-v7 21