Guest User

Untitled

a guest
Nov 14th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. android {
  2. lintOptions {
  3. checkReleaseBuilds false
  4. // Or, if you prefer, you can continue to check for errors in release builds,
  5. // but continue the build even when errors are found:
  6. abortOnError false
  7. }
  8. }
  9.  
  10. <issue
  11. id="ResAuto"
  12. severity="Fatal"
  13. message="In Gradle projects, always use `http://schemas.android.com/apk/res-auto` for custom attributes"
  14. category="Correctness"
  15. priority="9"
  16. summary="Hardcoded Package in Namespace"
  17. explanation="In Gradle projects, the actual package used in the final APK can vary; for example,you can add a `.debug` package suffix in one version and not the other. Therefore, you should **not** hardcode the application package in the resource; instead, use the special namespace `http://schemas.android.com/apk/res-auto` which will cause the tools to figure out the right namespace for the resource regardless of the actual package used during the build."
  18. errorLine1=" xmlns:app="http://schemas.android.com/apk/res/ir.app.appname">">"
  19. errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  20. quickfix="studio">
  21. <location
  22. file="C:...appsrcmainrescolormybutton_backgroundcolor.xml"
  23. line="3"
  24. column="16"/>
  25. </issue>
  26.  
  27. <selector xmlns:android="http://schemas.android.com/apk/res/android"
  28. xmlns:app="http://schemas.android.com/apk/res/ir.app.appname">
  29.  
  30. <item android:state_enabled="true" app:state_read ="false" android:color="@color/backgrpund_button_success"/>
  31.  
  32. <item android:state_enabled="false" app:state_read ="false" android:color="@color/gray_4"/>
  33. <item app:state_read ="true" android:color="@color/gray_4"/>
  34.  
  35. </selector>
Add Comment
Please, Sign In to add comment