Answer the question
In order to leave comments, you need to log in
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,
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
For all 4 buttons, I asked android:layout_weight="25"
and they all lay down evenly. Thanks!!!!!!!!!!!!!!!!!!!
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.
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 questionAsk a Question
731 491 924 answers to any question