Getting "The return type is incompatible with View.getScaleX()" error
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. Downloaded all the files
2. Imported all the libraries
3. Running Sample project
What is the expected output? What do you see instead?
Expecting to run the sample project. However, getting errors.
What version of the product are you using? On what operating system?
0.0.4
Please provide any additional information below.
When I am running the application I am getting the following 2 errors:
1. The return type is incompatible with View.getScaleX()
2. The return type is incompatible with View.getScaleY()
On Element : DemoView.java
Errors are pointing to the below functions:
public double getScaleX() {
return this.scaleX;
}
public double getScaleY() {
return this.scaleY;
}
Error at "double".
Original issue reported on code.google.com by anudeep....@gmail.com
on 13 Sep 2012 at 3:45
I am also getting this error, I am running Eclipse Helios SR2 on windows 64 bit
machine. Looks like the super class View has float for return types of
getScaleX and getScaleY. I changed double to float and cast to float (float)
where necessary. it works now.
Original comment by acaru...@levelv.com
on 15 Oct 2012 at 10:37
casting them to float....
Original comment by thang...@anlab.info
on 13 Oct 2014 at 4:10