PhoneNumberFormattingTextWatcher出了什么问题?

Rom*_*iel 1 android phone-number

在我的应用程序中,我正在尝试格式化输入的电话号码EditText.为此,我正在使用PhoneNumberFormattingTextWatcher.

我有这个课的问题.尝试使用构造PhoneNumberFormattingTextWatcher(String countryCode)函数不会编译.我在文档中找不到它,但肯定是在sdk中(参见代码源).

这堂课怎么了?

bot*_*aap 5

PhoneNumberFormattingTextWatcher(String countryCode)是隐藏的API,您可以从@hidejavadoc中的标记中看到.换句话说:该特定构造函数不是SDK的一部分.