-3

I am using Apptentive .aar library in my project and I have to make changes in its values.xml file. How to achieve it. Any help should be greatly appreciated.

RaGe
  • 22,696
  • 11
  • 72
  • 104
Raghul Sugathan
  • 350
  • 1
  • 7
  • 22

3 Answers3

2

It is very simple.
Since you have the source, just overwrite the values in your project using the same id.

For example if you want to change a string just overwrite it in your strings.xml.

 <string name="apptentive_ok">XXX</string>

If you want to change a color, overwrite it in your colors.xml

<color name="colorPrimary">XXXXX</color>
Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
0

Go to Apptentive Android Github Repository and,

  1. Clone the project
  2. Change it as you want.
RevanthKrishnaKumar V.
  • 1,855
  • 1
  • 21
  • 34
Bajirao Shinde
  • 1,356
  • 1
  • 18
  • 26
0

If the class where the value.xml is referenced is not protected or final, you could extend it in your project and point to your own value.xml file where needed.

Much Overflow
  • 3,142
  • 1
  • 23
  • 40