Apptentive Library - How to edit it's source code

124 views Asked by At

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.

3

There are 3 answers

0
Gabriele Mariotti On BEST ANSWER

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>
0
Bajirao Shinde On

Go to Apptentive Android Github Repository and,

  1. Clone the project
  2. Change it as you want.
0
Much Overflow On

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.