hwatech Member Licensed User Longtime User May 3, 2021 #1 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: And here is how it looks in the WYSIWYG on the phone: And this is what the actual app looks like: I believe I am using the anchors correctly so why are things so different? LH Attachments Screenshot_20210503-113303.png 67.3 KB · Views: 387 Screenshot_wysiwyg.png 127.6 KB · Views: 368 Screenshot_app.png 127.6 KB · Views: 350 Screenshot_wysiwyg.png 190.6 KB · Views: 373
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: And here is how it looks in the WYSIWYG on the phone: And this is what the actual app looks like: I believe I am using the anchors correctly so why are things so different? LH
klaus Expert Licensed User Longtime User May 3, 2021 #2 You are not using the anchors correctly. You should set: - the horizontal anchor of the + button to right. - the horizontal anchor of the four views in the middle to both. Upvote 0
You are not using the anchors correctly. You should set: - the horizontal anchor of the + button to right. - the horizontal anchor of the four views in the middle to both.
hwatech Member Licensed User Longtime User May 3, 2021 #3 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
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
klaus Expert Licensed User Longtime User May 3, 2021 #4 Sorry, but I do not understand exactly your answer. The middle views are set just as you say. Click to expand... 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? Click to expand... 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
Sorry, but I do not understand exactly your answer. The middle views are set just as you say. Click to expand... 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? Click to expand... 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.
hwatech Member Licensed User Longtime User May 3, 2021 #5 Wrong screenshot, I was trying a number of things before I posted and I inadvertently posted the wrong screenshot, here is the correct one: 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
Wrong screenshot, I was trying a number of things before I posted and I inadvertently posted the wrong screenshot, here is the correct one: 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...
Sandman Expert Licensed User Longtime User May 3, 2021 #6 In the designer, did you try the button top right to check the anchors? Upvote 0
hwatech Member Licensed User Longtime User May 3, 2021 #8 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
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.
klaus Expert Licensed User Longtime User May 3, 2021 #9 Why do you not post a project showing the problem ??? As I do not know what you have done and how, I cannot help you in a concrete way. Upvote 0
Why do you not post a project showing the problem ??? As I do not know what you have done and how, I cannot help you in a concrete way.
hwatech Member Licensed User Longtime User May 3, 2021 #10 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 May 4, 2021 #11 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
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.