D
D
Dmitry2021-06-26 20:47:47
Java
Dmitry, 2021-06-26 20:47:47

How to move an element relative to RelativeLayout?

I've got

<RelativeLayout
        android:id="@+id/Colo"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        ...>

under certain conditions, the ImageView must move across the screen from one edge to the other. How, for example, to register this movement, for example, from the upper left corner to the lower right corner? I don't want to use dp.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacen11, 2021-06-26
@Jacen11

To begin with, you did not mean relatively, but inside. Second, RelativeLayout is outdated.
MotionLayout is for this for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question