“autofillHints 속성 누락”
Palette -> Text
보기를 설정할 때 문제가 있습니다. 메시지 문제가 "Missing autofillHints attribute"
나타납니다. 제안 사항이 있습니까?
아마도 당신은 EditText. autofillHintsAPI 26 이상에서 빈을 채우는 데 사용되며 EditText실제로 어떤 유형의 콘텐츠가 거기에 배치되어야하는지 제안합니다.
다음을 추가하십시오.
android:autofillHints="username" // the type of content you want
당신에게 EditText경고가 사라질 것입니다.
이 새로운 사용하여 할
android:autofillHints말 속성을autofill당신이 기대하는 내용의 유형 및android:importantForAutofill알려autofill채워지는 당신이 원하는 (또는 원하지 않는) 어떤 전망을 제공합니다.
읽기 : https://medium.com/@bherbst/getting-androids-autofill-to-work-for-you-21435debea1
그리고 이것은 : https://developer.android.com/guide/topics/text/autofill-services
편집하다:
그러나 다음을 설정할 수 있습니다.
android:importantForAutofill="no"
구성 요소에게 오류를 채우고 제거하는 것이 중요하지 않다는 것을 알려줍니다.
원하지 않는다면 autofillHints
minSdk> = 26 .
android:importantForAutofill=no자동 완성 힌트를 원하지 않는 경우 사용해야합니다.
<EditText
android:importantForAutofill="no"/>
minSdk <26
1) 사용 tools:ignore="Autofill"
<EditText
tools:ignore="Autofill"/>
2) 또는 android:importantForAutofill다음 tools:targetApi을 추가 하여 IDE가 API 수준에 대한 경고를 표시하지 않도록합니다.
<EditText
android:importantForAutofill="no"
tools:targetApi="o"
/>
네가 원한다면 autofillHints
minSdk> = 26
추가하기 만하면됩니다
android:autofillHints="{a contant value}"(예 :) ( 여기"android:autofillHints="password"에서 상수 사용 )
minSdk <26 , tools:targetApiIDE에이 경고가 표시되지 않도록 추가
<EditText
android:autofillHints="email"
tools:targetApi="o"/>
노트
autofillHints및importantForAutofill전용 API (26)에 사용되는 높은 있지만, 우리는 여전히 충돌없이 API <26 사용할 수 있습니다 ( 이 대답에서 볼 수있다) (이 API에 영향을주지 않는 당연히이 충돌하지 않지만 <26)tool:...IDE가 경고하지 않도록 사용하면 응용 프로그램이 실행될 때 아무 영향도 미치지 않습니다.
참조 URL : https://stackoverflow.com/questions/52690296/missing-autofillhints-attribute
'Programing' 카테고리의 다른 글
| Docker가 다른 Linux 배포판을 실행할 수있는 이유는 무엇입니까? (0) | 2021.01.08 |
|---|---|
| Kubernetes에서 복제 컨트롤러 VS 배포 (0) | 2021.01.08 |
| boost :: asio :: ip :: tcp :: socket의 IP 주소를 얻는 방법은 무엇입니까? (0) | 2021.01.07 |
| PHP에서 람다는 무엇을 사용합니까? (0) | 2021.01.07 |
| PI = 4 * ATAN (1.d0)을 정의하는 이유 (0) | 2021.01.07 |