0

What is the code or what is the simplest way (with explanation, because im a little bit confused) in making an android application automatically adjust it's screen size layout depending on the android device used?

2
Contributors
5
Replies
17
Views
4 Years
Discussion Span
Last Post by peter_budo
0

Thanks for the reply.
What if i manually configured the size of a button just like for example 50dp x 50dp.. Is it possible for the program to automatically adjust the sizes of the Widgets?

0

@peter, i should say form widgets(i.e. Buttons, TextViews, etc.) and not Widgets literally.. Sorry for that misunderstanding..

1

No not possible once you give it fixed value. However you can use layout_weight to make device strech it dynamically. If you ever did any web development with CSS you should find many similarities.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.