Layout techniques for android development
-
Hi Everyone,
I'm developing GUIs for android phones which is going to acquire the data via Bluetooth from remote host. Here my all the logic are working very fine. but i'm not able to set the proper layou for my application. The radio buttons and text labels are not in expected size. images are getting resized as its own wish. i'm not able to correct it.
Is there any techniques available to show all things in proper way. I don't want to write a separate coding for the gui using qml. I would like to design in .ui file itself by pick and drop. -
Hi,
What exactly did you try ?
What do you expect to see ?
What do you currently get ? -
@prithiviraj said in Layout techniques for android development:
Is there any techniques available to show all things in proper way
Yes there is: http://doc.qt.io/qt-5/layout.html
http://doc.qt.io/qt-5/examples-layouts.html -
@SGaist I tried to display a form similar to sign up in all website with some line edits and radio buttons. In desktop GCC environment, the Gui is very properly coming. if I'm trying for Android ARM7a environment. radio button are not displaying properly and also images are automatically resized. i didn't set any fixed size for my window also.
-
Can you share an example of widget that doesn't show as you wish on Android ?
-
@prithiviraj Something like this could happen because of virtual coordinate system, http://doc.qt.io/qt-5/highdpi.html. Test with Qt::AA_EnableHighDpiScaling and Qt::AA_DisableHighDpiScaling and see what happens.