Android 메뉴 항목 은 소문 자 를 쓸 수 없습니다(자동 대문자)

33401 단어 Android
20140621,드디어 해결 되 었 습 니 다.
참고 주소:
http://stackoverflow.com/questions/17044790/android-actionbar-menuitem-lowercase
원문 문제:
I want to make MenuItem title in the ActionBar to LowerCase.
제목 표시 줄 의 메뉴 에 소문 자 를 표시 하고 싶 습 니 다.
my menu.xml
   android:id="@+id/register"
    android:title="Register"
    android:showAsAction="ifRoom|withText"/>

   android:id="@+id/unregister"
    android:title="Unregister"
    android:showAsAction="ifRoom|withText"/>

On the ActionBar it sees "REGISTER" and "UNREGISTER", but I want that it sees as "Register" and "Unregister".
"Register"를 표시 하고 싶 지만 실제로"REGISTER"를 표시 합 니 다.
Is it possible to make first letter upper and next letters lower at MenuItem? And how I can do that?
메뉴 에 소문 자 를 표시 할 방법 이 있 습 니까?
해결 방법:
Solution for native ActionBar implementation:
xml version="1.0" encoding="utf-8"?>

    
    

If you are using ActionBarSherlock there are two different approaches:
1) Create boolean resource  abs__config_actionMenuItemAllCaps  and set it to  false :
xml version="1.0" encoding="utf-8"?>

     name="abs__config_actionMenuItemAllCaps">false

2) Or create theme with overriden  actionMenuTextAppearance  and use it in  AndroidManifest.xml :
xml version="1.0" encoding="utf-8"?>

    
    


번역/비고:
이 문 제 를 나 는 이틀 동안 조사해 보 았 는데,대략 이 방법 은
1.프로그램 사용자 정의 테마 사용
 

2.사용자 정의 테 마 를 설정 한 Action Bar 의 메뉴 는 자동 으로 대문자 로 쓰 이지 않 습 니 다.
    
    

좋은 웹페이지 즐겨찾기