본문 바로가기

Android/Function

안드로이드 버튼 텍스트는 왜 대문자로만 나올까요?

728x90
반응형
<Button
    android:layout_weight="1"
    android:layout_marginLeft="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/btnScaling"
    android:text="CustomScale"/>
 <Button
    android:layout_weight="1"
    android:layout_marginLeft="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/btnAuto"
    android:text="AutoScale"/>
<Button
    android:layout_weight="1"
    android:layout_marginLeft="10dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/btnOffset"
    android:text="Offset"/>

이처럼 버튼 텍스트를 대/소문자 구별하여 써줘도,

이렇게 대문자로만 나오게 되네요.

 

단순히 밑의 구문만 추가해 주세요!

android:textAllCaps="false"

 

그러면 바로 대소문자가 구분 되게 됩니다.

 

 

 

 

 

 

 

 

 

 

 

 

728x90
반응형