Skip to content Skip to sidebar Skip to footer

How To Use Custom Inline Attributes In Xml Layout Files For Customizing Style Of Views

since when I upgraded the Android Support Library, I'm struggling with setting custom colors for buttons, textviews and other views. Apparently, inline attributes get overridden by

Solution 1:

Found the cause, hence fixed the issue :-)

Apparently the version 29 of the Maven Local Repository (aka m2repository)is buggy, as pointed out here https://code.google.com/p/android/issues/detail?id=203136&q=-has%3Ablocked%20reportedby%3DDeveloper%20attachments%3D2%20label%3AComponent-Support-Libraries&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened and here https://code.google.com/p/android/issues/detail?id=203546

The solution is simple: just downgrade to version 26, which can be downloaded here http://dl.google.com/android/repository/android_m2repository_r26.zip

Solution 2:

tools:replace="android:theme" this tag is used for manifest merger to tell how to handle spesific cases.

Looks like it changing your theme attribute in manifest at your final product. Can you try to remove that?

For more information you can check here

Post a Comment for "How To Use Custom Inline Attributes In Xml Layout Files For Customizing Style Of Views"