Bug 22594 - [Android] Xamarin.Forms.ViewExtensions.TranslateTo method does not animate the Layout/View
Summary: [Android] Xamarin.Forms.ViewExtensions.TranslateTo method does not animate th...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-09-03 07:24 UTC by Prashant Cholachagudda
Modified: 2016-03-16 12:29 UTC (History)
12 users (show)

Tags: AC
Is this bug a regression?: ---
Last known good build:

Test Project (23.32 KB, application/zip)
2014-10-14 13:20 UTC, Jon Goldberger [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Prashant Cholachagudda 2014-09-03 07:24:20 UTC
The Xamarin.Forms.ViewExtensions.TranslateTo (v1.2.2.6243) does not to work on Android with Layouts/Views

Code to reproduce the issue:

	public class App
		public static Page GetMainPage ()
			var rootPageView = new AbsoluteLayout ();
			var rootPage = new ContentPage () {
				BackgroundColor = Color.Black,
				Content = rootPageView,
			var newRoot = new NavigationPage (rootPage);

			var hello = new Label () {
				Text = "Hello",
				TextColor = Color.White,
			rootPageView.Children.Add (hello, new Point (10, 10));
			hello.TranslateTo (110, 250, 3000, Easing.SinIn);
			return newRoot;
Comment 2 Parmendra Kumar 2014-09-04 07:57:52 UTC
I have checked this issue and able to reproduce this issue with given sample code in bug description.
And observed that the Xamarin.Forms.ViewExtensions.TranslateTo() method not working fine in Android App, Its working fine on iOS.


Environment info:
=== Xamarin Studio ===

Version 5.3 (build 440)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===


=== Xamarin.Android ===

Version: 4.16.0 (Business Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 77efa3f
Build date: 2014-08-26 07:59:55-0400

=== Build Information ===

Release ID: 503000440
Git revision: accb55419539e512cff857b14b80ec3107996511
Build date: 2014-09-01 08:53:05-04
Xamarin addins: 6dbac4b3a32df080bf98cde838ce89e573a92859

=== Operating System ===

Mac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 Jon Goldberger [MSFT] 2014-10-14 13:20:30 UTC
Created attachment 8412 [details]
Test Project

I made a test project for this during Evolve. Adding it for convenience. 

Note that the TranslateX and TranslateY properties are updated after TranslateTo on Android, but the view does not move. Explicitly setting the TranslateX and TranslateY properties does move the view (non-animated of course)
Comment 4 Barry Sohl 2014-11-11 00:01:45 UTC
I am unfortunately blocked by this as well (need it badly for menu animations). Any ETA for a fix? Thanks.
Comment 5 Jason Smith [MSFT] 2016-03-16 12:29:13 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team