2012-02-15 2 views
1

android honeycomb에서 ActionBar를 구현하는 방법은 무엇입니까? 작업 표시 줄을 사용자 정의하는 방법은 무엇입니까? 어떤 도움을 주시면 감사하겠습니다.Android Honeycomb에서 액션 바 구현

+2

을 바 - 당신이 필요로하는 기본적인 것들을 조회 구글을 사용하여 그런 다음 특정 프로그래밍 질문이 있으면 여기로 오십시오. – adneal

답변

5

ActionBar actionBar = getActionBar(); 
    LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); 
    View view = inflater.inflate(R.layout."id", null); 
    // lay.setLayoutParams(new ActionBar.LayoutParams(
    // android.app.ActionBar.LayoutParams.MATCH_PARENT, 
    // android.app.ActionBar.LayoutParams.MATCH_PARENT)); 
    //Not wrking 
    actionBar.setCustomView(view); 
    actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);