2017-11-14 21 views
0

나는 android studio에 편집 텍스트가 있으며 사용자에서 시, 분, 초에 대한 값을 가져 오려고합니다. 00:00:00을 말하는 편집 텍스트로 시작하고 사용자 입력 번호를 갖지만 어떻게 할 수 있습니까?형식 HH : MM : SS로 Android EditText

차라리 자신이

답변

1

당신은 MaskedEditText

build.gradle

dependencies { 
    compile 'com.vicmikhailau:MaskedEditText:2.0.3' 
} 

가 XML에 추가 사용할 수있는 세미콜론을 입력하도록 요구하지 않는 게 좋을

<com.vicmikhailau.maskededittext.MaskedEditText 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     app:mask="your_mask" /> 

enter image description here

+0

@ 벤 아담스는이 문제를 해결 밤은? –