I want to change the position of A textView (in Java code, in Attribution to X and Y), After animating this view.
Software : Android Studio .
Layout : Constraint Layout .
How can i do this?
Let's say 'mytext' is your textView, then:
TextView thetext = findViewById(R.id.mytext);
thetext.setX(115 or whatever your X position is);
thetext.setY(325 or whatever your Y position is);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.