목록2015/01/06 (3)
오늘도 공부
출처 : http://lky1001.tistory.com/47액션바의 서치뷰에서 검색어를 입력 후 소프트 키보드의 돋보기를 누르고 검색후에도 다시 돋보기 모양으로 바뀌지 않고 그 내용이 그대로 남아 있다.플레이스토어에서는 검색을 하면 다시 돋보기 모양으로 바뀐다... 이 상태로 돌아가고 싶은데 이 상태로 남아있는다. 구글링한 결과 .. MenuItem 클래스의 collapseActionView() 메소드를 이용하면 된다.액션바는 액션바셜록 사용 멤버변수 MenuItem mSearchItem 선언 @Overridepublic boolean onCreateOptionsMenu(com.actionbarsherlock.view.Menu menu) {// TODO Auto-generated method stub ..
출처 : http://nlopez.io/how-to-style-the-actionbar-searchview-programmatically/I stumbled upon a problem with the styling of a view at work. I had almost everything solved with a custom theme, but it all came down to style a SearchView widget of an ActionBar.That's where the fun begins.All of this must happen in your onCreateOptionsMenu method. With a reference to your SearchView object in there, ..
앞페이지에서 옵션메뉴를 하였다 옵션메뉴는 전화기의 하단 왼쪽 화면 밖을 크릭하면 나타나는 것 프로그램들 마다 다양한 형식의 메뉴시스템을 제공하듯이 안드로이드에는 이것만 있는 것이 아니고 윈도우시스템의 상단 메뉴줄과 같은 것도 있을 것이다 이것을 Action Bar라고 부른다 이번 페이지에서는 Action Bar에 앞의 페이지에서 만든 것을 옮겨 보자 아주 간단하다 위의 메뉴를 구성하는 xml화일을 Activity 크래스의 아래 메소드에서 불러 들여서 옵션메뉴를 설치하였던 것이다 public boolean onCreateOptionsMenu(Menu menu) { MenuInflater menuInflater = getMenuInflater(); menuInflater.inflate(R.menu.activ..
