Android 메뉴 항목 은 소문 자 를 쓸 수 없습니다(자동 대문자)
33401 단어 Android
참고 주소:
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 의 메뉴 는 자동 으로 대문자 로 쓰 이지 않 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Bitrise에서 배포 어플리케이션 설정 테스트하기이 글은 Bitrise 광고 달력의 23일째 글입니다. 자체 또는 당사 등에서 Bitrise 구축 서비스를 사용합니다. 그나저나 며칠 전 Bitrise User Group Meetup #3에서 아래 슬라이드를 발표했...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.