{"id":1922,"date":"2015-09-16T17:33:26","date_gmt":"2015-09-16T12:03:26","guid":{"rendered":"https:\/\/www.innovationm.com\/blog\/?p=1922"},"modified":"2016-02-04T19:40:57","modified_gmt":"2016-02-04T14:10:57","slug":"scale-animation-in-android-how-it-works","status":"publish","type":"post","link":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/","title":{"rendered":"Scale Animation in Android &#8211; How it Works?"},"content":{"rendered":"<h1><span style=\"color: #0000ff;\">Scale Animation &#8211; Introduction<\/span><\/h1>\n<p>Scale Animation is basically to increase or decrease the size of the View.<\/p>\n<p>There is a class <strong>ScaleAnimation<\/strong>. We need to create instance of ScaleAnimation (Can be done in XML also) to do the work. One of the main constructor of this class is:<\/p>\n<p>public <strong>ScaleAnimation<\/strong>(<br \/>\nfloat fromX, float toX,<br \/>\nfloat fromY, float toY,<br \/>\nint pivotXType, float pivotXValue,<br \/>\nint pivotYType, float pivotYValue)<\/p>\n<p>Let us understand these parameters. Description of these parameters as given in Android SDK documentation:<\/p>\n<p style=\"text-align: justify;\"><strong>fromX<\/strong> Horizontal scaling factor to apply at the start of the animation<br \/>\n<strong>toX<\/strong> Horizontal scaling factor to apply at the end of the animation<br \/>\n<strong>fromY<\/strong> Vertical scaling factor to apply at the start of the animation<br \/>\n<strong>toY<\/strong> Vertical scaling factor to apply at the end of the animation<br \/>\n<strong>pivotXType<\/strong> Specifies how pivotXValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.<br \/>\n<strong>pivotXValue<\/strong> The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotXTypeis ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.<br \/>\n<strong>pivotYType<\/strong> Specifies how pivotYValue should be interpreted. One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or Animation.RELATIVE_TO_PARENT.<br \/>\n<strong>pivotYValue<\/strong> The Y coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the top edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotYType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise.<\/p>\n<p style=\"text-align: justify;\">Above descriptions sound scary!!<\/p>\n<h1 style=\"text-align: justify;\"><span style=\"color: #0000ff;\">Pivot Values<\/span><\/h1>\n<p style=\"text-align: justify;\">Let us understand pivot parameter for the case where type is\u00a0Animation.RELATIVE_TO_SELF or\u00a0Animation.ABSOLUTE<\/p>\n<p>pivotXType &#8211; Animation.RELATIVE_TO_SELF or Animation.ABSOLUTE<br \/>\npivotXValue &#8211; 0 means left edge of the view. 1 means right edge of the view.<br \/>\npivotYType &#8211; Animation.RELATIVE_TO_SELF or Animation.ABSOLUTE<br \/>\npivotYValue &#8211; 0 means top edge of the view. 1 means bottom edge of the view<\/p>\n<p>Follow diagrams help to understand pivot values (All 4 cases):<\/p>\n<p><strong>1. pivotXValue \u2013 0 |\u00a0pivotYValue &#8211; 0<\/strong><\/p>\n<p><a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1923\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-1.png\" alt=\"InnovationM - ScalingAnimationInAndroid\" width=\"500\" height=\"375\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-1.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-1-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-1-624x468.png 624w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><strong>2. pivotXValue \u2013 0 |\u00a0pivotYValue &#8211; 1<\/strong><\/p>\n<p><a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-2.png\"><img decoding=\"async\" class=\"aligncenter wp-image-1924\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-2.png\" alt=\"InnovationM - ScalingAnimationInAndroid\" width=\"500\" height=\"375\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-2.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-2-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-2-624x468.png 624w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><strong>3. pivotXValue \u2013 1 |\u00a0pivotYValue &#8211; 0<\/strong><\/p>\n<p><a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-3.png\"><img decoding=\"async\" class=\"aligncenter wp-image-1925\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-3.png\" alt=\"InnovationM - ScalingAnimationInAndroid\" width=\"500\" height=\"375\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-3.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-3-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-3-624x468.png 624w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p><strong>4. pivotXValue \u2013 1 |\u00a0pivotYValue &#8211; 1<\/strong><\/p>\n<p><a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1926\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-4.png\" alt=\"InnovationM - ScalingAnimationInAndroid\" width=\"500\" height=\"375\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-4.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-4-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAndroid-4-624x468.png 624w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<h1><span style=\"color: #ff0000;\">From and To Parameters<\/span><\/h1>\n<p>Let us now understand from and to parameters. They represent the increase in size over x axis and y axis around pivot (Lines in the above diagrams). They are mentioned in factors ( Basically a ratio). 0 means 0 width or height, 1 means original width or height.<\/p>\n<p>Following examples will help to understand:<\/p>\n<p><a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1930\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-1.png\" alt=\"InnovationM - ScalingAnimationInAction (1)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-1.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-1-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-1-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1931\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png\" alt=\"InnovationM - ScalingAnimationInAction (2)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1932\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-3.png\" alt=\"InnovationM - ScalingAnimationInAction (3)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-3.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-3-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-3-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1933\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-4.png\" alt=\"InnovationM - ScalingAnimationInAction (4)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-4.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-4-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-4-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1934\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-5.png\" alt=\"InnovationM - ScalingAnimationInAction (5)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-5.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-5-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-5-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1935\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-6.png\" alt=\"InnovationM - ScalingAnimationInAction (6)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-6.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-6-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-6-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1936\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-7.png\" alt=\"InnovationM - ScalingAnimationInAction (7)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-7.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-7-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-7-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a> <a href=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1937\" src=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-8.png\" alt=\"InnovationM - ScalingAnimationInAction (8)\" width=\"960\" height=\"720\" srcset=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-8.png 960w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-8-300x225.png 300w, https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-8-624x468.png 624w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scale Animation &#8211; Introduction Scale Animation is basically to increase or decrease the size of the View. There is a class ScaleAnimation. We need to create instance of ScaleAnimation (Can be done in XML also) to do the work. One of the main constructor of this class is: public ScaleAnimation( float fromX, float toX, float [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1931,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8],"tags":[159,14,165,168,10],"class_list":["post-1922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-mobile-architecture-and-design","tag-android","tag-innovationm","tag-mobile","tag-scale-animation","tag-ui-design"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Scale Animation in Android - How it Works? - InnovationM - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scale Animation in Android - How it Works? - InnovationM - Blog\" \/>\n<meta property=\"og:description\" content=\"Scale Animation &#8211; Introduction Scale Animation is basically to increase or decrease the size of the View. There is a class ScaleAnimation. We need to create instance of ScaleAnimation (Can be done in XML also) to do the work. One of the main constructor of this class is: public ScaleAnimation( float fromX, float toX, float [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/\" \/>\n<meta property=\"og:site_name\" content=\"InnovationM - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-16T12:03:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-04T14:10:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Manish Seth\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manish Seth\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/\"},\"author\":{\"name\":\"Manish Seth\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/03f59a9465a9f03b551985392f877ae8\"},\"headline\":\"Scale Animation in Android &#8211; How it Works?\",\"datePublished\":\"2015-09-16T12:03:26+00:00\",\"dateModified\":\"2016-02-04T14:10:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/\"},\"wordCount\":426,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/InnovationM-ScalingAnimationInAction-2.png\",\"keywords\":[\"Android\",\"InnovationM\",\"Mobile\",\"Scale Animation\",\"UI Design\"],\"articleSection\":[\"Android\",\"Mobile Architecture and Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/\",\"name\":\"Scale Animation in Android - How it Works? - InnovationM - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/InnovationM-ScalingAnimationInAction-2.png\",\"datePublished\":\"2015-09-16T12:03:26+00:00\",\"dateModified\":\"2016-02-04T14:10:57+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/03f59a9465a9f03b551985392f877ae8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/InnovationM-ScalingAnimationInAction-2.png\",\"contentUrl\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/InnovationM-ScalingAnimationInAction-2.png\",\"width\":960,\"height\":720,\"caption\":\"InnovationM - ScalingAnimationInAction\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/scale-animation-in-android-how-it-works\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scale Animation in Android &#8211; How it Works?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/\",\"name\":\"InnovationM - Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/#\\\/schema\\\/person\\\/03f59a9465a9f03b551985392f877ae8\",\"name\":\"Manish Seth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g\",\"caption\":\"Manish Seth\"},\"sameAs\":[\"http:\\\/\\\/www.innovationm.com\\\/\"],\"url\":\"https:\\\/\\\/www.innovationm.com\\\/blog\\\/author\\\/manish-seth\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scale Animation in Android - How it Works? - InnovationM - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/","og_locale":"en_US","og_type":"article","og_title":"Scale Animation in Android - How it Works? - InnovationM - Blog","og_description":"Scale Animation &#8211; Introduction Scale Animation is basically to increase or decrease the size of the View. There is a class ScaleAnimation. We need to create instance of ScaleAnimation (Can be done in XML also) to do the work. One of the main constructor of this class is: public ScaleAnimation( float fromX, float toX, float [&hellip;]","og_url":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/","og_site_name":"InnovationM - Blog","article_published_time":"2015-09-16T12:03:26+00:00","article_modified_time":"2016-02-04T14:10:57+00:00","og_image":[{"width":960,"height":720,"url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png","type":"image\/png"}],"author":"Manish Seth","twitter_misc":{"Written by":"Manish Seth","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#article","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/"},"author":{"name":"Manish Seth","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/03f59a9465a9f03b551985392f877ae8"},"headline":"Scale Animation in Android &#8211; How it Works?","datePublished":"2015-09-16T12:03:26+00:00","dateModified":"2016-02-04T14:10:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/"},"wordCount":426,"commentCount":0,"image":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png","keywords":["Android","InnovationM","Mobile","Scale Animation","UI Design"],"articleSection":["Android","Mobile Architecture and Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/","url":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/","name":"Scale Animation in Android - How it Works? - InnovationM - Blog","isPartOf":{"@id":"https:\/\/www.innovationm.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#primaryimage"},"image":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#primaryimage"},"thumbnailUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png","datePublished":"2015-09-16T12:03:26+00:00","dateModified":"2016-02-04T14:10:57+00:00","author":{"@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/03f59a9465a9f03b551985392f877ae8"},"breadcrumb":{"@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#primaryimage","url":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png","contentUrl":"https:\/\/www.innovationm.com\/blog\/wp-content\/uploads\/2015\/09\/InnovationM-ScalingAnimationInAction-2.png","width":960,"height":720,"caption":"InnovationM - ScalingAnimationInAction"},{"@type":"BreadcrumbList","@id":"https:\/\/www.innovationm.com\/blog\/scale-animation-in-android-how-it-works\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.innovationm.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Scale Animation in Android &#8211; How it Works?"}]},{"@type":"WebSite","@id":"https:\/\/www.innovationm.com\/blog\/#website","url":"https:\/\/www.innovationm.com\/blog\/","name":"InnovationM - Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.innovationm.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.innovationm.com\/blog\/#\/schema\/person\/03f59a9465a9f03b551985392f877ae8","name":"Manish Seth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a5ed7a8bee434c0f1b851face1f5c946c36929374fd4627a3fc3958d67517eff?s=96&r=g","caption":"Manish Seth"},"sameAs":["http:\/\/www.innovationm.com\/"],"url":"https:\/\/www.innovationm.com\/blog\/author\/manish-seth\/"}]}},"_links":{"self":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/1922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/comments?post=1922"}],"version-history":[{"count":0,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/posts\/1922\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media\/1931"}],"wp:attachment":[{"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/media?parent=1922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/categories?post=1922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.innovationm.com\/blog\/wp-json\/wp\/v2\/tags?post=1922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}