I
I
Ilya2018-04-18 00:05:44
Java
Ilya, 2018-04-18 00:05:44

How to set the width of an element in a class?

In xml like this: I want to reset. How to do it in class?
android:layout_width="wrap_content"
.setLayoutWidth();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Chvarkov, 2018-04-18
@KuSu

.setLayoutParams(layoutParams);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question