[TIMOB-16937] Android: Animation does not work properly for round views
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | animation |
Reporter | Fix Please |
Assignee | Unknown |
Created | 2014-05-07T14:50:25.000+0000 |
Updated | 2018-02-28T20:04:08.000+0000 |
Description
Round view animation looks weird. See the images attached.
<Alloy>
<Window id="theWindow" class="container">
<View left="40" top="40" width="110" height="110" backgroundColor="#ff5"></View>
<View left="60" top="60" width="100" height="100" backgroundColor="#5ff"></View>
<View left="180" top="40" width="110" height="110" backgroundColor="#ff5"></View>
<View left="200" top="60" width="100" height="100" backgroundColor="#5ff"></View>
<View left="320" top="40" width="110" height="110" backgroundColor="#ff5"></View>
<View left="340" top="60" width="100" height="100" backgroundColor="#5ff"></View>
<Button left="50" top="190" onClick="onButton">Start Animation</Button>
<Label id="label" left="50" top="170"></Label>
</Window>
</Alloy>
var viewDescriptors = [
{ backgroundColor: 'blue', borderRadius: 100, width: 100, height: 100, left: 50, top: 50 },
{ backgroundColor: 'blue', borderRadius: 50, width: 100, height: 100, left: 190, top: 50 },
{ backgroundColor: 'blue', width: 100, height: 100, left: 330, top: 50 }
];
var views = [];
function onButton(e) {
views.forEach(function(view) {
var animation = Ti.UI.createAnimation({
duration : 20000,
top : view.top + 3,
left : view.left + 3
});
$.label.setText($.label.getText() + "([" + view.left + "," + view.top + "] -> [" + animation.left + "," + animation.top + "]) ");
view.animate(animation);
});
}
$.theWindow.open();
viewDescriptors.forEach(function(descriptor) {
var view = Ti.UI.createView(descriptor);
views.push(view);
$.theWindow.add(view);
});
Attachments
File | Date | Size |
---|---|---|
final_screen.jpg | 2014-05-07T14:50:25.000+0000 | 24757 |
initial_screen.jpg | 2014-05-07T14:50:25.000+0000 | 23732 |
intermediate_screen_1.jpg | 2014-05-07T14:50:25.000+0000 | 28518 |
intermediate_screen_2.jpg | 2014-05-07T14:50:25.000+0000 | 27227 |
roundviewtest.avi | 2014-05-08T18:00:08.000+0000 | 4665284 |
[~fixplease] Thank you for the screenshot and the test case. I am sorry, but I am not seeing the same behavior (intermediate and final screenshots) for the round views. I tried it on Samsung Galaxy S4 device. Are you using any specific device?
The original screenshots were made on *Samsung GT-N8000 / Android 4.1.2*. In addition to that I've just recreated the issue on *Samsung GT-I9152 / Android 4.2.2* and android emulator as well. Btw, in order to be sure we are on the same ground I've created a new project from the scratch and copy/pasted the code and markup from the bug report. And the new project was used to recreate the issue.
[~fixplease] I still don't see any difference in the code above. Can you please make sure you have copied/pasted the code here? I also see a new ticket TC-4102 as well and assuming its different one.
{quote} Can you please make sure you have copied/pasted the code here? {quote} I've attached a video on how I do copy/paste, build and run the code. Take a look, please. And I've checked the same newly created project on the GT-N8000 as well. The issue was recreated on the device exactly the same as before. {quote} I also see a new ticket TC-4102 as well and assuming its different one. {quote} Right. The TC-4102 is a different one. Investigate the issue as well, please.
Thanks. Will check.
I've just recreated the issue on *Samsung GT-S7562 / Android 4.0.4*.
Moving this ticket to engineering as I can reproduce this issue with the provided test case. Same test case works on iOS platform as expected.
any update on the issue, please?