我values.xml URI is not Registered
了錯誤登記,並建立失敗,原因是URI不values.xml
Error:(729, 21) No resource found that matches the given name: attr 'listTextColor'.
Error:(728, 21) No resource found that matches the given name: attr 'colorMain'.
Error:(728, 21) No resource found that matches the given name: attr 'colorMain'.
Error:(729, 21) No resource found that matches the given name: attr 'listTextColor'.
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
但我在colors.xml
編輯 colors.xml有colorMain
和listTextColor
<color name="colorMain">#fff</color> <color name="listTextColor">#fff</color>
I U SED在這裏:
`<EditText
android:id="@+id/edittxtPassword"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@color/listTextColor"
android:hint="Enter your Password"
android:inputType="number"
android:maxLength="10"
android:paddingBottom="5dp"
android:paddingLeft="45dp"
android:paddingRight="5dp"
android:paddingTop="5dp" />`
粘貼如何在colors.xml中定義colorMain和listTextColor – santak
您可以粘貼colors.xml嗎?你在哪裏提到顏色? –
@santak請參閱編輯 – Bullet