본문 바로가기
프로그래밍 놀이터/안드로이드, Java

[android] navigation drawer close and open listener set.

by 돼지왕 왕돼지 2013. 12. 27.
반응형


 android, navigation drawer close and open listener set.

 

[android] navigation drawer close and open listener set.


mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer, R.string.drawer_open, R.string.drawer_close) {

/** Called when a drawer has settled in a completely closed state. */

public void onDrawerClosed(View drawerView) {

// ... do sth.

}


/** Called when a drawer has settled in a completely open state. */

public void onDrawerOpened(View drawerView) {

// ... do sth.

}

};



반응형

댓글