android - Position View X Y and translate animation to an Original location -
i trying animation small circle goes next screen clicked. have custom list view, 2 text views. 1 of textview in circle background. now on click event listitem following code triggered : intent intent = new intent(v.getcontext(), detailactivity.class); int[] location = new int[2]; holder.initialview.getlocationinwindow(location); intent.putextra("location", location); intent.putextra("initialtext", holder.initialview.gettext()); context.startactivity(intent); in above code getting location in windows of initialtextview, i.e. circle background, , pass same detailactivity. inside of detailactivity, onresume, have following code: private textview minitialtextview; private string minitialtext; private int[] listitemlocation; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_detail); ...