2017-06-20 67 views
2

我正在使用MaskEdittext文本格式化美國格式的數字(123)456-7890.I當我在edittext中鍵入數字並將光標放在ediittext上時,它會出現像這樣的問題MaskEdittext光標問題

這裏的畫面是: enter image description here

這裏是我的XML代碼:

<com.sample.activities.MaskedEditText 
     android:id="@+id/edttextlogin" 
     android:layout_width="match_parent" 
     android:layout_height="40dp" 
     android:background="@drawable/register_rectange1" 
     android:hint="@string/phone_number" 
     android:imeOptions="actionNext" 
     android:inputType="phone" 
     android:nextFocusDown="@+id/edttextpinnumber" 
     android:paddingLeft="10dp" 
     android:typeface="monospace" 
     android:singleLine="true" 
     android:cursorVisible="false" 
     android:textSize="@dimen/edittextsize_sub" 
     android:textColorHint="@color/hint_color_light" 
     android:textColor="@color/main_header" 
     maskededittext:mask="(***) ***-*********" /> 

我使用的這個相關性: 編譯 'ru.egslava:MaskedEditText:1.0.5'

+0

這是一個本機android應用程序或混合移動應用程序? –

回答