Android Question UI Differences

hwatech

Member
Licensed User
Longtime User
I am wondering why I am getting differences in the user interface of my app when created using the designer...

Here is a screenshot of my designer:
b4a_designer.png


And here is how it looks in the WYSIWYG on the phone:

Screenshot_wysiwyg.png


And this is what the actual app looks like:

Screenshot_app.png



I believe I am using the anchors correctly so why are things so different?


LH
 

Attachments

  • Screenshot_20210503-113303.png
    Screenshot_20210503-113303.png
    67.3 KB · Views: 106
  • Screenshot_wysiwyg.png
    Screenshot_wysiwyg.png
    127.6 KB · Views: 107
  • Screenshot_app.png
    Screenshot_app.png
    127.6 KB · Views: 104
  • Screenshot_wysiwyg.png
    Screenshot_wysiwyg.png
    190.6 KB · Views: 100

hwatech

Member
Licensed User
Longtime User
Thanks, that was my mistake, that adjusted the + button correctly.

The middle views are set just as you say. Where did the 4 labels on the left go (they are anchored to the left) and where is the gradient background?


LH
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Sorry, but I do not understand exactly your answer.
The middle views are set just as you say.
Not in your screenshot !
They are set there to LEFT and not BOTH.

Where did the 4 labels on the left go (they are anchored to the left) and where is the gradient background?
I do not know, without seeing what you have done and how, impossible to give a concrete answer.

It would be much easier to see what happens if you posted a small project, as a zip file, showing the problem.
 
Upvote 0

hwatech

Member
Licensed User
Longtime User
Wrong screenshot, I was trying a number of things before I posted and I inadvertently posted the wrong screenshot, here is the correct one:

screenshot_designer.png


I don't see how pointing out my mistake with such gusto helps me understand anything. Just trying to learn here...

I'll figure it out...
 
Upvote 0

hwatech

Member
Licensed User
Longtime User
I deleted the 4 labels and re-added them, so those are back but not sure about the GradientDrawable, I'll just skip it for now, so problem solved.
 
Upvote 0

hwatech

Member
Licensed User
Longtime User
Later, I have other projects to tend to right now, the gradient is hardly a show stopper
 
Upvote 0

hwatech

Member
Licensed User
Longtime User
This was a stupid mistake on my part. Klaus solved it for me. I had indeed set the gradient in the designer but I also forced the color in the B4XPage_Created sub after loading the layout.
 
Upvote 0
Top