Have you double checked to see the values to make sure that they are greater then zero?
You could find this out using LogCat to print the values to the log for native_resit.getChildAt(0).getHeight() and native_resit.getChildAt(0).getWidth() before calling
Just a thought,
Pete
βThe strongest of all warriors are these two β Time and Patience.β β Leo Tolstoy, War and Peace
I don't even know how to spell CIA. But this tiny ad does:
Gift giving made easy with the permaculture playing cards