U
U
urmi tilek uulu2015-04-02 13:19:06
Android
urmi tilek uulu, 2015-04-02 13:19:06

How to create responsive buttons on Android?

You need to make a program like a directory. When the user opens the application, the type should exit,
8c41636405584615bf1c510827dd6bca.png
and here I need the navigation buttons from the top to change depending on the width of the screen. I ask for your help on the Internet, I dug looked at different projects and did not find it. I would be very grateful to those who will prompt a good idea. please do not swear, I'm new to Android programming. Thanks!!!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
anyd3v, 2015-04-02
@urma

layout_weight?

U
urmi tilek uulu, 2015-04-02
@urma

For all 4 buttons, I asked android:layout_weight="25"and they all lay down evenly. Thanks!!!!!!!!!!!!!!!!!!!

X
xne71247, 2015-04-02
@xne71247

If these are buttons with a picture, then you can use developer.android.com/tools/help/draw9patch.html for the background, then you will get normal dragging buttons.

V
Vladimir Abramov, 2015-04-02
@kivsiak

Look towards resource specifiers:
developer.android.com/guide/practices/screens_supp...
In short, android can automatically select the desired layout depending on the screen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question