http://yoonbumtae.com/?p=2776

정리가 아주 잘되어 있어서 링크 공유합니다

https://recipes4dev.tistory.com/95

 

안드로이드 에디트텍스트 속성 5. [inputMethod, inputType] (Android EditText Attributes 5)

1. EditText 속성 (5) EditText 속성 리스트 및 요약 설명을 확인하시려면 [안드로이드 에디트텍스트 속성] 페이지를 참고하시기 바랍니다. EditText 속성에 대한 자세한 설명 및 예제를 확인하시려면, 아

recipes4dev.tistory.com

 

public static String plusZero(int num) {
int temp = num;
int length = (int) (Math.log10(temp) + 1);
String d = "";

if (length == 1) {
d = String.format("%02d", temp);
} else {
d = String.valueOf(temp);
}

return d;
}

+ Recent posts