1

아래 그림의 왼쪽 상단에있는 "완료"버튼의 색상 또는 적어도 이미지를 사용자 정의하는 방법이 있습니까?상황 별 작업 표시 줄 : 완료 버튼

Contextual Action Bar 나는 액션 바를 처리하기 위해 ABS를 사용하고 있습니다.

답변

1

당신이 ActionBarSherlock의 소스 코드에서 attrs.xml 보면 이러한 속성이 표시됩니다

<!-- =================== --> 
    <!-- Action mode styles --> 
    <!-- =================== --> 
    <eat-comment /> 
    <attr name="actionModeStyle" format="reference" /> 
    <attr name="actionModeCloseButtonStyle" format="reference" /> 
    <!-- Background drawable to use for action mode UI --> 
    <attr name="actionModeBackground" format="reference" /> 
    <!-- Background drawable to use for action mode UI in the lower split bar --> 
    <attr name="actionModeSplitBackground" format="reference" /> 
    <!-- Drawable to use for the close action mode button --> 
    <attr name="actionModeCloseDrawable" format="reference" /> 
    <!-- Drawable to use for the Share action button in WebView selection action modes --> 
    <attr name="actionModeShareDrawable" format="reference" /> 

당신은 추가 할 이미지와 테마에 styles.xmlactionModeCloseDrawable를 사용할 수 있습니다.

+0

테마 대신 스타일 파일에서 검색하고있었습니다. 고마워! – Hrk