2023 Apr 08 6:45 PM - edited 2023 Apr 18 2:41 PM
This post is part of the SAP Build Community Challenge (April 2023)
This week’s challenge involves another area that is key to build apps with SAP Build Apps, but is often overlooked when learning about the tool: UI Design.
Here is a UI – admittedly not the most sophisticated (and still includes that grumpy cat), but it illustrates some of the techniques that you can use to make a professional UI.
Notice the following:
Here are some learning materials:
And here are some specs about the app:
For the images, I used these:
Bengal tiger (3000 x 1500 pixels):
Grumpy cat (3089 x 2048 pixels):
Even if you can’t get it exactly like the one we gave, and it ends up being more like a Dali painting, post it anyway. We’d like to see what you were able to do.
Here's a 1-minute video of what you need to do.
2023 Apr 09 1:00 AM
My week 2 submission.
Something I couldn't achieve was to adjust the spacing between the wrapped text "Mike and Sully and Boo". My app has more vertical space than the original one. I could create two containers for the first and the second lines, but I feel it is not the appropriate solution.
2023 Apr 09 9:32 AM
2023 Apr 09 9:07 PM
Thank you for your comment.
Fixed the line height. Also, my initial idea of showing randomized colors was to simply create an array of 5 colors and pick one of them randomly. Learning from other participants' solutions, I improved that part as well.
2023 Apr 09 6:05 AM
2023 Apr 09 9:34 AM - edited 2023 Apr 09 9:35 AM
Thanks 😺 Your stars and my stars have the same color ... the color of the stars are to be randomized. Can you upload another with a different text (see the instructions which I changed), and with random colors for the stars, and let me know where you set the formula for randomizing the colors? Thanks.
Also, try to make the size of screenshot smaller or otherwise reduce the physical size of your reply..
2023 Apr 09 4:56 PM - edited 2023 Apr 09 5:30 PM
Hi @Dan_Wroblewski
For the color in the stars, I've reused the @Ajit_K_Panda formula which is relly ellegant and you can see the effects on how the star' colors change when I type my name down in the input box on the video URL.
VIDEO URL: https://youtube.com/shorts/8LCpVMliYRE?feature=share
MAIN SCREEN:
Thanks
2023 Apr 09 6:45 AM - edited 2023 Apr 09 10:49 AM
2023 Apr 09 9:38 AM
2023 Apr 09 10:48 AM - edited 2023 Apr 09 10:58 AM
For the last couple of days, I've explored the different properties in some components and gotten to know the behavior of those properties, so it's made it easier for me to complete this challenge.
I've faced a little bit of a challenge to generate a random color. got some piece of code in Java Script, so I've tried to apply the same logic using a formula. It worked.
2023 Apr 09 12:42 PM
2023 Apr 09 2:05 PM - edited 2023 Apr 09 2:18 PM
2023 Apr 09 7:56 AM
Hi @Dan_Wroblewski ,
Here is my output:
2023 Apr 09 9:37 AM
Thanks. I think I wrote Z index but the technique here was simply absolute positioning.
Your idea for an open marketplace is a great one, and I believe development here is working on something like that. I think it would be very popular.
How did you make the repeat for the 5 stars?
2023 Apr 09 10:13 AM
Icon is repeated with following formula where i am generating a list with 5 elements and each element has a peroperty 'Color' with value of randomized hexadecimal color code. Property 'Color' is used to set the color of each icon.
2023 Apr 09 12:40 PM
That's an elegant solution and use of formulas. All I did was do repeat with using [1,2,3,4,5} -- although it would have been even easier with REPEAT function -- and then created a formula for the color property:
RGB(RANDOM_INTEGER_BETWEEN(0, 255), RANDOM_INTEGER_BETWEEN(0, 255), RANDOM_INTEGER_BETWEEN(0, 255) + repeatedInfo.current.index)
2023 Apr 09 1:07 PM
Here we go: Spacing around the cat kept me busy for a while. Also the random color were tricky as
[{"color": RGB(R… does not work
2023 Apr 09 1:11 PM
2023 Apr 09 8:17 PM
Hello,
Here is my week 2 contribution. For someone who never heard of RGB , the random colors were the difficult part. The previous contributions were very helpful.
2023 Apr 10 3:14 PM - edited 2023 Apr 12 9:47 AM
2023 Apr 11 11:51 AM
2023 Apr 12 9:48 AM
2023 Apr 10 4:12 PM
2023 Apr 10 9:30 PM
2023 Apr 11 11:35 AM
2023 Apr 11 10:03 AM
Hi @Dan_Wroblewski!
I was looking forward to this challenge all week 😁
Here's my submission, the heading is my BONUS answer haha 😎
I didn't really know howt to do things, since these challenges are my first hands-on experiences with SAP Build.. it's a good way to get started!
Now looking forward to the next challenge 🤓
2023 Apr 11 10:31 AM - edited 2023 Apr 11 10:31 AM
@Dan_Wroblewski in the iOS app the shadow is not showing ( original screenshot ), didn't find a solution to make it work.
In the following screenshot, taken from web preview, the shadow it's being shown
2023 Apr 11 11:01 AM
2023 Apr 11 11:03 AM
2023 Apr 11 11:10 AM
2023 Apr 12 4:35 AM
Not for a long time, but issues with shadows have appeared in the past 🤔. I’ll make a ticket to look into this.
2023 Apr 12 7:27 AM
@samuelesalines I think I figured out what is going on. There is a known behavior difference in iOS that it clips shadows if the container is set to overflow:hidden (the default) instead of overflow:visible. You can find this setting under Layout, please check if it solves your issue!
2023 Apr 12 8:03 AM
Thank you @merituulimelkko that was it!
Totally missed the "Clip overflowing content" setting 😅
Now everything is ok! Thanks again, the both of you @Dan_Wroblewski, @merituulimelkko
2023 Apr 11 10:23 AM
Week 2 submission
Random color generation was tricky part but enjoyed doing this challenge. Looking forward for more such challenges.
2023 Apr 11 11:13 AM
2023 Apr 11 11:59 AM
Hi,
here my screenshot taken from preview webapp
But from preview on mobile (Samsung S10 with SAP Build Apps application) the background of inner container not disappear under top corners and cover the color of the borders.
2023 Apr 15 6:55 PM
Hmmm ... as you may have seen elsewhere on this thread, there are some idiosyncrasies on different devices for a few features. Not sure how I would fix that. If you want to pursue, please add a separate question in the discussions in this group.
2023 Apr 11 12:37 PM
Thanks for the challenge Dan.
All the explanation and tips that you gave us help me a lot, I wouldn't be able to copy the app without them.
I've learned about the navigation tab that I haven't used before and the random color stars was a little tricky but I got it after a few tries 🤣. Very useful to understand Properties, Styles and Layouts.
Another great movie btw, Monsters Inc.
2023 Apr 11 12:58 PM
2023 Apr 11 2:16 PM